]> git.pld-linux.org Git - packages/gnupg2.git/blob - gnupg2.spec
- updated to 1.9.94
[packages/gnupg2.git] / gnupg2.spec
1 # TODO:
2 # - separate keys plugins (see gnupg.spec)
3 # - update pl.po (just a note for myself  --q)
4 #
5 # Conditional build:
6 %bcond_without  pth     # without pth-based based version of gnupg
7 %bcond_with     tests   # run testsuite ( currently it smashes stack on x86-64 and SEGVs )
8 #
9 Summary:        GNU Privacy Guard - tool for secure communication and data storage - development version
10 Summary(pl):    GnuPG - narzêdzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozwojowa
11 Name:           gnupg2
12 Version:        1.9.94
13 Release:        1
14 License:        GPL
15 Group:          Applications/File
16 Source0:        ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-%{version}.tar.bz2
17 # Source0-md5:  1da8c928948800efa2a13d4aecb8d013
18 Source1:        gnupg-agent.sh
19 Patch0:         %{name}-info.patch
20 Patch1:         %{name}-pth.patch
21 Patch2:         %{name}-ac.patch
22 Patch3:         %{name}-disable_tests.patch
23 URL:            http://www.gnupg.org/
24 BuildRequires:  autoconf >= 2.52
25 BuildRequires:  automake >= 1:1.9.3
26 BuildRequires:  bzip2-devel
27 BuildRequires:  curl-devel
28 BuildRequires:  gettext-devel >= 0.14.1
29 BuildRequires:  libassuan-devel >= 1:0.9.3
30 BuildRequires:  libgcrypt-devel >= 1.2.0
31 BuildRequires:  libgpg-error-devel >= 1.4
32 BuildRequires:  libksba-devel >= 1.0.0
33 BuildRequires:  libusb-devel
34 BuildRequires:  openldap-devel
35 BuildRequires:  pcsc-lite-devel
36 %{?with_pth:BuildRequires:      pth-devel >= 2.0.0}
37 BuildRequires:  rpmbuild(macros) >= 1.177
38 BuildRequires:  texinfo
39 BuildRequires:  zlib-devel
40 Requires:       gnupg2-common = %{version}-%{release}
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %define         _libexecdir     %{_libdir}/gnupg2
44
45 %description
46 GnuPG is GNU's tool for secure communication and data storage. It can
47 be used to encrypt data and to create digital signatures. It includes
48 an advanced key management facility and is compliant with the proposed
49 OpenPGP Internet standard as described in RFC2440.
50
51 This is development version. Don't use it with production keys.
52
53 %description -l pl
54 GnuPG (GNU Privacy Guard) jest narzêdziem do bezpiecznej komunikacji i
55 bezpiecznego przechowywania danych. Mo¿e byæ u¿ywany do szyfrowania
56 oraz podpisywania danych. Umo¿liwia zaawansowane zarz±dzanie kluczami
57 i spe³nia normy zdefiniowane w standardzie OpenPGP, który jest opisany
58 w RFC2440.
59
60 Wersja rozwojowa. Nie do u¿ytku z kluczami produkcyjnymi.
61
62 %package common
63 Summary:        GnuPG - common files
64 Summary(pl):    GnuPG - pliki wspólne
65 Group:          Applications/File
66 Requires:       libassuan >= 1:0.9.3
67 Requires:       libgpg-error >= 1.4
68 Conflicts:      gnupg-agent < 1.9.14-2
69
70 %description common
71 Common files used by tools from GnuPG project.
72
73 %description common -l pl
74 Pliki wspólne u¿ywane przez ró¿ne narzêdzia z projektu GnuPG.
75
76 %package -n gnupg-agent
77 Summary:        GnuPG extension - agent
78 Summary(pl):    Rozszerzenie GnuPG - agent
79 Group:          Applications/File
80 Requires:       gnupg2-common = %{version}-%{release}
81 Requires:       pinentry
82 Obsoletes:      newpg
83
84 %description -n gnupg-agent
85 GnuPG extension - agent.
86
87 %description -n gnupg-agent -l pl
88 Rozszerzenie GnuPG - agent.
89
90 %package -n gnupg-agent-profile_d
91 Summary:        gnupg-agent start script for text mode
92 Summary(pl):    Skrypt startowy gnupg-agenta dla trybu tekstowego
93 Group:          Applications/File
94 Requires:       gnupg-agent = %{version}-%{release}
95
96 %description -n gnupg-agent-profile_d
97 gnupg-agent start script for text mode.
98
99 %description -n gnupg-agent-profile_d -l pl
100 Skrypt startowy gnupg-agenta dla trybu tekstowego.
101
102 %package -n gnupg-agent-xinitrc
103 Summary:        gnupg-agent start script for X-Window mode
104 Summary(pl):    Skrypt startowy gnupg-agenta dla trybu X-Window
105 Group:          Applications/File
106 Requires:       gnupg-agent = %{version}-%{release}
107 Requires:       xinitrc
108
109 %description -n gnupg-agent-xinitrc
110 gnupg-agent start script for X-Window mode.
111
112 %description -n gnupg-agent-xinitrc -l pl
113 Skrypt startowy gnupg-agenta dla trybu X-Window.
114
115 %package -n gnupg-smime
116 Summary:        GnuPG extension - S/MIME support
117 Summary(pl):    Rozszerzenie GnuPG - obs³uga S/MIME
118 Group:          Applications/File
119 Requires:       gnupg2-common = %{version}-%{release}
120 Conflicts:      gnupg-agent < 1.9.14-2
121
122 %description -n gnupg-smime
123 GnuPG extension - S/MIME support.
124
125 %description -n gnupg-smime -l pl
126 Rozszerzenie GnuPG - obs³uga S/MIME.
127
128 %prep
129 %setup -q -n gnupg-%{version}
130 %patch0 -p1
131 %patch1 -p1
132 %patch2 -p1
133 %{!?with_tests:%patch3 -p1}
134
135 %build
136 %{__gettextize}
137 %{__aclocal} -I m4 -I gl/m4
138 %{__autoconf}
139 %{__autoheader}
140 %{__automake}
141 %configure \
142         --with-capabilities \
143         %{!?with_pth:--disable-threads} \
144         --enable-gpg \
145 %ifarch sparc sparc64
146         --disable-m-guard \
147 %else
148         --enable-m-guard \
149 %endif
150         --without-included-gettext \
151         --disable-m-debug \
152         --with-mailprog=/usr/lib/sendmail
153
154 %{__make}
155
156 %install
157 rm -rf $RPM_BUILD_ROOT
158
159 %{__make} install \
160         DESTDIR=$RPM_BUILD_ROOT \
161         pkglibdir=%{_libexecdir}
162
163 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
164 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
165
166 mv ChangeLog main-ChangeLog || :
167 find . -name ChangeLog |awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}'|sh
168
169 %find_lang gnupg2
170 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
171
172 %clean
173 rm -rf $RPM_BUILD_ROOT
174
175 %post
176 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
177
178 %postun
179 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
180
181 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
182 %banner gnupg-agent-1.9.16-2 << EOF
183 Scripts for starting gnupg-agent have been moved to separate
184 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
185 EOF
186
187 %files
188 %defattr(644,root,root,755)
189 %doc g10-ChangeLog g10/options.skel
190 %attr(755,root,root) %{_bindir}/gpg2
191 %attr(755,root,root) %{_bindir}/gpgv2
192 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
193 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
194 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
195 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
196 %{_mandir}/man1/gpg2.1*
197 %{_mandir}/man1/gpgv2.1*
198 # conflicts with gnupg 1.4.x
199 #%attr(755,root,root) %{_bindir}/gpg-zip
200 #%attr(755,root,root) %{_bindir}/gpgsplit
201 #%{_mandir}/man7/gnupg.7*
202 # program not built by default
203 #%{_mandir}/man1/symcryptrun.1*
204
205 %files common -f gnupg2.lang
206 %defattr(644,root,root,755)
207 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
208 %doc intl-ChangeLog jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
209 %attr(755,root,root) %{_bindir}/gpg-connect-agent
210 %attr(755,root,root) %{_bindir}/gpgconf
211 %attr(755,root,root) %{_bindir}/gpgkey2ssh
212 %attr(755,root,root) %{_bindir}/gpgparsemail
213 %attr(755,root,root) %{_bindir}/kbxutil
214 %attr(755,root,root) %{_bindir}/watchgnupg
215 %attr(755,root,root) %{_sbindir}/addgnupghome
216 %dir %{_libexecdir}
217 %{_datadir}/gnupg
218 %{_mandir}/man1/gpg-connect-agent.1*
219 %{_mandir}/man1/gpgconf.1*
220 %{_mandir}/man1/gpgparsemail.1*
221 %{_mandir}/man1/watchgnupg.1*
222 %{_mandir}/man8/addgnupghome.8*
223 %{_infodir}/*.info*
224
225 %files -n gnupg-smime
226 %defattr(644,root,root,755)
227 %doc sm-ChangeLog
228 %attr(755,root,root) %{_bindir}/gpgsm
229 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
230 %{_mandir}/man1/gpgsm.1*
231 %{_mandir}/man1/gpgsm-gencert.sh.1*
232
233 %files -n gnupg-agent
234 %defattr(644,root,root,755)
235 %doc agent-ChangeLog scd-ChangeLog
236 %attr(755,root,root) %{_bindir}/gpg-agent
237 %attr(755,root,root) %{_bindir}/scdaemon
238 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
239 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
240 %attr(755,root,root) %{_libexecdir}/pcsc-wrapper
241 %{_mandir}/man1/gpg-agent.1*
242 %{_mandir}/man1/gpg-preset-passphrase.1*
243 %{_mandir}/man1/scdaemon.1*
244
245 %files -n gnupg-agent-profile_d
246 %defattr(644,root,root,755)
247 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
248
249 %files -n gnupg-agent-xinitrc
250 %defattr(644,root,root,755)
251 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
This page took 0.083388 seconds and 4 git commands to generate.