summaryrefslogtreecommitdiff
path: root/php-cpp.spec
blob: af7d27d100df03f44e3ced2acea6228c6e643238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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 <tzafrir.cohen@xorcom.com>
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 <tzafrir.cohen@xorcom.com> 1.5.3-1
- Initial packaging.