]> git.pld-linux.org Git - packages/gnupg2.git/blob - gnupg2.spec
00a54e76fdd90563793f3260c40fe8f93ff9ab6e
[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.22
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:  ccea28fbab26bcb01890f2687d71f900
14 Source1:        gnupg-agent.sh
15 Patch0:         %{name}-info.patch
16 Patch1:         %{name}-pth.patch
17 URL:            http://www.gnupg.org/
18 BuildRequires:  automake
19 BuildRequires:  bzip2-devel
20 BuildRequires:  gettext-devel >= 0.14.1
21 BuildRequires:  libassuan-devel >= 1:0.6.10
22 BuildRequires:  libgcrypt-devel >= 1.1.94
23 BuildRequires:  libgpg-error-devel >= 1.0
24 BuildRequires:  libksba-devel >= 0.9.13
25 BuildRequires:  libusb-devel
26 BuildRequires:  pcsc-lite-devel
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 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
155
156 %clean
157 rm -rf $RPM_BUILD_ROOT
158
159 %post
160 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
161
162 %postun
163 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
164
165 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
166 %banner gnupg-agent-1.9.16-2 << EOF
167 Scripts for starting gnupg-agent have been moved to separate
168 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
169 EOF
170
171 %files
172 %defattr(644,root,root,755)
173 %doc g10-ChangeLog g10/options.skel
174 %attr(755,root,root) %{_bindir}/gpg2
175 %attr(755,root,root) %{_bindir}/gpgv2
176
177 %files common -f gnupg2.lang
178 %defattr(644,root,root,755)
179 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
180 %doc intl-ChangeLog jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
181 %attr(755,root,root) %{_bindir}/gpg-connect-agent
182 %attr(755,root,root) %{_bindir}/gpgconf
183 %attr(755,root,root) %{_bindir}/gpgkey2ssh
184 %attr(755,root,root) %{_bindir}/gpgparsemail
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 %dir %{_libexecdir}
203 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
204 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
205 %attr(755,root,root) %{_libexecdir}/pcsc-wrapper
206
207 %files -n gnupg-agent-profile_d
208 %defattr(644,root,root,755)
209 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
210
211 %files -n gnupg-agent-xinitrc
212 %defattr(644,root,root,755)
213 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
This page took 0.039557 seconds and 3 git commands to generate.