Changes of Revision 4
[-] | Added | php5-gnupg.spec |
x 1
2 +# norootforbuild 3 +%define pkg_name gnupg 4 +%define pkg_version 1.3.1 5 +# 6 +Name: php5-gnupg 7 +Version: %{pkg_version} 8 +Release: 0 9 +# 10 +License: BSD 11 +Group: Productivity/Networking/Web/Servers 12 +# 13 +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build 14 +BuildRequires: php5-devel 15 +%if 0%{?suse_version} < 1010 16 +BuildRequires: gpgme libgpg-error-devel 17 +%else 18 +BuildRequires: gpgme-devel 19 +%endif 20 + 21 +# 22 +URL: http://pecl.php.net/gnupg 23 +Source: http://pecl.php.net/package/gnupg/%{pkg_name}-%{version}.tgz 24 +Patch0: php5-gnupg-lib64.patch 25 +Summary: PHP wrapper around the gpgme library 26 +%description 27 + 28 +This extension provides methods to interact with gnupg. 29 + 30 +Authors: 31 +--------- 32 + 33 + Thilo Raufeisen <traufeisen@php.net> 34 + 35 +%debug_package 36 +%prep 37 +%setup -n %{pkg_name}-%{version} 38 +%patch0 39 + 40 +%{__mkdir} %{name} 41 + 42 +%build 43 +/usr/bin/phpize 44 +pushd %{name} 45 + 46 +CFLAGS="%{optflags} -fno-strict-aliasing" 47 +CXXFLAGS="%{optflags} -fno-strict-aliasing" 48 + 49 +%if 0%{?suse_version} > 1000 50 +CFLAGS="$CFLAGS -fstack-protector" 51 +CXXFLAGS="$CXXFLAGS -fstack-protector" 52 +%endif 53 + 54 +export CFLAGS 55 +export CXXFLAGS 56 + 57 +../configure --with-gnupg=%{_usr} --with-libdir=%{_lib} 58 + 59 +%{__make} %{?jobs:-j%jobs} 60 +popd 61 + 62 +%install 63 +%makeinstall -C %{name} INSTALL_ROOT=%{buildroot} 64 +%{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d 65 +echo "; comment out next line to disable gnupg extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/gnupg.ini 66 +echo 'extension = gnupg.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/gnupg.ini 67 + 68 + 69 +%clean 70 +%{__rm} -rf %{buildroot} 71 + 72 +%files 73 +%defattr(-,root,root,-) 74 +%{_libdir}/php5/extensions/gnupg.so 75 +%{_sysconfdir}/php5/conf.d/gnupg.ini 76 + 77 +%doc LICENSE EXPERIMENTAL README 78 + 79 +%changelog -n php5-gnupg 80 +* Sat Dec 30 2006 - judas_iscariote@shorewall.net 81 +- lib64 fixes 82 +* Thu Nov 16 2006 - soporte@onfocus.cl 83 +- very first build 84 |