]> git.pld-linux.org Git - packages/gnupg2.git/blame - gnupg2.spec
- up to 2.1.12; ported to libusb-1.0 at last
[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)
d137d73c 11Version: 2.1.12
db8221ca 12Release: 0.1
71099ee5 13License: GPL v3+
b626fce0 14Group: Applications/File
d47c18c2 15Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
d137d73c 16# Source0-md5: 573bc2cd83934eed12f0d0db443f5bde
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
097f20de 30BuildRequires: libassuan-devel >= 1:2.4.2
79f30f85 31BuildRequires: libgcrypt-devel >= 1.6.0
db8221ca 32BuildRequires: libgpg-error-devel >= 1.16
79f30f85 33BuildRequires: libksba-devel >= 1.2.0
d137d73c 34BuildRequires: libusb-devel >= 1.0
8e57d606 35BuildRequires: npth-devel >= 1.1
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
d137d73c 41BuildRequires: sqlite3-devel >= 3
b626fce0
AM
42BuildRequires: texinfo
43BuildRequires: zlib-devel
c85d209c 44Requires: gnupg2-common = %{version}-%{release}
150f8795 45Suggests: gnupg-agent
b626fce0
AM
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
c85d209c 48%define _libexecdir %{_libdir}/gnupg2
b626fce0
AM
49
50%description
c85d209c
AF
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
f56b1d35 56This is enhanced version.
b626fce0 57
0998c692
JR
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
c85d209c
AF
63w RFC2440.
64
f56b1d35 65To jest wersja rozszerzona.
c85d209c
AF
66
67%package common
68Summary: GnuPG - common files
4049c7b1 69Summary(pl.UTF-8): GnuPG - pliki wspólne
c85d209c 70Group: Applications/File
097f20de 71Requires: libassuan >= 1:2.4.2
79f30f85 72Requires: libgcrypt >= 1.6.0
db8221ca 73Requires: libgpg-error >= 1.16
79f30f85
JB
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
c85d209c
AF
82Conflicts: gnupg-agent < 1.9.14-2
83
84%description common
85Common files used by tools from GnuPG project.
86
0998c692
JR
87%description common -l pl.UTF-8
88Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
c85d209c
AF
89
90%package -n gnupg-agent
91Summary: GnuPG extension - agent
4049c7b1 92Summary(pl.UTF-8): Rozszerzenie GnuPG - agent
c85d209c 93Group: Applications/File
7b3cd4e7 94Requires: %{name}-common = %{version}-%{release}
1dbb261a 95Requires: pinentry >= 0.7.5-2
c85d209c
AF
96Obsoletes: newpg
97
98%description -n gnupg-agent
99GnuPG extension - agent.
100
0998c692 101%description -n gnupg-agent -l pl.UTF-8
b626fce0
AM
102Rozszerzenie GnuPG - agent.
103
f197b41f 104%package -n gnupg-agent-profile_d
105Summary: gnupg-agent start script for text mode
4049c7b1 106Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego
f197b41f 107Group: Applications/File
108Requires: gnupg-agent = %{version}-%{release}
109
110%description -n gnupg-agent-profile_d
111gnupg-agent start script for text mode.
112
0998c692 113%description -n gnupg-agent-profile_d -l pl.UTF-8
f197b41f 114Skrypt startowy gnupg-agenta dla trybu tekstowego.
115
116%package -n gnupg-agent-xinitrc
117Summary: gnupg-agent start script for X-Window mode
4049c7b1 118Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window
f197b41f 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
0998c692 126%description -n gnupg-agent-xinitrc -l pl.UTF-8
f197b41f 127Skrypt startowy gnupg-agenta dla trybu X-Window.
128
c85d209c
AF
129%package -n gnupg-smime
130Summary: GnuPG extension - S/MIME support
4049c7b1 131Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME
c85d209c 132Group: Applications/File
7b3cd4e7 133Requires: %{name}-common = %{version}-%{release}
c85d209c
AF
134Conflicts: gnupg-agent < 1.9.14-2
135
136%description -n gnupg-smime
137GnuPG extension - S/MIME support.
138
0998c692
JR
139%description -n gnupg-smime -l pl.UTF-8
140Rozszerzenie GnuPG - obsługa S/MIME.
c85d209c 141
b626fce0
AM
142%prep
143%setup -q -n gnupg-%{version}
c85d209c 144%patch0 -p1
8e57d606 145
ea6e9952 146%{!?with_tests:%patch2 -p1}
8e57d606 147#%patch3 -p1
6f582fc9
JB
148
149%{__rm} po/stamp-po
b626fce0
AM
150
151%build
3d3dbf69 152%{__gettextize}
db8221ca 153%{__aclocal} -I m4
3d3dbf69
JB
154%{__autoconf}
155%{__autoheader}
155bb60b 156%{__automake}
b626fce0 157%configure \
8e57d606 158 --disable-dirmngr \
bf0b2053 159 --enable-g13 \
df2f3764 160 --enable-gpg \
79f30f85 161 %{?with_selinux:--enable-selinux-support} \
d47c18c2
JB
162 --enable-symcryptrun \
163 --with-capabilities \
1dbb261a 164 --with-pinentry-pgm=%{_bindir}/pinentry \
b626fce0
AM
165 --with-mailprog=/usr/lib/sendmail
166
dbef75dd
JB
167# required for info rebuild
168%{__make} -C doc defs.inc
169
62f46a6b 170%{__make}
b626fce0
AM
171
172%install
173rm -rf $RPM_BUILD_ROOT
b626fce0
AM
174
175%{__make} install \
c85d209c
AF
176 DESTDIR=$RPM_BUILD_ROOT \
177 pkglibdir=%{_libexecdir}
b626fce0 178
f197b41f 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
c85d209c 181
79f30f85
JB
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
619e8ec9
JB
187# files useful for users packaged as %doc
188%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnupg
189
f1d02fc8 190%find_lang gnupg2
b626fce0
AM
191
192%clean
193rm -rf $RPM_BUILD_ROOT
194
ed3eea82 195%post common -p /sbin/postshell
4be7d664 196-/usr/sbin/fix-info-dir -c %{_infodir}
b626fce0 197
ed3eea82 198%postun common -p /sbin/postshell
4be7d664 199-/usr/sbin/fix-info-dir -c %{_infodir}
b626fce0 200
f197b41f 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.
84ab814f 205EOF
f197b41f 206
84ab814f 207%files
b626fce0 208%defattr(644,root,root,755)
6462d2ce 209%doc g10/options.skel
c85d209c
AF
210%attr(755,root,root) %{_bindir}/gpg2
211%attr(755,root,root) %{_bindir}/gpgv2
579ff0a0
JB
212%{_mandir}/man1/gpg2.1*
213%{_mandir}/man1/gpgv2.1*
c85d209c
AF
214
215%files common -f gnupg2.lang
216%defattr(644,root,root,755)
619e8ec9 217%doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO doc/{DETAILS,FAQ,KEYSERVER,OpenPGP} doc/examples
bf0b2053 218%attr(755,root,root) %{_bindir}/g13
df2f3764 219%attr(755,root,root) %{_bindir}/gpg-connect-agent
a83b3e7b 220%attr(755,root,root) %{_bindir}/gpgconf
da4fafa6 221%attr(755,root,root) %{_bindir}/gpgparsemail
8e57d606 222%attr(755,root,root) %{_bindir}/gpgtar
579ff0a0 223%attr(755,root,root) %{_bindir}/kbxutil
c85d209c
AF
224%attr(755,root,root) %{_bindir}/watchgnupg
225%attr(755,root,root) %{_sbindir}/addgnupghome
21eea941 226%attr(755,root,root) %{_sbindir}/applygnupgdefaults
d137d73c 227%attr(755,root,root) %{_sbindir}/g13-syshelp
579ff0a0 228%dir %{_libexecdir}
8e57d606 229
c85d209c 230%{_datadir}/gnupg
579ff0a0
JB
231%{_mandir}/man1/gpg-connect-agent.1*
232%{_mandir}/man1/gpgconf.1*
233%{_mandir}/man1/gpgparsemail.1*
234%{_mandir}/man1/watchgnupg.1*
8e57d606 235%{_mandir}/man7/gnupg.7*
579ff0a0 236%{_mandir}/man8/addgnupghome.8*
21eea941 237%{_mandir}/man8/applygnupgdefaults.8*
00461e0e 238%{_infodir}/gnupg.info*
c85d209c
AF
239
240%files -n gnupg-smime
241%defattr(644,root,root,755)
b626fce0 242%attr(755,root,root) %{_bindir}/gpgsm
579ff0a0 243%{_mandir}/man1/gpgsm.1*
c85d209c
AF
244
245%files -n gnupg-agent
246%defattr(644,root,root,755)
c85d209c 247%attr(755,root,root) %{_bindir}/gpg-agent
d47c18c2 248%attr(755,root,root) %{_bindir}/symcryptrun
a38280f6 249%attr(755,root,root) %{_libexecdir}/gpg-check-pattern
c85d209c
AF
250%attr(755,root,root) %{_libexecdir}/gpg-protect-tool
251%attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
eb43eafb 252%attr(755,root,root) %{_libexecdir}/scdaemon
579ff0a0
JB
253%{_mandir}/man1/gpg-agent.1*
254%{_mandir}/man1/gpg-preset-passphrase.1*
255%{_mandir}/man1/scdaemon.1*
d47c18c2 256%{_mandir}/man1/symcryptrun.1*
f197b41f 257
258%files -n gnupg-agent-profile_d
259%defattr(644,root,root,755)
c85d209c 260%attr(755,root,root) /etc/profile.d/gnupg-agent.sh
f197b41f 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.125146 seconds and 4 git commands to generate.