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