%define name spip %define Name SPIP %define version 1.7 %define Version 1-7 %define release 1mdk %define order 71 #New ADVX macros %{expand:%(cat %{_datadir}/ADVX/ADVX-build)} Name: %{name} Version: %{version} Release: %{release} Summary: Système de publication pour l'internet License: GPL Group: System/Servers Source0: %{Name}-v%{Version}.tar.bz2 Source1: %{name}.logrotate.bz2 Patch: %{name}-1.7-logging.patch.bz2 URL: http://www.spip.net/ Requires: mod_php BuildRequires: ADVX-build >= 1.2 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-root %description SPIP is a publishing system developed by the minirézo to manage the site uZine. We provide it to anyone as a free software under GPL licence. Therefore, you can use it freely for your own site, be it personnal, co-operative, institutional or commercial. To finish the installation, just go to http://localhost/spip/ecrire/ %prep %setup -q -n %{Name}-v%{Version} %patch find . -name remove.txt -exec rm -f {} \; find . -type f -exec chmod 644 {} \; %build %install rm -rf $RPM_BUILD_ROOT # install files install -d -m 755 $RPM_BUILD_ROOT%{ap_htdocsdir}/%{name} cp -pR * $RPM_BUILD_ROOT%{ap_htdocsdir}/%{name} # move cache directory install -d -m 755 $RPM_BUILD_ROOT/var/cache mv $RPM_BUILD_ROOT%{ap_htdocsdir}/%{name}/CACHE $RPM_BUILD_ROOT/var/cache/%{name} (cd $RPM_BUILD_ROOT%{ap_htdocsdir}/%{name} && ln -s ../../../cache/%{name} CACHE) # move data directory install -d -m 755 $RPM_BUILD_ROOT%{_localstatedir} mv $RPM_BUILD_ROOT%{ap_htdocsdir}/%{name}/ecrire/data $RPM_BUILD_ROOT%{_localstatedir}/%{name} (cd $RPM_BUILD_ROOT%{ap_htdocsdir}/%{name}/ecrire && ln -s ../../../../..%{_localstatedir}/%{name} data) # logrotate install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d bzcat %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name} %clean rm -rf $RPM_BUILD_ROOT %post touch /var/log/httpd/spip.log chown apache.apache /var/log/httpd/spip.log %files %defattr(-,root,root) %dir %{ap_htdocsdir}/%{name} %{ap_htdocsdir}/%{name}/*.php3 %{ap_htdocsdir}/%{name}/*.html %{ap_htdocsdir}/%{name}/*.css %{ap_htdocsdir}/%{name}/*.gif %{ap_htdocsdir}/%{name}/*.php %{ap_htdocsdir}/%{name}/*.js %{ap_htdocsdir}/%{name}/NAVPICS %{ap_htdocsdir}/%{name}/oo %{ap_htdocsdir}/%{name}/CACHE %{ap_htdocsdir}/%{name}/ecrire/* %{ap_htdocsdir}/%{name}/IMG/* %dir %attr(775,root,apache) %{ap_htdocsdir}/%{name}/IMG %dir %attr(775,root,apache) %{ap_htdocsdir}/%{name}/ecrire %dir %attr(775,root,apache) %{_localstatedir}/%{name} %dir %attr(775,root,apache) /var/cache/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %changelog * Wed Jan 21 2004 Guillaume Rousse <guillomovitch@zarb.org> 1.7-1mdk - first mdk release (SOS package strikes again)