source: projects/specs/trunk/lib/libg/libgcrypt/libgcrypt-vl.spec @ 9833

Revision 9833, 5.2 KB checked in by kudoh, 8 years ago (diff)

new upstream

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.6.4
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
10License: GPLv2+
11Group: System Environment/Libraries
12
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14BuildRequires: libgpg-error-devel >= 0.5
15Requires: libgpg-error
16Requires(post,preun): /sbin/install-info
17
18Vendor: Project Vine
19Distribution: Vine Linux
20
21%description
22This is a general purpose cryptographic library based on the code from
23GnuPG. It provides functions for all cryptograhic building blocks:
24symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
25algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for
26all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
27integer functions, random numbers and a lot of supporting functions.
28
29%package devel
30Summary: Development files for libgcrypt
31Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ
32Group: Development/Libraries
33Requires: %{name} = %{version}-%{release}
34Requires: libgpg-error-devel
35
36%description devel
37Static libraries and header files from libgcrypt.
38
39%package -n compat32-%{name}
40Summary: A cryptographic library based on the code from GnuPG.
41Summary(ja): GnuPG のコードをベースとした暗号化ライブラリ
42Group: System Environment/Libraries
43Requires: %{name} = %{version}-%{release}
44
45%description -n compat32-%{name}
46This is a general purpose cryptographic library based on the code from
47GnuPG. It provides functions for all cryptograhic building blocks:
48symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
49algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for
50all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
51integer functions, random numbers and a lot of supporting functions.
52
53%package -n compat32-%{name}-devel
54Summary: Development files for libgcrypt
55Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ
56Group: Development/Libraries
57Requires: compat32-%{name} = %{version}-%{release}
58Requires: %{name}-devel = %{version}-%{release}
59Requires: compat32-libgpg-error-devel
60
61%description -n compat32-%{name}-devel
62Static libraries and header files from libgcrypt.
63
64%prep
65%setup -q
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%{_bindir}/mpicalc
104%{_libdir}/*.so.*
105%{_mandir}/man1/hmac256.1.gz
106
107%files devel
108%defattr(-,root,root)
109%doc README* NEWS
110%{_bindir}/libgcrypt-config
111%{_includedir}/*
112%{_libdir}/*.so
113%{_datadir}/aclocal/libgcrypt.m4
114%{_infodir}/*
115
116# compat32
117%if %{build_compat32}
118%files -n compat32-%{name}
119%defattr(-,root,root)
120%{_libdir}/*.so.*
121
122%files -n compat32-%{name}-devel
123%defattr(-,root,root)
124%{_libdir}/*.so
125%endif
126
127%changelog
128* Sat Nov 28 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.4-1
129- new upstream release
130
131* Wed Jan 15 2014 NAKAMURA Kenta <kenta@vinelinux.org> - 1.6.0-1
132- new upstream release
133
134* Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.3-2
135- rebuild with VineSeed environment
136
137* Sat Aug 10 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.3-1
138- new upstream release
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.