diff options
| -rw-r--r-- | php-pecl-propro.spec | 26 | 
1 files changed, 16 insertions, 10 deletions
| diff --git a/php-pecl-propro.spec b/php-pecl-propro.spec index 8aba8ea..73f66a0 100644 --- a/php-pecl-propro.spec +++ b/php-pecl-propro.spec @@ -18,10 +18,6 @@  %endif  %{?scl:          %scl_package        php-pecl-raphf} -%{!?php_inidir:  %global php_inidir  %{_sysconfdir}/php.d} -%{!?php_incldir: %global php_incldir %{_includedir}/php} -%{!?__pecl:      %global __pecl      %{_bindir}/pecl} -%{!?__php:       %global __php       %{_bindir}/php}  %global with_zts  0%{?__ztsphp:1}  %global pecl_name propro @@ -35,7 +31,7 @@  Summary:        Property proxy  Name:           %{?sub_prefix}php-pecl-%{pecl_name}  Version:        1.0.2 -Release:        1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release:        2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}  License:        BSD  Group:          Development/Languages  URL:            http://pecl.php.net/package/%{pecl_name} @@ -49,11 +45,11 @@ Requires:       %{?scl_prefix}php(zend-abi) = %{php_zend_api}  Requires:       %{?scl_prefix}php(api) = %{php_core_api}  %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} -Provides:       %{?scl_prefix}php-%{pecl_name} = %{version} -Provides:       %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} -Provides:       %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} -Provides:       %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} -Provides:       %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} +Provides:       %{?scl_prefix}php-%{pecl_name}               = %{version} +Provides:       %{?scl_prefix}php-%{pecl_name}%{?_isa}       = %{version} +Provides:       %{?scl_prefix}php-pecl-%{pecl_name}          = %{version}-%{release} +Provides:       %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa}  = %{version}-%{release} +Provides:       %{?scl_prefix}php-pecl(%{pecl_name})         = %{version}  Provides:       %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}  %if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} @@ -101,6 +97,8 @@ These are the files needed to compile programs using %{name}.  %setup -q -c  mv %{pecl_name}-%{version}%{?prever} NTS +%{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} +  cd NTS  # Sanity check, really often broken  extver=$(sed -n '/#define PHP_PROPRO_VERSION/{s/.* "//;s/".*$//;p}' php_propro.h) @@ -163,6 +161,7 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i  done +%if 0%{?fedora} < 24  # when pear installed alone, after us  %triggerin -- %{?scl_prefix}php-pear  if [ -x %{__pecl} ] ; then @@ -179,6 +178,7 @@ fi  if [ $1 -eq 0 -a -x %{__pecl} ] ; then      %{pecl_uninstall} %{pecl_name} >/dev/null || :  fi +%endif  %check @@ -219,8 +219,10 @@ rm -rf %{buildroot}  %files  %defattr(-,root,root,-) +%{?_licensedir:%license NTS/LICENSE}  %doc %{pecl_docdir}/%{pecl_name}  %{pecl_xmldir}/%{name}.xml +  %config(noreplace) %{php_inidir}/%{ini_name}  %{php_extdir}/%{pecl_name}.so @@ -240,6 +242,10 @@ rm -rf %{buildroot}  %changelog +* Tue Mar  8 2016 Remi Collet <remi@fedoraproject.org> - 1.0.2-2 +- adapt for F24 +- fix license management +  * Tue Jan 19 2016 Remi Collet <remi@fedoraproject.org> - 1.0.2-1  - Update to 1.0.2 (stable) | 
