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