Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-release-src > by-pkgid > 3ae638c05a19ead4cc5d9507416f8875 > files > 3

spip-1.9.2c-1mdv2008.1.src.rpm

%define	name	spip
%define	Name	SPIP
%define	version	1.9.2c
%define	Version	1-9-2c
%define	release	%mkrel 1
%define _requires_exceptions pear(SourceMap.class.php)


Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	CMS tool for Internet
License:	GPL
Group:		System/Servers
Source0:	%{name}.tar.bz2
Source1:	%{name}.logrotate.bz2
Source2:	%{name}-apache.conf.bz2
URL:		http://www.spip.net/
BuildRequires:  apache-base >= 2.0.54-5mdk
Requires(pre):  mod_php >= 2.0.54-5mdk
Requires(pre):  apache >= 2.0.54-5mdk
Requires(pre):	rpm-helper
BuildArch:	noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%description
SPIP is a publishing system developed by the minirezo 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}
find . -name remove.txt -exec rm -f {} \;
find . -type f -exec chmod 644 {} \;
find . -name '*svn*' -exec rm -f {} \;

%build

%install
rm -rf $RPM_BUILD_ROOT

# install files
install -d -m 755 $RPM_BUILD_ROOT%{_var}/www/%{name}
cp -pR * $RPM_BUILD_ROOT%{_var}/www/%{name}

# logrotate
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
bzcat %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}

# apache configuration
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/webapps.d
bzcat %{SOURCE2} > $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf

%clean
rm -rf $RPM_BUILD_ROOT

%post
%create_ghostfile /var/log/httpd/spip.log apache apache 640
%_post_webapp

%postun
%_postun_webapp

%files
%defattr(-,root,root)
%dir %{_var}/www/%{name}
%{_var}/www/%{name}/*.php3
%{_var}/www/%{name}/*.htc
%{_var}/www/%{name}/*.txt
%{_var}/www/%{name}/*.gif
%{_var}/www/%{name}/*.php
%{_var}/www/%{name}/config
%{_var}/www/%{name}/dist
%{_var}/www/%{name}/ecrire/*
%{_var}/www/%{name}/local
%{_var}/www/%{name}/tmp
%{_var}/www/%{name}/oo
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf
%dir %attr(775,root,apache) %{_var}/www/%{name}/IMG
%dir %attr(775,root,apache) %{_var}/www/%{name}/ecrire
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}




%changelog
* Thu Dec 13 2007 Anne Nicolas <anne.nicolas@mandriva.com> 1.9.2c-1mdv2008.1
+ Revision: 119561
- New version, fix security issues

* Tue Aug 14 2007 Anne Nicolas <anne.nicolas@mandriva.com> 1.9.2-2mdv2008.0
+ Revision: 63505
- Fix description typo (#30944)


* Tue Feb 27 2007 Anne Nicolas <anne.nicolas@mandriva.com> 1.9.2-1mdv2007.0
+ Revision: 126187
- New version
- Correct pear
- Import spip

* Thu Oct 12 2006 Anne Nicolas <anne.nicolas@mandriva.com> 1.9.1-2mdk
- new revision

* Mon Sep 11 2006 Anne Nicolas <anne.nicolas@mandriva.com> 1.9.1-1mdk
- new version : new tags and filters, bug fixes

* Sun Jul 02 2006 Anne Nicolas <anne.nicolas@mandriva.com> 1.9.0-3mk
- fix postinstall and delete order

* Sun Jul 02 2006 Anne Nicolas <anne.nicolas@mandriva.com> 1.9.0-2mk
- add apache configuration

* Sun Jul 02 2006 Anne Nicolas <anne.nicolas@mandriva.com> 1.9.0-1mk
- new version
- use /var/www as web root

* Sat Mar 18 2006 Anne Nicolas <anne.nicolas@mandriva.com> 1.8.3-1mdk
- new version

* Wed Feb 15 2006 Anne Nicolas <anne.nicolas@mandriva.com> 1.8.2-2mdk
- new version : bugs fix

* Sat Oct 22 2005 Anne Nicolas <anne.nicolas@mandriva.com> 1.8.2-1mdk
- new version
- clean spec

* Mon Apr 18 2005 ANne Nicolas <anne.nicolas@mandriva.com> 1.8-1mdk
- new version

* Fri Feb 18 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.7.2-2mdk
- spec file cleanups, remove the ADVX-build stuff

* Thu Jul 08 2004 Anne Nicolas <anne@mandrake.org> 1.7.2-1mdk
- new version

* Tue Apr 27 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.7.1-3mdk
- fix install (cpjc <cpjc@free.fr>)

* Wed Apr 21 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.7.1-2mdk
- fix order
- fix changelog
- user rpm-helper facility to create empty files

* Wed Apr 21 2004 Anne Nicolas <anne@lea-linux.org> 1.7.1-1mdk
- new release