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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1454944 - (show annotations) (download)
Mon Oct 21 13:21:50 2019 UTC (4 years, 6 months ago) by mokraemer
File size: 1396 byte(s)
removed dirname
1 %define modname gnupg
2 %define soname %{modname}.so
3 %define inifile A50_%{modname}.ini
4
5 Summary: A wrapper around the gpgme library for PHP
6 Name: php-%{modname}
7 Version: 1.4.0
8 Release: %mkrel 9
9 Group: Development/PHP
10 License: BSD
11 URL: http://pecl.php.net/package/gnupg/
12 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
13 BuildRequires: php-devel >= 3:7.3.0
14 BuildRequires: gpgme-devel
15 BuildRequires: gnupg
16 Requires: php >= 3:7.3.0
17
18 %description
19 This extension provides methods to interact with gnupg.
20
21 %prep
22
23 %setup -q -n %{modname}-%{version}
24 [ "../package*.xml" != "/" ] && mv ../package*.xml .
25
26 # lib64 fix
27 perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4
28
29 %build
30 %serverbuild
31
32 export CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
33
34 phpize
35 %configure2_5x --with-libdir=%{_lib} \
36 --with-%{modname}=shared,%{_prefix}
37
38 # antibork
39 perl -pi -e "s|^GNUPG_SHARED_LIBADD = .*|GNUPG_SHARED_LIBADD = -lgpgme|g" Makefile
40
41 %make_build
42 mv modules/*.so .
43
44 %install
45 install -d %{buildroot}%{_libdir}/php/extensions
46 install -d %{buildroot}%{_sysconfdir}/php.d
47
48 install -m755 %{soname} %{buildroot}%{_libdir}/php/extensions/
49
50 cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
51 extension = %{soname}
52 EOF
53
54 %files
55 %doc tests LICENSE README package*.xml
56 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/%{inifile}
57 %attr(0755,root,root) %{_libdir}/php/extensions/%{soname}
58
59

  ViewVC Help
Powered by ViewVC 1.1.30