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