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

Revision 8084, 5.0 KB checked in by Takemikaduchi, 10 years ago (diff)

new upstream release or rebuild

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.3
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
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%{_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* Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.3-2
127- rebuild with VineSeed environment
128
129* Sat Aug 10 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.3-1
130- new upstream release
131
132* Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.6-1
133- new upstream release
134
135* Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.4.3-3
136- added compat32 package for x86_64 arch support
137- added --disable-static %%configure option
138
139* Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.3-2
140- removed *.la
141
142* Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3-1
143- new upstream release
144
145* Tue Mar 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-1vl5
146- new upstream release
147- used _dist_release macro
148
149* Sat Mar 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-0vl1
150- new upstream release
151
152* Sun Nov 26 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-0vl1
153- new upstream release
154- changed Group to System Environment/Libraries
155
156* Fri Dec 30 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.2-0vl1
157- new upstream release
158
159* Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.1-0vl1
160- new upstream release
161- fix dependencies
162  - add BuildRequires: libgpg-error-devel >= 0.5
163  - add Requires: libgpg-error
164  - add Requires: libgpg-error-devel for devel package
165
166* Tue Nov 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1
167- new upstream release
168
169* Sun Mar  7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.12-0vl1
170- initial build
171
Note: See TracBrowser for help on using the repository browser.