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