doc in /usr/share/doc/pear

This commit is contained in:
remi 2011-04-06 17:05:34 +02:00
commit be71e9996f

View file

@ -5,7 +5,7 @@ Summary: Fast and Safe little cache system for PHP
Summary(fr): Méthode de cache rapide et sécurisée pour PHP
Name: php-pear-Cache-Lite
Version: 1.7.9
Release: 1%{?dist}
Release: 2%{?dist}
License: PHP
Group: Development/Libraries
Source: http://pear.php.net/get/%{pear_name}-%{version}.tgz
@ -51,9 +51,9 @@ mv ../package.xml %{name}.xml
%install
rm -rf %{buildroot} docdir
rm -rf %{buildroot}
pushd %{pear_name}-%{version}
cd %{pear_name}-%{version}
PHPRC=../php.ini %{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
# Clean up unnecessary files
@ -63,11 +63,6 @@ rm -rf %{buildroot}%{pear_phpdir}/.??*
%{__mkdir_p} %{buildroot}%{pear_xmldir}
%{__install} -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
popd
# Sort out documentation
%{__mkdir} docdir
mv %{buildroot}%{pear_docdir}/%{pear_name}/* docdir
%clean
rm -rf %{buildroot}
@ -97,13 +92,17 @@ fi
%files
%defattr(-,root,root,-)
%doc CHANGELOG docdir/*
%doc CHANGELOG
%doc %{pear_docdir}/%{pear_name}
%{pear_phpdir}/Cache
%{pear_testdir}/%{pear_name}
%{pear_xmldir}/%{name}.xml
%changelog
* Wed Apr 06 2011 Remi Collet <Fedora@FamilleCollet.com> 1.7.9-2
- doc in /usr/share/doc/pear
* Wed Mar 02 2011 Remi Collet <Fedora@FamilleCollet.com> 1.7.9-1
- Version 1.7.9 (stable) - API 1.7.7 (stable)
- define timezone during build