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