From c0be3297237b544d0838928196e8cd56d6def0cf Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Feb 13 2016 17:46:40 +0000 Subject: drop scriptlets + cleanup --- diff --git a/php-pecl-yac.spec b/php-pecl-yac.spec index 52705c8..cc1c0f2 100644 --- a/php-pecl-yac.spec +++ b/php-pecl-yac.spec @@ -1,28 +1,20 @@ -# spec file for php-pecl-yac (previously php-yac) +# Fedora spec file for php-pecl-yac (previously php-yac) # -# Copyright (c) 2013-2014 Remi Collet +# Copyright (c) 2013-2016 Remi Collet # License: CC-BY-SA -# http://creativecommons.org/licenses/by-sa/3.0/ +# 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 yac %global with_tests %{!?_without_tests:1}%{?_without_tests:0} -%if "%{php_version}" < "5.6" -%global ini_name %{pecl_name}.ini -%else %global ini_name 40-%{pecl_name}.ini -%endif Summary: Lockless user data cache Name: php-pecl-%{pecl_name} Version: 0.9.2 -Release: 3%{?dist} +Release: 4%{?dist} License: PHP Group: Development/Languages @@ -33,8 +25,6 @@ BuildRequires: php-devel > 5.2 BuildRequires: php-pear BuildRequires: fastlz-devel -Requires(post): %{__pecl} -Requires(postun): %{__pecl} Requires: php(zend-abi) = %{php_zend_api} Requires: php(api) = %{php_core_api} @@ -45,12 +35,6 @@ Provides: php-%{pecl_name}%{?_isa} = %{version} Provides: php-pecl(%{pecl_name}) = %{version} Provides: php-pecl(%{pecl_name})%{?_isa} = %{version} -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter private shared object -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} -%endif - %description Yac (Yet Another Cache) is a shared memory user data cache for PHP. @@ -68,7 +52,9 @@ that your product is not very sensitive to that. mv %{pecl_name}-%{version} NTS # Don't install (register) the tests -sed -e 's/role="test"/role="src"/' -i package.xml +sed -e 's/role="test"/role="src"/' \ + -e '/LICENSE/s/role="doc"/role="src"/' \ + -i package.xml cd NTS # drop bundled fastlz to ensure it is not used @@ -183,17 +169,8 @@ REPORT_EXIT_STATUS=1 \ %endif -%post -%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : - - -%postun -if [ $1 -eq 0 ] ; then - %{pecl_uninstall} %{pecl_name} >/dev/null || : -fi - - %files +%license NTS/LICENSE %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -207,6 +184,10 @@ fi %changelog +* Sat Feb 13 2016 Remi Collet - 0.9.2-4 +- drop scriptlets (replaced by file triggers in php-pear) +- cleanup + * Thu Feb 04 2016 Fedora Release Engineering - 0.9.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild