forked from pool/php-gnupg
6c4d55727b
OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-gnupg?expand=0&rev=1
86 lines
2.5 KiB
RPMSpec
86 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package php5-gnupg
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define pkg_name gnupg
|
|
#
|
|
Name: php5-gnupg
|
|
Version: 1.3.6
|
|
Release: 0
|
|
Summary: PHP wrapper around the gpgme library
|
|
#
|
|
License: BSD-2-Clause
|
|
Group: Productivity/Networking/Web/Servers
|
|
#
|
|
Url: http://pecl.php.net/gnupg
|
|
Source: https://pecl.php.net/get/%{pkg_name}-%{version}.tgz
|
|
BuildRequires: php5-devel
|
|
Provides: php-gnupg = %{version}
|
|
Obsoletes: php-gnupg < %{version}
|
|
#
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} < 1010
|
|
BuildRequires: gpgme
|
|
BuildRequires: libgpg-error-devel
|
|
%else
|
|
BuildRequires: gpgme-devel
|
|
%endif
|
|
%if %{?php_zend_api}0
|
|
Requires: php(api) = %{php_core_api}
|
|
Requires: php(zend-abi) = %{php_zend_api}
|
|
%else
|
|
%requires_eq php5
|
|
%endif
|
|
|
|
%description
|
|
This extension provides methods to interact with gnupg.
|
|
|
|
%prep
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
mkdir %{name}
|
|
|
|
%build
|
|
%{_bindir}/phpize
|
|
pushd %{name}
|
|
CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
|
export CFLAGS
|
|
export CXXFLAGS
|
|
export PHP_RPATH='no'
|
|
../configure --disable-rpath --with-gnupg=%{_usr} --with-libdir=%{_lib}
|
|
make %{?_smp_mflags}
|
|
popd
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags} -C %{name} INSTALL_ROOT=%{buildroot}
|
|
mkdir -p %{buildroot}%{_sysconfdir}/php5/conf.d
|
|
echo "; comment out next line to disable gnupg extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/gnupg.ini
|
|
echo 'extension = gnupg.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/gnupg.ini
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/php5/extensions/gnupg.so
|
|
%config(noreplace) %{_sysconfdir}/php5/conf.d/gnupg.ini
|
|
%doc LICENSE README
|
|
|
|
%changelog -n php5-gnupg
|
|
* Sat Dec 30 2006 - judas_iscariote@shorewall.net
|
|
- lib64 fixes
|
|
* Thu Nov 16 2006 - soporte@onfocus.cl
|
|
- very first build
|
|
|