Name: thescrum Version: 0.5 Release: 1%{?dist} Summary: thescrum Group: Applications/System License: MIT URL: http://www.the-scrum.org Source0: thescrum-0.5.zip Source1: thescrum-httpd.conf BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch #BuildRequires: #Requires: php #requires(pre): httpd #requires: lightview http://www.nickstakenburg.com/projects/lightview/ #requires: prototip http://www.nickstakenburg.com/projects/prototip2/ #requires: scriptaculous (required by lightview) %description theSCRUM is a free solution for software development teams using the SCRUM methodology. %prep %setup -q -c %{name}-%{version} for i in .htaccess .htpasswd global.php; do mv $i"_sample" $i; done; sed -i -e 's!%%your-directory%%!%{_datadir}/%{name}!' global.php # FIXME : Lots of bundled libraries in _include/ %build # Nothing to build %install rm -rf $RPM_BUILD_ROOT # Install files mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} cp -a * $RPM_BUILD_ROOT%{_datadir}/%{name}/ # Move the conf file mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name} mv $RPM_BUILD_ROOT%{_datadir}/%{name}/global.php \ $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/global.php ln -s %{_sysconfdir}/%{name}/global.php \ $RPM_BUILD_ROOT%{_datadir}/%{name}/global.php # Symlink required libraries # lightview # prototip # scriptaculous # Install apache conf mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/ install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/%{name}.conf %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf %config(noreplace) %{_sysconfdir}/%{name}/global.php %{_datadir}/%{name} %changelog * Thu Dec 17 2009 Xavier Bachelot 0.5-1 - Initial package.