/[packages]/cauldron/php-raphf/current/SPECS/php-raphf.spec
ViewVC logotype

Contents of /cauldron/php-raphf/current/SPECS/php-raphf.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2032731 - (show annotations) (download)
Sat Jan 20 13:06:59 2024 UTC (3 months ago) by mokraemer
File size: 1888 byte(s)
rebuild for include path change
1 # Define version and release number
2 %define php_common_major 8
3 %define php_common_sub 3
4 %define phplong %{php_common_major}.%{php_common_sub}
5 %define modname raphf
6 %define soname %{modname}.so
7 %define inifile B14_%{modname}.ini
8 %define incdir %(php-config%{phplong} --include-dir)
9 %define extdir %(php-config%{phplong} --extension-dir)
10
11 Summary: Resource and persistent handles factory
12 Name: php-%{modname}
13 Version: 2.0.1
14 Release: %mkrel 11
15 Group: Development/PHP
16 License: BSD
17 URL: https://pecl.php.net/package/%{modname}
18 Source0: https://pecl.php.net/get/%{modname}-%{version}.tgz
19 BuildRequires: php-devel >= 3:%{phplong}.0
20
21 %description
22 %{modname}
23
24 %package -n php%{phplong}-%{modname}
25 Summary: Resource and persistent handles factory
26 Group: Development/PHP
27 Requires: php >= 3:%{phplong}.0
28 Requires: php-common = 3:%{phplong}
29 Provides: php-%{modname} = %{version}
30
31 %description -n php%{phplong}-%{modname}
32 A reusable split-off of pecl_http's persistent handle and resource factory API.
33
34 %prep
35
36 %setup -q -n %{modname}-%{version}
37 [ "../package*.xml" != "/" ] && mv ../package*.xml .
38
39 %build
40 %serverbuild
41
42 phpize
43 %configure --with-libdir=%{_lib} \
44 --with-%{modname}=shared,%{_prefix}
45
46 %make_build
47 mv modules/*.so .
48
49 %install
50 install -d %{buildroot}%{extdir}
51 install -d %{buildroot}%{_sysconfdir}/php.d
52 install -d %{buildroot}%{incdir}/ext/%{modname}
53
54 install -m755 %{soname} %{buildroot}%{extdir}/
55
56 install -m644 php_%{modname}.h %{buildroot}%{incdir}/ext/%{modname}
57 install -m644 php_%{modname}_api.h %{buildroot}%{incdir}/ext/%{modname}
58
59 cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
60 extension = %{modname}
61 EOF
62
63 %files -n php%{phplong}-%{modname}
64 %doc package.xml
65 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/%{inifile}
66 %attr(0755,root,root) %{extdir}/%{soname}
67 %{incdir}/ext/%{modname}/php_%{modname}.h
68 %{incdir}/ext/%{modname}/php_%{modname}_api.h

  ViewVC Help
Powered by ViewVC 1.1.30