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

Revision 10662, 5.3 KB checked in by tomop, 8 years ago (diff)

libgcrypt-1.5.5-1

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