summaryrefslogtreecommitdiffstats
path: root/php-pecl-wxwidgets.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-03-08 17:46:21 +0100
committerRemi Collet <fedora@famillecollet.com>2016-03-08 17:46:21 +0100
commit683c6d223a26ec73ac7e50b038bcdac749dccd1f (patch)
treec935132826001443885bcdd2d14ec59830fe68c8 /php-pecl-wxwidgets.spec
parent790b6f9ae5c20c6139f5ce2133560125df18ab13 (diff)
php-pecl-wxwidgets: F24
Diffstat (limited to 'php-pecl-wxwidgets.spec')
-rw-r--r--php-pecl-wxwidgets.spec25
1 files changed, 18 insertions, 7 deletions
diff --git a/php-pecl-wxwidgets.spec b/php-pecl-wxwidgets.spec
index db0e0a0..a7ee69d 100644
--- a/php-pecl-wxwidgets.spec
+++ b/php-pecl-wxwidgets.spec
@@ -8,8 +8,6 @@
#
%{?scl: %scl_package php-pecl-wxwidgets}
%{!?scl: %global _root_prefix %{_prefix}}
-%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
-%{!?__pecl: %global __pecl %{_bindir}/pecl}
%{!?__php: %global __php %{_bindir}/php}
%global with_zts 0%{?__ztsphp:1}
@@ -18,7 +16,7 @@
Summary: Cross-platform widget toolkit
Name: %{?scl_prefix}php-pecl-wxwidgets
Version: 3.0.2.0
-Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/wxwidgets
@@ -37,10 +35,12 @@ Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
Requires: %{__php}
-Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
-Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
-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}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
%if "%{?vendor}" == "Remi Collet"
# Other third party repo stuff
@@ -72,11 +72,15 @@ graphical components available to the different platforms.
Use the "wxphp" command to launch an application.
+Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
+
%prep
%setup -q -c
mv %{pecl_name}-%{version} NTS
+%{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml}
+
cd NTS
# Ensure no download will be done
sed -e '/Downloading/s/$/; exit 1/' -i config.m4
@@ -157,6 +161,7 @@ done
rm -rf %{buildroot}
+%if 0%{?fedora} < 24
# when pear installed alone, after us
%triggerin -- %{?scl_prefix}php-pear
if [ -x %{__pecl} ] ; then
@@ -173,10 +178,12 @@ fi
if [ $1 -eq 0 -a -x %{__pecl} ] ; then
%{pecl_uninstall} %{pecl_name} >/dev/null || :
fi
+%endif
%files
%defattr(-,root,root,-)
+%{?_licensedir:%license NTS/LICENSE}
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
@@ -190,10 +197,14 @@ fi
%changelog
+* Tue Mar 8 2016 Remi Collet <remi@fedoraproject.org> - 3.0.2.0-2
+- adapt for F24
+- fix license management
+
* Tue Jun 09 2015 Remi Collet <remi@fedoraproject.org> - 3.0.2.0-1
- Update to 3.0.2.0
- drop runtime dependency on pear, new scriptlets
- drop dependency on zts-php, checked on runtime
* Fri Apr 25 2014 Remi Collet <remi@fedoraproject.org> - 3.0.0.2-1
-- initial package, version 3.0.0.2 (stable) \ No newline at end of file
+- initial package, version 3.0.0.2 (stable)