summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-01-02 13:06:06 +0100
committerRemi Collet <fedora@famillecollet.com>2014-01-02 13:06:06 +0100
commitac55f6358166d767def402a8b9df836d2e0e5b8e (patch)
treee04b12adc8bfbd477623b0c0853f814205b9f12e
parentaa171db3369b6f66cf1176e2a8755db115c8379e (diff)
php-phurple: 0.6.0 (alpha)
-rw-r--r--php-phurple.spec34
1 files changed, 28 insertions, 6 deletions
diff --git a/php-phurple.spec b/php-phurple.spec
index ff84c2b..fad82e4 100644
--- a/php-phurple.spec
+++ b/php-phurple.spec
@@ -1,4 +1,17 @@
-%global gh_commit 78b53e93c78a5851ede1916d8fc50ef79a0f2195
+# spec file for php-phurple
+#
+# Copyright (c) 2013-2014 Remi Collet
+# License: CC-BY-SA
+# http://creativecommons.org/licenses/by-sa/3.0/
+#
+# Please, preserve the changelog entries
+#
+%{?scl: %scl_package php-phurple}
+%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
+%{!?__pecl: %global __pecl %{_bindir}/pecl}
+%{!?__php: %global __php %{_bindir}/php}
+
+%global gh_commit 46b7db6fc1cd69fc46ffd75c8622a94f3a1079c8
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner weltling
%global gh_project phurple
@@ -6,9 +19,9 @@
#global gh_date 20131007
%global with_zts 0%{?__ztsphp:1}
-Name: php-%{gh_project}
+Name: %{?scl_prefix}php-%{gh_project}
Summary: PHP bindings for libpurple
-Version: 0.5.0
+Version: 0.6.0
Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
URL: https://github.com/%{gh_owner}/%{gh_project}
@@ -19,12 +32,17 @@ Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libpurple-devel
BuildRequires: glib2-devel
-BuildRequires: php-devel
BuildRequires: pcre-devel
+BuildRequires: %{?scl_prefix}php-devel
+Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires: %{?scl_prefix}php(api) = %{php_core_api}
+
+%if 0%{?fedora} < 20
# Filter private shared
%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
%{?filter_setup}
+%endif
%description
@@ -97,7 +115,7 @@ install -D -m 644 %{pecl_name}.ini %{buildroot}%{php_ztsinidir}/%{pecl_name}.ini
%check
: Minimal load test for NTS extension
-%{_bindir}/php --no-php-ini \
+%{__php} --no-php-ini \
--define extension=NTS/modules/%{pecl_name}.so \
--modules | grep %{pecl_name}
@@ -116,7 +134,7 @@ rm -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
-%doc NTS/{CREDITS,LICENSE,README}
+%doc NTS/{CREDITS,LICENSE,README.md,TODO}
%config(noreplace) %{php_inidir}/%{pecl_name}.ini
%{php_extdir}/%{pecl_name}.so
@@ -128,5 +146,9 @@ rm -rf %{buildroot}
%changelog
+* Thu Jan 2 2014 Remi Collet <remi@fedoraproject.org> - 0.6.0-1
+- update to 0.6.0 (alpha)
+- adapt for SCL
+
* Thu Oct 17 2013 Remi Collet <remi@fedoraproject.org> - 0.5.0-1
- initial package, version 0.5.0