]> git.pld-linux.org Git - packages/gnupg2.git/blame - gnupg2.spec
- up to 2.1.21
[packages/gnupg2.git] / gnupg2.spec
CommitLineData
79f30f85 1#
03076a38 2# Conditional build:
fe2f6c68 3%bcond_without tests # testsuite on build
9ae43e98 4%bcond_with gnutls # GnuTLS instead of NTBTLS
79f30f85 5%bcond_with selinux # "SELinux hacks"
d54c94db 6#
f56b1d35
JB
7Summary: GNU Privacy Guard - tool for secure communication and data storage - enhanced version
8Summary(pl.UTF-8): GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona
c85d209c 9Name: gnupg2
bfc582b2 10# 2.1.x is development version unfortunately (see gpg2 --version)
78239973 11Version: 2.1.21
db8221ca 12Release: 0.1
71099ee5 13License: GPL v3+
b626fce0 14Group: Applications/File
d47c18c2 15Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
78239973 16# Source0-md5: 685ebf4c3a7134ba0209c96b18b2f064
b626fce0 17Source1: gnupg-agent.sh
c85d209c 18Patch0: %{name}-info.patch
8e57d606 19
ea6e9952 20Patch2: %{name}-disable_tests.patch
6f582fc9 21Patch3: %{name}-pl.po-update.patch
b626fce0 22URL: http://www.gnupg.org/
7eecd7af 23BuildRequires: adns-devel
71099ee5 24BuildRequires: autoconf >= 2.61
9046d085 25BuildRequires: automake >= 1:1.14
b636b9b9 26BuildRequires: bzip2-devel
da0f8718 27BuildRequires: curl-devel >= 7.10
e5ce2357 28BuildRequires: gettext-tools >= 0.17
9ae43e98 29%{?with_gnutls:BuildRequires: gnutls-devel >= 3.0}
17830308
JB
30BuildRequires: libassuan-devel >= 1:2.4.3
31BuildRequires: libgcrypt-devel >= 1.7.0
32BuildRequires: libgpg-error-devel >= 1.24
33BuildRequires: libksba-devel >= 1.3.4
d137d73c 34BuildRequires: libusb-devel >= 1.0
17830308 35BuildRequires: npth-devel >= 1.2
9ae43e98 36%{!?with_gnutls:BuildRequires: ntbtls-devel >= 0.1.0}
79f30f85
JB
37# only for dirmngr, which is not built here
38#BuildRequires: openldap-devel
39BuildRequires: pkgconfig
8e57d606 40BuildRequires: readline-devel
f197b41f 41BuildRequires: rpmbuild(macros) >= 1.177
846d089f 42BuildRequires: sqlite3-devel >= 3.7
b626fce0
AM
43BuildRequires: texinfo
44BuildRequires: zlib-devel
c85d209c 45Requires: gnupg2-common = %{version}-%{release}
846d089f 46Requires: sqlite3 >= 3.7
150f8795 47Suggests: gnupg-agent
b626fce0
AM
48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
c85d209c 50%define _libexecdir %{_libdir}/gnupg2
b626fce0
AM
51
52%description
c85d209c
AF
53GnuPG is GNU's tool for secure communication and data storage. It can
54be used to encrypt data and to create digital signatures. It includes
55an advanced key management facility and is compliant with the proposed
56OpenPGP Internet standard as described in RFC2440.
57
f56b1d35 58This is enhanced version.
b626fce0 59
0998c692
JR
60%description -l pl.UTF-8
61GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
62bezpiecznego przechowywania danych. Może być używany do szyfrowania
63oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
64i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
c85d209c
AF
65w RFC2440.
66
f56b1d35 67To jest wersja rozszerzona.
c85d209c
AF
68
69%package common
70Summary: GnuPG - common files
4049c7b1 71Summary(pl.UTF-8): GnuPG - pliki wspólne
c85d209c 72Group: Applications/File
17830308
JB
73Requires: libassuan >= 1:2.4.3
74Requires: libgcrypt >= 1.7.0
75Requires: libgpg-error >= 1.24
76Requires: libksba >= 1.3.4
77Requires: npth >= 1.2
79f30f85
JB
78Obsoletes: gnupg2-plugin-keys_curl
79Obsoletes: gnupg2-plugin-keys_finger
80Obsoletes: gnupg2-plugin-keys_hkp
81Obsoletes: gnupg2-plugin-keys_kdns
82Obsoletes: gnupg2-plugin-keys_ldap
83Conflicts: gnupg < 1.4.18-2
c85d209c
AF
84Conflicts: gnupg-agent < 1.9.14-2
85
86%description common
87Common files used by tools from GnuPG project.
88
0998c692
JR
89%description common -l pl.UTF-8
90Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
c85d209c
AF
91
92%package -n gnupg-agent
93Summary: GnuPG extension - agent
4049c7b1 94Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
c85d209c 95Group: Applications/File
7b3cd4e7 96Requires: %{name}-common = %{version}-%{release}
1dbb261a 97Requires: pinentry >= 0.7.5-2
c85d209c
AF
98Obsoletes: newpg
99
100%description -n gnupg-agent
101GnuPG extension - agent.
102
0998c692 103%description -n gnupg-agent -l pl.UTF-8
b626fce0
AM
104Rozszerzenie GnuPG - agent.
105
f197b41f 106%package -n gnupg-agent-profile_d
107Summary: gnupg-agent start script for text mode
4049c7b1 108Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
f197b41f 109Group: Applications/File
110Requires: gnupg-agent = %{version}-%{release}
111
112%description -n gnupg-agent-profile_d
113gnupg-agent start script for text mode.
114
0998c692 115%description -n gnupg-agent-profile_d -l pl.UTF-8
f197b41f 116Skrypt startowy gnupg-agenta dla trybu tekstowego.
117
118%package -n gnupg-agent-xinitrc
119Summary: gnupg-agent start script for X-Window mode
4049c7b1 120Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
f197b41f 121Group: Applications/File
122Requires: gnupg-agent = %{version}-%{release}
123Requires: xinitrc
124
125%description -n gnupg-agent-xinitrc
126gnupg-agent start script for X-Window mode.
127
0998c692 128%description -n gnupg-agent-xinitrc -l pl.UTF-8
f197b41f 129Skrypt startowy gnupg-agenta dla trybu X-Window.
130
c85d209c
AF
131%package -n gnupg-smime
132Summary: GnuPG extension - S/MIME support
4049c7b1 133Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
c85d209c 134Group: Applications/File
7b3cd4e7 135Requires: %{name}-common = %{version}-%{release}
c85d209c
AF
136Conflicts: gnupg-agent < 1.9.14-2
137
138%description -n gnupg-smime
139GnuPG extension - S/MIME support.
140
0998c692
JR
141%description -n gnupg-smime -l pl.UTF-8
142Rozszerzenie GnuPG - obsługa S/MIME.
c85d209c 143
b626fce0
AM
144%prep
145%setup -q -n gnupg-%{version}
c85d209c 146%patch0 -p1
8e57d606 147
ea6e9952 148%{!?with_tests:%patch2 -p1}
8e57d606 149#%patch3 -p1
6f582fc9
JB
150
151%{__rm} po/stamp-po
b626fce0
AM
152
153%build
3d3dbf69 154%{__gettextize}
db8221ca 155%{__aclocal} -I m4
3d3dbf69
JB
156%{__autoconf}
157%{__autoheader}
155bb60b 158%{__automake}
b626fce0 159%configure \
8e57d606 160 --disable-dirmngr \
bf0b2053 161 --enable-g13 \
df2f3764 162 --enable-gpg \
9ae43e98 163 %{?with_gnutls:--disable-ntbtls} \
79f30f85 164 %{?with_selinux:--enable-selinux-support} \
d47c18c2
JB
165 --enable-symcryptrun \
166 --with-capabilities \
1dbb261a 167 --with-pinentry-pgm=%{_bindir}/pinentry \
b626fce0
AM
168 --with-mailprog=/usr/lib/sendmail
169
dbef75dd
JB
170# required for info rebuild
171%{__make} -C doc defs.inc
172
62f46a6b 173%{__make}
b626fce0
AM
174
175%install
176rm -rf $RPM_BUILD_ROOT
b626fce0
AM
177
178%{__make} install \
c85d209c
AF
179 DESTDIR=$RPM_BUILD_ROOT \
180 pkglibdir=%{_libexecdir}
b626fce0 181
f197b41f 182install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
183install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
c85d209c 184
79f30f85
JB
185# see dirmngr package
186%{__rm} $RPM_BUILD_ROOT%{_mandir}/{man1/dirmngr-client.1,man8/dirmngr.8}
187
188%{__rm} -f $RPM_BUILD_ROOT%{_datadir}/info/dir
189
619e8ec9
JB
190# files useful for users packaged as %doc
191%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnupg
192
f1d02fc8 193%find_lang gnupg2
b626fce0
AM
194
195%clean
196rm -rf $RPM_BUILD_ROOT
197
ed3eea82 198%post common -p /sbin/postshell
4be7d664 199-/usr/sbin/fix-info-dir -c %{_infodir}
b626fce0 200
ed3eea82 201%postun common -p /sbin/postshell
4be7d664 202-/usr/sbin/fix-info-dir -c %{_infodir}
b626fce0 203
f197b41f 204%triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
205%banner gnupg-agent-1.9.16-2 << EOF
206Scripts for starting gnupg-agent have been moved to separate
207subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
84ab814f 208EOF
f197b41f 209
84ab814f 210%files
b626fce0 211%defattr(644,root,root,755)
c85d209c
AF
212%attr(755,root,root) %{_bindir}/gpg2
213%attr(755,root,root) %{_bindir}/gpgv2
579ff0a0
JB
214%{_mandir}/man1/gpg2.1*
215%{_mandir}/man1/gpgv2.1*
c85d209c
AF
216
217%files common -f gnupg2.lang
218%defattr(644,root,root,755)
619e8ec9 219%doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO doc/{DETAILS,FAQ,KEYSERVER,OpenPGP} doc/examples
bf0b2053 220%attr(755,root,root) %{_bindir}/g13
df2f3764 221%attr(755,root,root) %{_bindir}/gpg-connect-agent
a83b3e7b 222%attr(755,root,root) %{_bindir}/gpgconf
da4fafa6 223%attr(755,root,root) %{_bindir}/gpgparsemail
17830308 224%attr(755,root,root) %{_bindir}/gpgscm
8e57d606 225%attr(755,root,root) %{_bindir}/gpgtar
579ff0a0 226%attr(755,root,root) %{_bindir}/kbxutil
c85d209c
AF
227%attr(755,root,root) %{_bindir}/watchgnupg
228%attr(755,root,root) %{_sbindir}/addgnupghome
21eea941 229%attr(755,root,root) %{_sbindir}/applygnupgdefaults
d137d73c 230%attr(755,root,root) %{_sbindir}/g13-syshelp
579ff0a0 231%dir %{_libexecdir}
8e57d606 232
c85d209c 233%{_datadir}/gnupg
579ff0a0
JB
234%{_mandir}/man1/gpg-connect-agent.1*
235%{_mandir}/man1/gpgconf.1*
236%{_mandir}/man1/gpgparsemail.1*
237%{_mandir}/man1/watchgnupg.1*
8e57d606 238%{_mandir}/man7/gnupg.7*
579ff0a0 239%{_mandir}/man8/addgnupghome.8*
21eea941 240%{_mandir}/man8/applygnupgdefaults.8*
00461e0e 241%{_infodir}/gnupg.info*
c85d209c
AF
242
243%files -n gnupg-smime
244%defattr(644,root,root,755)
b626fce0 245%attr(755,root,root) %{_bindir}/gpgsm
579ff0a0 246%{_mandir}/man1/gpgsm.1*
c85d209c
AF
247
248%files -n gnupg-agent
249%defattr(644,root,root,755)
c85d209c 250%attr(755,root,root) %{_bindir}/gpg-agent
d47c18c2 251%attr(755,root,root) %{_bindir}/symcryptrun
a38280f6 252%attr(755,root,root) %{_libexecdir}/gpg-check-pattern
c85d209c
AF
253%attr(755,root,root) %{_libexecdir}/gpg-protect-tool
254%attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
cf8cafd8 255%attr(755,root,root) %{_libexecdir}/gpg-wks-client
eb43eafb 256%attr(755,root,root) %{_libexecdir}/scdaemon
579ff0a0
JB
257%{_mandir}/man1/gpg-agent.1*
258%{_mandir}/man1/gpg-preset-passphrase.1*
259%{_mandir}/man1/scdaemon.1*
d47c18c2 260%{_mandir}/man1/symcryptrun.1*
f197b41f 261
262%files -n gnupg-agent-profile_d
263%defattr(644,root,root,755)
c85d209c 264%attr(755,root,root) /etc/profile.d/gnupg-agent.sh
f197b41f 265
266%files -n gnupg-agent-xinitrc
267%defattr(644,root,root,755)
268%attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
This page took 0.097601 seconds and 4 git commands to generate.