/[packages]/updates/1/gnupg2/current/SPECS/gnupg2.spec
ViewVC logotype

Annotation of /updates/1/gnupg2/current/SPECS/gnupg2.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 101464 - (hide annotations) (download)
Wed Jun 1 19:01:05 2011 UTC (10 years, 3 months ago) by schedbot
File size: 4413 byte(s)
SILENT: branch release 1
1 mikala 18603 %define pkgname gnupg
2    
3     Summary: GNU privacy guard - a free PGP replacement
4     Name: gnupg2
5     Version: 2.0.16
6     Release: %mkrel 6
7     License: GPLv3
8     Group: File tools
9     URL: http://www.gnupg.org
10     Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/%{pkgname}-%{version}.tar.bz2
11     Source1: %{SOURCE0}.sig
12     Source2: gpg-agent.sh
13     Source3: gpg-agent-xinit.sh
14     Source4: sysconfig-gnupg2
15     Patch0: gnupg-1.9.3-use-ImageMagick-for-photo.patch
16     Patch1: gnupg-2.0.14-tests-s2kcount.patch
17     Patch2: gnupg-gpgsm-sec-fix
18     BuildRequires: openldap-devel
19     BuildRequires: sendmail-command
20     BuildRequires: libgpg-error-devel >= 1.4
21     BuildRequires: libgcrypt-devel >= 1.2.0
22     BuildRequires: libassuan-devel >= 1.0.2
23     BuildRequires: libksba-devel >= 1.0.2
24     BuildRequires: zlib-devel
25     BuildRequires: pth-devel >= 2.0.0
26     BuildRequires: docbook-utils
27     BuildRequires: libreadline-devel
28     BuildRequires: libtermcap-devel
29     BuildRequires: libcurl-devel
30     BuildRequires: libusb-devel
31     BuildRequires: bzip2-devel
32     BuildRequires: libassuan-devel
33     Requires(post): info-install
34     Requires(preun): info-install
35     Requires: info-install
36     Obsoletes: newpg
37     Provides: newpg = %{version}-%{release}
38     Requires: dirmngr
39     Requires: pinentry
40     Requires: gnupg
41     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
42    
43     %description
44     GnuPG is GNU's tool for secure communication and data storage.
45     It can be used to encrypt data and to create digital signatures.
46     It includes an advanced key management facility and is compliant
47     with the proposed OpenPGP Internet standard as described in RFC2440.
48    
49     %prep
50     %setup -q -n %{pkgname}-%{version}
51     %patch0 -p1 -b .ImageMagick
52     %patch1 -p1
53     %patch2 -p0
54    
55     %build
56     %serverbuild
57    
58     ./autogen.sh
59    
60     %configure2_5x \
61     --libexecdir=%{_libdir}/gnupg2 \
62     --enable-symcryptrun \
63     --disable-rpath \
64     --without-capabilities \
65     --with-adns=no \
66     --with-pkits-tests
67    
68     # no parallel make (v2.0.5 at least)
69     %make
70    
71     # all tests must pass on i586 and x86_64
72     %check
73     [[ -n "$GPG_AGENT_INFO" ]] || eval `./agent/gpg-agent --use-standard-socket --daemon --write-env-file gpg-agent-info`
74     make check
75     [[ -a gpg-agent-info ]] && kill -0 `cut -d: -f 2 gpg-agent-info`
76     rm -f gpg-agent-info
77    
78     %install
79     rm -rf %{buildroot}
80    
81     %makeinstall_std
82     #Remove: #60298
83     install -d %{buildroot}/%{_sysconfdir}/profile.d
84     install %{SOURCE2} %{buildroot}/%{_sysconfdir}/profile.d/gpg-agent.sh
85     install -d %{buildroot}/%{_sysconfdir}/X11/xinit.d
86     install %{SOURCE3} %{buildroot}/%{_sysconfdir}/X11/xinit.d/gpg-agent
87     install -d %{buildroot}/%{_sysconfdir}/sysconfig
88     install %{SOURCE4} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}
89    
90     # remove this from package because the content of options.skel is the
91     # identical for both gnupg 1/2, except for comment
92     rm -rf %{buildroot}%{_datadir}/gnupg
93    
94     rm -rf %{buildroot}%{_docdir}/gnupg
95    
96     # fix file conflict with 'gnupg' package
97     rm %{buildroot}%{_mandir}/man1/gpg-zip.1
98    
99     %find_lang %{name}
100    
101     %post
102     %_install_info gnupg.info
103    
104     %preun
105     %_remove_install_info gnupg.info
106    
107     %clean
108     rm -rf %{buildroot}
109    
110     %files -f %{name}.lang
111     %defattr(-,root,root)
112     %doc README NEWS THANKS TODO ChangeLog
113     %doc doc/FAQ doc/HACKING doc/KEYSERVER doc/OpenPGP doc/TRANSLATE doc/DETAILS doc/faq.html
114     %doc doc/examples
115     %attr(0755,root,root) %{_sysconfdir}/profile.d/gpg-agent.sh
116     %attr(0755,root,root) %{_sysconfdir}/X11/xinit.d/gpg-agent
117     %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
118     %attr(4755,root,root) %{_bindir}/gpgsm
119     %{_bindir}/gpg-agent
120     %{_bindir}/gpgconf
121     %{_bindir}/kbxutil
122     %{_bindir}/sc*
123     %{_bindir}/watchgnupg
124     %{_bindir}/gpgsm-gencert.sh
125     %{_bindir}/gpgkey2ssh
126     %{_bindir}/gpg-connect-agent
127     %{_bindir}/gpgparsemail
128     %{_bindir}/gpg2
129     %{_bindir}/gpgv2
130     %{_bindir}/symcryptrun
131     %{_sbindir}/addgnupghome
132     %{_sbindir}/applygnupgdefaults
133     %dir %{_libdir}/gnupg2
134     %{_libdir}/gnupg2/gpg-check-pattern
135     %{_libdir}/gnupg2/gpg-preset-passphrase
136     %{_libdir}/gnupg2/gpg-protect-tool
137     %{_libdir}/gnupg2/gnupg-pcsc-wrapper
138     %{_libdir}/gnupg2/gpg2keys_curl
139     %{_libdir}/gnupg2/gpg2keys_finger
140     %{_libdir}/gnupg2/gpg2keys_hkp
141     %{_libdir}/gnupg2/gpg2keys_ldap
142     %{_infodir}/gnupg.info*
143     %{_mandir}/man1/gpg-agent.1*
144     %{_mandir}/man1/gpg-connect-agent.1*
145     %{_mandir}/man1/gpg-preset-passphrase.1*
146     %{_mandir}/man1/gpg2.1*
147     %{_mandir}/man1/gpgconf.1*
148     %{_mandir}/man1/gpgparsemail.1*
149     %{_mandir}/man1/gpgsm-gencert.sh.1*
150     %{_mandir}/man1/gpgsm.1*
151     %{_mandir}/man1/gpgv2.1*
152     %{_mandir}/man1/scdaemon.1*
153     %{_mandir}/man1/symcryptrun.1*
154     %{_mandir}/man1/watchgnupg.1*
155     %{_mandir}/man8/addgnupghome.8*
156     %{_mandir}/man8/applygnupgdefaults.8*
157    
158    

  ViewVC Help
Powered by ViewVC 1.1.28