blob: 0355cc0b6f955d840fc80178de2867df7c24a76b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
Name: gpg2
Version: 2.0.26
Release: 0
License: GPL-3.0+
Summary: GnuPG 2
Url: http://www.gnupg.org/aegypten2/
Group: Security/Certificate Management
Source: gnupg-%{version}.tar.bz2
Source1001: gpg2.manifest
BuildRequires: automake
BuildRequires: expect
BuildRequires: fdupes
BuildRequires: gettext-tools
BuildRequires: libassuan-devel >= 2.0.0
BuildRequires: libcurl-devel >= 7.10
BuildRequires: libgcrypt-devel >= 1.4.0
BuildRequires: libgpg-error-devel >= 1.7
BuildRequires: libksba-devel >= 1.0.7
BuildRequires: libpth-devel >= 1.3.7
BuildRequires: readline-devel
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(zlib)
Provides: gnupg = %{version}
Provides: gpg = 1.4.9
Provides: newpg
Provides: gpg2_signd_support
Obsoletes: gpg < 1.4.9
%description
GnuPG 2 is the successor of "GnuPG" or GPG. It provides: GPGSM,
gpg-agent, and a keybox library.
%prep
%setup -q -n gnupg-%{version}
cp %{SOURCE1001} .
%build
%if 0%{?asan}
%restore_fcommon
export LIBS+=" -ldl "
%endif
%autogen
# build PIEs (position independent executables) for address space randomisation:
PIE="-fpie"
export CFLAGS="%{optflags} ${PIE} "
export LDFLAGS=-pie
%configure \
--libexecdir=%{_libdir} \
--docdir=%{_docdir}/%{name} \
--with-agent-pgm=%{_bindir}/gpg-agent \
--with-scdaemon-pgm=%{_bindir}/scdaemon \
--enable-gpgsm=yes \
--enable-gpg \
--with-gnu-ld
%__make %{?_smp_mflags}
%check
%if ! 0%{?qemu_user_space_build}
%__make check
./tools/gpgsplit -v -p pubsplit- --uncompress <tests/openpgp/pubring.gpg
./tools/gpgsplit -v -p secsplit- --secret-to-public --uncompress <tests/openpgp/secring.gpg
%endif
%install
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/gnupg/
install -m 644 doc/examples/gpgconf.conf %{buildroot}%{_sysconfdir}/gnupg
rm -rf %{buildroot}%{_datadir}/doc/packages/gpg2/examples/gpgconf.conf
ln -sf gpg2 %{buildroot}%{_bindir}/gpg
ln -sf gpgv2 %{buildroot}%{_bindir}/gpgv
ln -sf gpg2.1 %{buildroot}%{_mandir}/man1/gpg.1
ln -sf gpgv2.1 %{buildroot}%{_mandir}/man1/gpgv.1
rm -rf %{buildroot}/%{_datadir}/locale/en@{bold,}quot
%find_lang gnupg2
%fdupes %{buildroot}
%files -f gnupg2.lang
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING.LIB COPYING
%doc %{_infodir}/gnupg*
%doc %{_docdir}/%{name}
%{_mandir}/man*/*
%{_bindir}/*
%{_libdir}/[^d]*
%{_sbindir}/addgnupghome
%{_sbindir}/applygnupgdefaults
%{_datadir}/gnupg
%dir %{_sysconfdir}/gnupg
%config(noreplace) %{_sysconfdir}/gnupg/gpgconf.conf
|