source: projects/specs/branches/6/lib/libg/libgcrypt/libgcrypt-vl.spec @ 7817

Revision 7817, 4.9 KB checked in by kudoh, 11 years ago (diff)
Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2Summary: A cryptographic library based on the code from GnuPG.
3Summary(ja): GnuPG のコードをベースとした暗号化ライブラリ
4Name: libgcrypt
5Version: 1.4.6
6Release: 2%{?_dist_release}
7URL: http://www.gnu.org/directory/security/libgcrypt.html
8Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2
9Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig
10Patch100: libgcrypt_CVE-2013-4242.patch
11
12License: GPLv2+
13Group: System Environment/Libraries
14
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16BuildRequires: libgpg-error-devel >= 0.5
17Requires: libgpg-error
18Requires(post,preun): /sbin/install-info
19
20%description
21This is a general purpose cryptographic library based on the code from
22GnuPG. It provides functions for all cryptograhic building blocks:
23symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
24algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for
25all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
26integer functions, random numbers and a lot of supporting functions.
27
28%package devel
29Summary: Development files for libgcrypt
30Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ
31Group: Development/Libraries
32Requires: %{name} = %{version}-%{release}
33Requires: libgpg-error-devel
34
35%description devel
36Static libraries and header files from libgcrypt.
37
38%package -n compat32-%{name}
39Summary: A cryptographic library based on the code from GnuPG.
40Summary(ja): GnuPG のコードをベースとした暗号化ライブラリ
41Group: System Environment/Libraries
42Requires: %{name} = %{version}-%{release}
43
44%description -n compat32-%{name}
45This is a general purpose cryptographic library based on the code from
46GnuPG. It provides functions for all cryptograhic building blocks:
47symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
48algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for
49all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
50integer functions, random numbers and a lot of supporting functions.
51
52%package -n compat32-%{name}-devel
53Summary: Development files for libgcrypt
54Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ
55Group: Development/Libraries
56Requires: compat32-%{name} = %{version}-%{release}
57Requires: %{name}-devel = %{version}-%{release}
58Requires: compat32-libgpg-error-devel
59
60%description -n compat32-%{name}-devel
61Static libraries and header files from libgcrypt.
62
63%prep
64%setup -q
65%patch100 -p1
66
67%build
68%configure --disable-static
69make
70
71%install
72[ "%{buildroot}" != / ] && rm -rf %{buildroot}
73%makeinstall
74rm -f %{buildroot}%{_infodir}/dir
75
76## remove unuse files
77rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
78
79
80%clean
81[ "%{buildroot}" != / ] && rm -rf %{buildroot}
82
83%post -p /sbin/ldconfig
84
85%postun -p /sbin/ldconfig
86
87%post devel
88/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz ||:
89
90%preun devel
91if [ $1 = 0 ]; then
92    /sbin/install-info --delete %{_infodir}/gcrypt.info.gz %{_infodir}/dir ||:
93fi
94
95%post -n compat32-%{name} -p /sbin/ldconfig
96
97%postun -n compat32-%{name} -p /sbin/ldconfig
98
99%files
100%defattr(-,root,root)
101%{_bindir}/dumpsexp
102%{_bindir}/hmac256
103%{_libdir}/*.so.*
104
105%files devel
106%defattr(-,root,root)
107%doc README* NEWS
108%{_bindir}/libgcrypt-config
109%{_includedir}/*
110%{_libdir}/*.so
111%{_datadir}/aclocal/libgcrypt.m4
112%{_infodir}/*
113
114# compat32
115%if %{build_compat32}
116%files -n compat32-%{name}
117%defattr(-,root,root)
118%{_libdir}/*.so.*
119
120%files -n compat32-%{name}-devel
121%defattr(-,root,root)
122%{_libdir}/*.so
123%endif
124
125%changelog
126* Thu Aug 08 2013 Toshiahru Kudoh <toshi.kd2@gmail.com> 1.4.6-2
127- added patch100 for fix CVE-2013-4242
128
129* Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.6-1
130- new upstream release
131
132* Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.4.3-3
133- added compat32 package for x86_64 arch support
134- added --disable-static %%configure option
135
136* Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.3-2
137- removed *.la
138
139* Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3-1
140- new upstream release
141
142* Tue Mar 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-1vl5
143- new upstream release
144- used _dist_release macro
145
146* Sat Mar 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-0vl1
147- new upstream release
148
149* Sun Nov 26 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-0vl1
150- new upstream release
151- changed Group to System Environment/Libraries
152
153* Fri Dec 30 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.2-0vl1
154- new upstream release
155
156* Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.1-0vl1
157- new upstream release
158- fix dependencies
159  - add BuildRequires: libgpg-error-devel >= 0.5
160  - add Requires: libgpg-error
161  - add Requires: libgpg-error-devel for devel package
162
163* Tue Nov 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1
164- new upstream release
165
166* Sun Mar  7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.12-0vl1
167- initial build
168
Note: See TracBrowser for help on using the repository browser.