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