source: projects/specs/tags/6_0_REL/lib/libg/libgcrypt/libgcrypt-vl.spec @ 2041

Revision 2041, 4.7 KB checked in by Takemikaduchi, 14 years ago (diff)

update to GNOME-2.32.0

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