Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
remi
410b414dec update to 1.7.12 2011-08-16 09:11:29 +02:00
remi
48a161c7ad fix date in changelog 2011-05-31 17:48:19 +02:00
remi
ea2c5b8a23 update to 1.7.11 (docfix) 2011-05-31 17:48:09 +02:00
remi
b337b7d4a3 update to 1.7.10 2011-05-30 19:30:22 +02:00
4 changed files with 28 additions and 21 deletions

6
.gitignore vendored
View file

@ -1,3 +1,5 @@
*~
package-*.xml
Cache_Lite-1.7.8.tgz
/Cache_Lite-1.7.9.tgz
/Cache_Lite-1.7.10.tgz
/Cache_Lite-1.7.11.tgz
/Cache_Lite-1.7.12.tgz

View file

@ -4,7 +4,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
Version: 1.7.12
Release: 1%{?dist}
License: PHP
Group: Development/Libraries
@ -37,10 +37,6 @@ et/ou des tests anti-corruption).
%setup -c -q
%{_bindir}/php -n %{SOURCE2} package.xml | tee CHANGELOG | head -n 10
# Create a "localized" php.ini to avoid build warning
cp /etc/php.ini .
echo "date.timezone=UTC" >>php.ini
cd %{pear_name}-%{version}
# package.xml is V2
mv ../package.xml %{name}.xml
@ -51,10 +47,10 @@ mv ../package.xml %{name}.xml
%install
rm -rf %{buildroot} docdir
rm -rf %{buildroot}
pushd %{pear_name}-%{version}
PHPRC=../php.ini %{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
# Clean up unnecessary files
rm -rf %{buildroot}%{pear_phpdir}/.??*
@ -63,11 +59,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}
@ -78,7 +69,7 @@ lst=$(find %{buildroot}%{pear_phpdir} -exec grep -q %{buildroot} {} \; -print)
[ ! -z "$lst" ] && echo "Reference to BUILDROOT in $lst" && exit 1;
cd %{pear_name}-%{version}
PHPRC=../php.ini %{__pear} \
%{__pear} \
run-tests \
-i "-d include_path=%{buildroot}%{pear_phpdir}:%{pear_phpdir}" \
tests | tee ../tests.log
@ -97,13 +88,27 @@ 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
* Tue Aug 16 2011 Remi Collet <Fedora@FamilleCollet.com> 1.7.12-1
- Version 1.7.12 (stable) - API 1.7.7 (stable)
* Tue May 31 2011 Remi Collet <Fedora@FamilleCollet.com> 1.7.11-1
- Version 1.7.11 (stable) - API 1.7.7 (stable)
- Updated LICENSE file
* Mon May 30 2011 Remi Collet <Fedora@FamilleCollet.com> 1.7.10-1
- Version 1.7.10 (stable) - API 1.7.7 (stable)
- TOFIX: LICENSE file provided is outdated
http://pear.php.net/bugs/18571
- 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

View file

@ -1 +1 @@
e4b84a2016f995a193749d00028f0669 Cache_Lite-1.7.9.tgz
2821420ba814c66fa37b47afd75b9821 Cache_Lite-1.7.12.tgz

View file

@ -27,10 +27,10 @@ if ($xml['version'] >= "2"){ // Package.xml V 2.0
krsort($tab);
foreach($tab as $rel) {
printf("*** Version %s (%s) - API %s (%s) - %s\n\n%s\n\n",
$rel->version->release, $rel->stability->release,
$rel->version->api, $rel->stability->api,
$rel->version->release, $rel->stability->release,
$rel->version->api, $rel->stability->api,
$rel->date, $rel->notes);
}
}
}
} else { // Package.xml V 1.0
printf("* Version %s (%s) - %s\n\n%s\n\n",