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