From 354c0797518baa51a1fdcbe9e8921883c45b7895 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 15 May 2016 11:29:38 +0300 Subject: rpm packaging rpm packaging (using gbp, hence debian/gbp.conf) --- php-cpp.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 php-cpp.spec (limited to 'php-cpp.spec') diff --git a/php-cpp.spec b/php-cpp.spec new file mode 100644 index 0000000..af7d27d --- /dev/null +++ b/php-cpp.spec @@ -0,0 +1,76 @@ +Summary: C++ library for developing PHP extensions +Name: php-cpp +Version: 1.5.3 +Release: 1 +License: Apache-2.0 +Group: Utilities/System +Source: %{name}-%{version}.tar.gz +# Patches auto-generated by git-buildpackage: +Patch0:0001-Makefile-install-DESTDIR-and-more.patch +Patch1:0002-Don-t-run-ldconfig-on-install.patch +URL: https://github.com/CopernicaMarketingSoftware/PHP-CPP +Vendor: Xorcom Inc +Packager: Tzafrir Cohen +Requires: php +BuildRequires: php-devel + +%description +The PHP-CPP library is a C++ library for developing PHP extensions. It +offers a collection of well documented and easy-to-use classes that can +be used and extended to build native extensions for PHP. The full +documentation can be found on http://www.php-cpp.com. + +%package devel +Summary: C++ library for developing PHP extensions - development headers +%description devel +The PHP-CPP library is a C++ library for developing PHP extensions. It +offers a collection of well documented and easy-to-use classes that can +be used and extended to build native extensions for PHP. The full +documentation can be found on http://www.php-cpp.com. + +This package includes development headers. + +%prep +%setup +# 0001-Makefile-install-DESTDIR-and-more.patch +%patch0 -p1 +# 0002-Don-t-run-ldconfig-on-install.patch +%patch1 -p1 + +%build +%{__make} + +%install +%{__rm} -rf %{buildroot} +%make_install INSTALL_LIB=%{_libdir} + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%clean +%{__rm} -rf %{buildroot} + +################################################################### +# +# File List +# +################################################################### +%files +%defattr(-, root, root) +%{_libdir}/libphpcpp.so.* +%doc README.md + +%files devel +%{_includedir}/phpcpp.h +%{_includedir}/phpcpp/* +%{_libdir}/libphpcpp.a* +%{_libdir}/libphpcpp.so +%doc Examples/* +%doc documentation/* + +%changelog +* Thu May 15 2016 tzafrir 1.5.3-1 +- Initial packaging. -- cgit v1.2.3