- Install macros to /usr/lib/rpm/macros.d
This commit is contained in:
Remi Collet 2014-02-11 07:47:20 +01:00
parent ccdcd85ea2
commit 6118eaeb38
3 changed files with 13 additions and 8 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@ php-5.4.*.bz2
/php-5.5.6-strip.tar.xz
/php-5.5.7-strip.tar.xz
/php-5.5.8-strip.tar.xz
/php-5.5.9-strip.tar.xz

View File

@ -3,7 +3,7 @@
%global zendver 20121212
%global pdover 20080721
# Extension version
%global opcachever 7.0.3-dev
%global opcachever 7.0.3
# Adds -z now to the linker flags
%global _hardened_build 1
@ -68,8 +68,8 @@
Summary: PHP scripting language for creating dynamic web sites
Name: php
Version: 5.5.8
Release: 2%{?dist}
Version: 5.5.9
Release: 1%{?dist}
# All files licensed under PHP version 3.01, except
# Zend is licensed under Zend
# TSRM is licensed under BSD
@ -1368,7 +1368,6 @@ sed -e '/blacklist_filename/s/php.d/php-zts.d/' \
-i $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/opcache.ini
# Install the macros file:
install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
sed -e "s/@PHP_APIVER@/%{apiver}%{isasuffix}/" \
-e "s/@PHP_ZENDVER@/%{zendver}%{isasuffix}/" \
-e "s/@PHP_PDOVER@/%{pdover}%{isasuffix}/" \
@ -1377,8 +1376,8 @@ sed -e "s/@PHP_APIVER@/%{apiver}%{isasuffix}/" \
-e "/zts/d" \
%endif
< %{SOURCE3} > macros.php
install -m 644 -c macros.php \
$RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.php
install -m 644 -D macros.php \
$RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d/macros.php
# Remove unpackaged files
rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \
@ -1489,7 +1488,7 @@ exit 0
%{_libdir}/php-zts/build
%endif
%{_mandir}/man1/php-config.1*
%{_sysconfdir}/rpm/macros.php
%{_rpmconfigdir}/macros.d/macros.php
%files embedded
%{_libdir}/libphp5.so
@ -1536,6 +1535,11 @@ exit 0
%changelog
* Tue Feb 11 2014 Remi Collet <remi@fedoraproject.org> 5.5.9-1
- Update to 5.5.9
http://www.php.net/ChangeLog-5.php#5.5.9
- Install macros to /usr/lib/rpm/macros.d
* Thu Jan 23 2014 Joe Orton <jorton@redhat.com> - 5.5.8-2
- fix _httpd_mmn expansion in absence of httpd-devel

View File

@ -1 +1 @@
64c63f7e9db881ba025d33a3a459039f php-5.5.8-strip.tar.xz
ea0c9ea27376af839c9379a40e141f9c php-5.5.9-strip.tar.xz