[packages/php-pecl-apcu] use make install to create -devel package

glen glen at pld-linux.org
Thu Nov 9 20:07:07 CET 2017


commit d5da6b3767224ecbea59a43b37a41013bf56fd6e
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Thu Nov 9 21:06:57 2017 +0200

    use make install to create -devel package

 php-pecl-apcu.spec | 28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)
---
diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec
index befe688..cebb99a 100644
--- a/php-pecl-apcu.spec
+++ b/php-pecl-apcu.spec
@@ -3,7 +3,7 @@
 %bcond_without	web		# make web package
 
 # don't build for php53
-%if 0%{?_pld_builder:1} && "%{?php_suffix}" != "55"
+%if 0%{?_pld_builder:1} && "%{?php_suffix}" != "56"
 %undefine	with_web
 %endif
 
@@ -12,16 +12,16 @@
 Summary:	APCu - APC User Cache
 Name:		%{php_name}-pecl-%{modname}
 Version:	4.0.11
-Release:	1
+Release:	2
 License:	PHP 3.01
 Group:		Development/Languages/PHP
-Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
+Source0:	https://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5:	13c0c0dd676e5a7905d54fa985d0ee62
 Source1:	%{modname}.ini
 Source2:	apache.conf
 Source3:	config.php
 Patch0:		config.patch
-URL:		http://pecl.php.net/package/APCu/
+URL:		https://pecl.php.net/package/APCu/
 BuildRequires:	%{php_name}-devel >= 4:5.1.0
 BuildRequires:	libtool
 BuildRequires:	rpmbuild(macros) >= 1.666
@@ -47,6 +47,15 @@ possibly even distributed solutions; this would be a grave error. The
 tried and tested APC codebase provides far superior support for local
 storage of PHP variables.
 
+%package devel
+Summary: APCu developer files (header)
+Group:		Development/Libraries
+Requires:	%{php_name}-devel
+# does not require base
+
+%description devel
+These are the files needed to compile programs using Igbinary
+
 %package -n apcu-panel
 Summary:	APCu control panel
 Group:		Applications/Networking
@@ -80,8 +89,11 @@ phpize
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{php_extensiondir},%{php_sysconfdir}/conf.d}
-install -p modules/apcu.so $RPM_BUILD_ROOT%{php_extensiondir}/%{modname}.so
+%{__make} install \
+	EXTENSION_DIR=%{php_extensiondir} \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
 cp -p %{modname}.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
 
 # Install the Control Panel
@@ -122,6 +134,10 @@ fi
 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
 %attr(755,root,root) %{php_extensiondir}/%{modname}.so
 
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/php/ext/%{modname}
+
 %if %{with web}
 %files -n apcu-panel
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-apcu.git/commitdiff/d5da6b3767224ecbea59a43b37a41013bf56fd6e



More information about the pld-cvs-commit mailing list