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