diff --git a/php-pecl-apfd.spec b/php-pecl-apfd.spec index dde8b97..99ddc75 100644 --- a/php-pecl-apfd.spec +++ b/php-pecl-apfd.spec @@ -1,40 +1,28 @@ # spec file for php-pecl-apfd # -# Copyright (c) 2015 Remi Collet +# Copyright (c) 2015-2016 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} -%{!?__pecl: %global __pecl %{_bindir}/pecl} -%{!?__php: %global __php %{_bindir}/php} - %global with_zts 0%{?__ztsphp:1} %global pecl_name apfd -%global with_tests %{?_without_tests:0}%{!?_without_tests:1} -%if "%{php_version}" < "5.6" -%global ini_name %{pecl_name}.ini -%else +%global with_tests 0%{!?_without_tests:1} %global ini_name 40-%{pecl_name}.ini -%endif -#global prever RC1 Summary: Always Populate Form Data Name: php-pecl-%{pecl_name} Version: 1.0.1 -Release: 3%{?dist} +Release: 4%{?dist} License: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: php-devel > 5.3 BuildRequires: php-pear -Requires(post): %{__pecl} -Requires(postun): %{__pecl} Requires: php(zend-abi) = %{php_zend_api} Requires: php(api) = %{php_core_api} @@ -45,12 +33,6 @@ Provides: php-pecl(%{pecl_name})%{?_isa} = %{version} # Split off pecl/http Conflicts: php-pecl(http) < 2.4 -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} -%endif - %description This tiny extension lets PHP's post handler parse `multipart/form-data` and @@ -107,8 +89,6 @@ make %{?_smp_mflags} %install -rm -rf %{buildroot} - make -C NTS install INSTALL_ROOT=%{buildroot} # install config file @@ -129,16 +109,6 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done -%post -%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : - - -%postun -if [ $1 -eq 0 ] ; then - %{pecl_uninstall} %{pecl_name} >/dev/null || : -fi - - %check cd NTS : Minimal load test for NTS extension @@ -168,12 +138,7 @@ cd ../ZTS %endif -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) %doc %{pecl_docdir}/%{pecl_name} %{?_licensedir:%license NTS/LICENSE} @@ -188,6 +153,10 @@ rm -rf %{buildroot} %changelog +* Wed Feb 10 2016 Remi Collet - 4.0.10-3 +- drop scriptlets (replaced by file triggers in php-pear) +- cleanup + * Thu Feb 04 2016 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild