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