1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | Summary: A cryptographic library based on the code from GnuPG. |
---|
3 | Summary(ja): GnuPG のコードをベースとした暗号化ライブラリ |
---|
4 | Name: libgcrypt |
---|
5 | Version: 1.4.6 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | URL: http://www.gnu.org/directory/security/libgcrypt.html |
---|
8 | Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2 |
---|
9 | Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig |
---|
10 | License: GPLv2+ |
---|
11 | Group: System Environment/Libraries |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildRequires: libgpg-error-devel >= 0.5 |
---|
15 | Requires: libgpg-error |
---|
16 | Requires(post,preun): /sbin/install-info |
---|
17 | |
---|
18 | %description |
---|
19 | This is a general purpose cryptographic library based on the code from |
---|
20 | GnuPG. It provides functions for all cryptograhic building blocks: |
---|
21 | symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash |
---|
22 | algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for |
---|
23 | all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large |
---|
24 | integer functions, random numbers and a lot of supporting functions. |
---|
25 | |
---|
26 | %package devel |
---|
27 | Summary: Development files for libgcrypt |
---|
28 | Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ |
---|
29 | Group: Development/Libraries |
---|
30 | Requires: %{name} = %{version}-%{release} |
---|
31 | Requires: libgpg-error-devel |
---|
32 | |
---|
33 | %description devel |
---|
34 | Static libraries and header files from libgcrypt. |
---|
35 | |
---|
36 | %package -n compat32-%{name} |
---|
37 | Summary: A cryptographic library based on the code from GnuPG. |
---|
38 | Summary(ja): GnuPG のコードをベースとした暗号化ライブラリ |
---|
39 | Group: System Environment/Libraries |
---|
40 | Requires: %{name} = %{version}-%{release} |
---|
41 | |
---|
42 | %description -n compat32-%{name} |
---|
43 | This is a general purpose cryptographic library based on the code from |
---|
44 | GnuPG. It provides functions for all cryptograhic building blocks: |
---|
45 | symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash |
---|
46 | algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for |
---|
47 | all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large |
---|
48 | integer functions, random numbers and a lot of supporting functions. |
---|
49 | |
---|
50 | %package -n compat32-%{name}-devel |
---|
51 | Summary: Development files for libgcrypt |
---|
52 | Summary(ja): libgcrypt を使った開発に必要なヘッダやライブラリ |
---|
53 | Group: Development/Libraries |
---|
54 | Requires: compat32-%{name} = %{version}-%{release} |
---|
55 | Requires: %{name}-devel = %{version}-%{release} |
---|
56 | Requires: compat32-libgpg-error-devel |
---|
57 | |
---|
58 | %description -n compat32-%{name}-devel |
---|
59 | Static libraries and header files from libgcrypt. |
---|
60 | |
---|
61 | %prep |
---|
62 | %setup -q |
---|
63 | |
---|
64 | %build |
---|
65 | %configure --disable-static |
---|
66 | make |
---|
67 | |
---|
68 | %install |
---|
69 | [ "%{buildroot}" != / ] && rm -rf %{buildroot} |
---|
70 | %makeinstall |
---|
71 | rm -f %{buildroot}%{_infodir}/dir |
---|
72 | |
---|
73 | ## remove unuse files |
---|
74 | rm -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 |
---|
88 | if [ $1 = 0 ]; then |
---|
89 | /sbin/install-info --delete %{_infodir}/gcrypt.info.gz %{_infodir}/dir ||: |
---|
90 | fi |
---|
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 | |
---|