source: projects/specs/trunk/lib/libg/libgcrypt15/libgcrypt15-vl.spec @ 8268

Revision 8268, 5.0 KB checked in by kenta, 10 years ago (diff)

libgcrypt15: add compat package

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: libgcrypt15
5Version: 1.5.3
6Release: 3%{?_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 -n libgcrypt-%{version}
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%doc README* NEWS
102%{_libdir}/*.so.*
103
104%exclude %{_bindir}/*
105%exclude %{_includedir}/*
106%exclude %{_libdir}/*.so
107%exclude %{_datadir}/aclocal/libgcrypt.m4
108%exclude %{_infodir}/*
109
110# compat32
111%if %{build_compat32}
112%files -n compat32-%{name}
113%defattr(-,root,root)
114%{_libdir}/*.so.*
115
116%exclude %{_libdir}/*.so
117%endif
118
119%changelog
120* Wed Jan 15 2014 NAKAMURA Kenta <kenta@vinelinux.org> - 1.5.3-3
121- rename package (libgcrypt15)
122
123* Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.3-2
124- rebuild with VineSeed environment
125
126* Sat Aug 10 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.3-1
127- new upstream release
128
129* Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.6-1
130- new upstream release
131
132* Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.4.3-3
133- added compat32 package for x86_64 arch support
134- added --disable-static %%configure option
135
136* Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.3-2
137- removed *.la
138
139* Tue Sep 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3-1
140- new upstream release
141
142* Tue Mar 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-1vl5
143- new upstream release
144- used _dist_release macro
145
146* Sat Mar 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-0vl1
147- new upstream release
148
149* Sun Nov 26 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-0vl1
150- new upstream release
151- changed Group to System Environment/Libraries
152
153* Fri Dec 30 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.2-0vl1
154- new upstream release
155
156* Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.2.1-0vl1
157- new upstream release
158- fix dependencies
159  - add BuildRequires: libgpg-error-devel >= 0.5
160  - add Requires: libgpg-error
161  - add Requires: libgpg-error-devel for devel package
162
163* Tue Nov 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1
164- new upstream release
165
166* Sun Mar  7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.12-0vl1
167- initial build
168
Note: See TracBrowser for help on using the repository browser.