force gpg2
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
This commit is contained in:
parent
388681cc3d
commit
e6ff799a45
11
gpgme.spec
11
gpgme.spec
@ -22,6 +22,7 @@ Patch0: gpgme-1.7.0-confix_extras.patch
|
|||||||
Patch1: gpgme-1.3.2-largefile.patch
|
Patch1: gpgme-1.3.2-largefile.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gawk
|
BuildRequires: gawk
|
||||||
# see patch2 above, else we only need 2.0.4
|
# see patch2 above, else we only need 2.0.4
|
||||||
BuildRequires: gnupg2 >= %{gnupg2_min_ver}
|
BuildRequires: gnupg2 >= %{gnupg2_min_ver}
|
||||||
@ -64,7 +65,7 @@ Requires(postun): /sbin/install-info
|
|||||||
Summary: %{name} bindings for Python 2
|
Summary: %{name} bindings for Python 2
|
||||||
%{?python_provide:%python_provide python2-%{name}}
|
%{?python_provide:%python_provide python2-%{name}}
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}}%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
|
||||||
%description -n python2-%{name}
|
%description -n python2-%{name}
|
||||||
%{summary}.
|
%{summary}.
|
||||||
@ -73,7 +74,7 @@ Requires: %{name}%{?_isa} = %{?epoch:%{epoch}}%{version}-%{release}
|
|||||||
Summary: %{name} bindings for Python 3
|
Summary: %{name} bindings for Python 3
|
||||||
%{?python_provide:%python_provide python3-%{name}}
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}}%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
|
||||||
%description -n python3-%{name}
|
%description -n python3-%{name}
|
||||||
%{summary}.
|
%{summary}.
|
||||||
@ -86,7 +87,7 @@ Requires: %{name}%{?_isa} = %{?epoch:%{epoch}}%{version}-%{release}
|
|||||||
# set it to a value which we know will be suppressed.
|
# set it to a value which we know will be suppressed.
|
||||||
sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g' src/gpgme-config.in
|
sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g' src/gpgme-config.in
|
||||||
|
|
||||||
sed -i -e 's|GPG = gpg|GPG = gpg2|' tests/gpg/Makefile.{in,am}
|
find -type f -name Makefile\* -exec sed -i -e 's|GPG = gpg|GPG = gpg2|' {} ';'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static --disable-silent-rules --enable-languages=python
|
%configure --disable-static --disable-silent-rules --enable-languages=python
|
||||||
@ -98,7 +99,6 @@ sed -i -e 's|GPG = gpg|GPG = gpg2|' tests/gpg/Makefile.{in,am}
|
|||||||
# unpackaged files
|
# unpackaged files
|
||||||
rm -fv %{buildroot}%{_infodir}/dir
|
rm -fv %{buildroot}%{_infodir}/dir
|
||||||
rm -fv %{buildroot}%{_libdir}/lib*.la
|
rm -fv %{buildroot}%{_libdir}/lib*.la
|
||||||
rm -rfv %{buildroot}%{_datadir}/common-lisp/source/gpgme/
|
|
||||||
|
|
||||||
# Hack to resolve multiarch conflict (#341351)
|
# Hack to resolve multiarch conflict (#341351)
|
||||||
%ifarch %{multilib_arches}
|
%ifarch %{multilib_arches}
|
||||||
@ -115,7 +115,8 @@ install -m644 -p -D %{SOURCE2} %{buildroot}%{_includedir}/gpgme.h
|
|||||||
chrpath -d %{buildroot}%{_bindir}/%{name}-tool
|
chrpath -d %{buildroot}%{_bindir}/%{name}-tool
|
||||||
|
|
||||||
# autofoo installs useless stuff for uninstall
|
# autofoo installs useless stuff for uninstall
|
||||||
rm -vrf %{buildroot}{%{python2_sitelib},%{python3_sitelib}}
|
rm -vrf %{buildroot}%{python2_sitelib}
|
||||||
|
rm -vrf %{buildroot}%{python3_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
Loading…
Reference in New Issue
Block a user