1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | %define with_python --with-python |
---|
3 | %define with_python_version %(echo `python -c "import sys; print sys.version[:3]"`) |
---|
4 | #define with_java --with-java |
---|
5 | |
---|
6 | Summary: An open source cryptography library. |
---|
7 | Name: beecrypt |
---|
8 | Version: 4.1.2 |
---|
9 | Release: 15%{?_dist_release} |
---|
10 | Group: System Environment/Libraries |
---|
11 | License: LGPL |
---|
12 | URL: http://sourceforge.net/projects/beecrypt |
---|
13 | Source0: http://prdownloads.sourceforge.net/beecrypt/%{name}-%{version}.tar.gz |
---|
14 | Source1: http://prdownloads.sourceforge.net/beecrypt/%{name}-%{version}.tar.gz.sig |
---|
15 | Patch0: beecrypt-4.1.2-base64.patch |
---|
16 | Patch1: beecrypt-4.1.2-python-api.patch |
---|
17 | #BuildRequires: doxygen |
---|
18 | %if %{?with_python:1}0 |
---|
19 | BuildRequires: python-devel >= %{with_python_version} |
---|
20 | %endif |
---|
21 | BuildRoot: %{_tmppath}/%{name}-root |
---|
22 | Obsoletes: beecrypt-java =< 4.1.2-2 |
---|
23 | |
---|
24 | %description |
---|
25 | Beecrypt is a general-purpose cryptography library. |
---|
26 | |
---|
27 | %package devel |
---|
28 | Summary: Files needed for developing applications with beecrypt. |
---|
29 | Group: Development/Libraries |
---|
30 | Requires: %{name} = %{version}-%{release} |
---|
31 | |
---|
32 | %description devel |
---|
33 | Beecrypt is a general-purpose cryptography library. This package contains |
---|
34 | files needed for developing applications with beecrypt. |
---|
35 | |
---|
36 | ## to build compat32 for x86_64 architecture support |
---|
37 | %package -n compat32-%{name} |
---|
38 | Summary: An open source cryptography library. |
---|
39 | Group: System Environment/Libraries |
---|
40 | #BuildPreReq: doxygen |
---|
41 | |
---|
42 | %description -n compat32-%{name} |
---|
43 | Beecrypt is a general-purpose cryptography library. |
---|
44 | |
---|
45 | %package -n compat32-%{name}-devel |
---|
46 | Summary: Files needed for developing applications with beecrypt. |
---|
47 | Group: Development/Libraries |
---|
48 | Requires: %{name} = %{version}-%{release} |
---|
49 | |
---|
50 | %description -n compat32-%{name}-devel |
---|
51 | Beecrypt is a general-purpose cryptography library. This package contains |
---|
52 | files needed for developing applications with beecrypt. |
---|
53 | |
---|
54 | |
---|
55 | %if %{?with_python:1}0 |
---|
56 | %package python |
---|
57 | Summary: Files needed for python applications using beecrypt. |
---|
58 | Group: Development/Libraries |
---|
59 | Requires: python >= %{with_python_version} |
---|
60 | Requires: %{name} = %{version}-%{release} |
---|
61 | |
---|
62 | %description python |
---|
63 | Beecrypt is a general-purpose cryptography library. This package contains |
---|
64 | files needed for using python with beecrypt. |
---|
65 | %endif |
---|
66 | |
---|
67 | %if %{?with_java:1}0 |
---|
68 | %package java |
---|
69 | Summary: Files needed for java applications using beecrypt. |
---|
70 | Group: Development/Libraries |
---|
71 | Requires: %{name} = %{version}-%{release} |
---|
72 | |
---|
73 | %description java |
---|
74 | Beecrypt is a general-purpose cryptography library. This package contains |
---|
75 | files needed for using java with beecrypt. |
---|
76 | %endif |
---|
77 | |
---|
78 | %prep |
---|
79 | %setup -q |
---|
80 | %patch0 -p1 -b .base64 |
---|
81 | %patch1 -p1 -b .python-api |
---|
82 | |
---|
83 | %build |
---|
84 | %configure --enable-shared --enable-static \ |
---|
85 | %{?with_python}%{!?with_python:--with-python=no} \ |
---|
86 | %{?with_java}%{!?with_java:--with-java=no} \ |
---|
87 | --with-cplusplus=no |
---|
88 | |
---|
89 | make %{?_smp_mflags} \ |
---|
90 | %{?with_python:pythondir="%{_libdir}/python%{with_python_version}/site-packages"} |
---|
91 | #doxygen |
---|
92 | |
---|
93 | %install |
---|
94 | rm -fr $RPM_BUILD_ROOT |
---|
95 | make install DESTDIR=$RPM_BUILD_ROOT \ |
---|
96 | %{?with_python:pythondir="%{_libdir}/python%{with_python_version}/site-packages"} |
---|
97 | |
---|
98 | # XXX nuke unpackaged files, artifacts from using libtool to produce module |
---|
99 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/python%{with_python_version}/site-packages/_bc.*a |
---|
100 | |
---|
101 | # XXX delete next line to build with legacy, non-check aware, rpmbuild. |
---|
102 | make check || : |
---|
103 | cat /proc/cpuinfo |
---|
104 | make bench || : |
---|
105 | |
---|
106 | ## remove unuse files |
---|
107 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
108 | |
---|
109 | |
---|
110 | %clean |
---|
111 | rm -fr $RPM_BUILD_ROOT |
---|
112 | |
---|
113 | %post -p /sbin/ldconfig |
---|
114 | |
---|
115 | %postun -p /sbin/ldconfig |
---|
116 | |
---|
117 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
118 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
119 | |
---|
120 | %files |
---|
121 | %defattr(-,root,root) |
---|
122 | %doc README BENCHMARKS |
---|
123 | %{_libdir}/libbeecrypt.so.* |
---|
124 | |
---|
125 | %files devel |
---|
126 | %defattr(-,root,root) |
---|
127 | %doc BUGS |
---|
128 | %{_includedir}/%{name} |
---|
129 | %{_libdir}/libbeecrypt.a |
---|
130 | #%{_libdir}/libbeecrypt.la |
---|
131 | %{_libdir}/libbeecrypt.so |
---|
132 | |
---|
133 | %if %{?with_python:1}0 |
---|
134 | %files python |
---|
135 | %defattr(-,root,root) |
---|
136 | %{_libdir}/python%{with_python_version}/site-packages/_bc.so |
---|
137 | %endif |
---|
138 | |
---|
139 | %if %{?with_java:1}0 |
---|
140 | %files java |
---|
141 | %defattr(-,root,root) |
---|
142 | %{_libdir}/libbeecrypt_java.a |
---|
143 | #%{_libdir}/libbeecrypt_java.la |
---|
144 | %{_libdir}/libbeecrypt_java.so* |
---|
145 | %endif |
---|
146 | |
---|
147 | ## to build compat32 for x86_64 architecture support |
---|
148 | %if %{build_compat32} |
---|
149 | %files -n compat32-%{name} |
---|
150 | %defattr(-,root,root) |
---|
151 | %{_libdir}/libbeecrypt.so.* |
---|
152 | |
---|
153 | %files -n compat32-%{name}-devel |
---|
154 | %defattr(-,root,root) |
---|
155 | %{_libdir}/libbeecrypt.a |
---|
156 | #%{_libdir}/libbeecrypt.la |
---|
157 | %{_libdir}/libbeecrypt.so |
---|
158 | %endif |
---|
159 | |
---|
160 | %changelog |
---|
161 | * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 4.1.2-15 |
---|
162 | - rebuild with python-2.7.2 |
---|
163 | |
---|
164 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 4.1.2-14 |
---|
165 | - rebuilt with rpm-4.8.1-3 |
---|
166 | |
---|
167 | * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.1.2-13 |
---|
168 | - rebuilt with gcc-4.4.3-3 on ppc |
---|
169 | |
---|
170 | * Fri Feb 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.1.2-12 |
---|
171 | - rebuilt with rpm-4.8.0-3 (on ppc) |
---|
172 | |
---|
173 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 4.1.2-11 |
---|
174 | - rebuild with python-2.6 |
---|
175 | |
---|
176 | * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 4.1.2-10vl5 |
---|
177 | - applied new versioning policy |
---|
178 | - removed *.la |
---|
179 | |
---|
180 | * Sat Dec 22 2007 NAKAMURA Kenta <kenta@vinelinux.org> 4.1.2-9vl5 |
---|
181 | - removed %%if !%%{build_compat32} case condition |
---|
182 | |
---|
183 | * Wed May 06 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.1.2-9vl4 |
---|
184 | - rebuilt with new toolchain |
---|
185 | |
---|
186 | * Mon Feb 06 2006 Shu KONNO <owa@bg.wakwak.com> 4.1.2-9vl3 |
---|
187 | - moved macros _lib to /usr/lib/rpm/rpmrc or macros files |
---|
188 | |
---|
189 | * Mon Jan 30 2006 Shu KONNO <owa@bg.wakwak.com> 4.1.2-9vl2 |
---|
190 | - added compat32-* packages for x86_64 architecture support |
---|
191 | - dropt doxygen |
---|
192 | |
---|
193 | * Wed Nov 30 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1,2-9vl1 |
---|
194 | - initial build for Vine Linux based on FC-devel |
---|
195 | |
---|
196 | * Sat Oct 15 2005 Florian La Roche <laroche@redhat.com> |
---|
197 | - Use -with-cplusplus=no. The libs still require libstdc++, so |
---|
198 | this needs further cleanup. |
---|
199 | |
---|
200 | * Tue May 17 2005 Miloslav Trmac <mitr@redhat.com> - 4.1.2-8 |
---|
201 | - Remove dependencies on private symbols not present in Python 2.4 from |
---|
202 | beecrypt-python |
---|
203 | |
---|
204 | * Tue May 17 2005 Miloslav Trmac <mitr@redhat.com> - 4.1.2-7 |
---|
205 | - Doh, actually apply the patch |
---|
206 | |
---|
207 | * Tue May 17 2005 Miloslav Trmac <mitr@redhat.com> - 4.1.2-6 |
---|
208 | - Fix b64encode() for data starting with NUL (#123650) |
---|
209 | |
---|
210 | * Fri Apr 01 2005 Warren Togami <wtogami@redhat.com> 4.1.2-5 |
---|
211 | - remove huge API docs |
---|
212 | |
---|
213 | * Fri Apr 01 2005 Paul Nasrat <pnasrat@redhat.com> 4.1.2-4 |
---|
214 | - Obsolete older beecrypt-java |
---|
215 | |
---|
216 | * Tue Mar 29 2005 Paul Nasrat <pnasrat@redhat.com> 4.1.2-3 |
---|
217 | - Disable beecrypt-java (#151294) |
---|
218 | |
---|
219 | * Fri Mar 4 2005 Jeff Johnson <jbj@redhat.com> 4.1.2-2 |
---|
220 | - rebuild with gcc4. |
---|
221 | |
---|
222 | * Sat Feb 5 2005 Jeff Johnson <jbj@jbj.org> 4.1.2-1 |
---|
223 | - upgrade to 4.1.2 |
---|
224 | - put java components in sub-package. |
---|
225 | - check that /usr/lib64 is not used on alpha (#146583). |
---|
226 | |
---|
227 | * Fri Feb 4 2005 Miloslav Trmac <mitr@redhat.com> - 3.1.0-7 |
---|
228 | - Rebuild against Python 2.4 |
---|
229 | |
---|
230 | * Sun Aug 08 2004 Alan Cox <alan@redhat.com> 3.1.0-6 |
---|
231 | - Build requires libtool (Steve Grubb) |
---|
232 | |
---|
233 | * Fri Jul 02 2004 Elliot Lee <sopwith@redhat.com> 3.1.0-5 |
---|
234 | - rebuilt |
---|
235 | - Add _smp_mflags |
---|
236 | |
---|
237 | * Wed Mar 24 2004 Jeff Johnson <jbj@redhat.com> 3.1.0-3 |
---|
238 | - fix: extgcd_w problem fixed by upgrading from CVS. |
---|
239 | |
---|
240 | * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> |
---|
241 | - rebuilt |
---|
242 | |
---|
243 | * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> |
---|
244 | - rebuilt |
---|
245 | |
---|
246 | * Mon Dec 22 2003 Jeff Johnson <jbj@jbj.org> 3.1.0-1 |
---|
247 | - upgrade to 3.1.0. |
---|
248 | - recompile against python-2.3.3. |
---|
249 | |
---|
250 | * Mon Jun 30 2003 Jeff Johnson <jbj@redhat.com> 3.0.1-0.20030630 |
---|
251 | - upstream fixes for DSA and ppc64. |
---|
252 | |
---|
253 | * Mon Jun 23 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-2 |
---|
254 | - upgrade to 3.0.0 final. |
---|
255 | - fix for DSA (actually, modulo inverse) sometimes failing. |
---|
256 | |
---|
257 | * Fri Jun 20 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-1.20030619 |
---|
258 | - avoid asm borkage on ppc64. |
---|
259 | |
---|
260 | * Thu Jun 19 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-1.20030618 |
---|
261 | - rebuild for release bump. |
---|
262 | |
---|
263 | * Tue Jun 17 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-1.20030616 |
---|
264 | - try to out smart libtool a different way. |
---|
265 | - use $bc_target_cpu, not $bc_target_arch, to detect /usr/lib64. |
---|
266 | |
---|
267 | * Mon Jun 16 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-1.20030615 |
---|
268 | - use -mcpu=powerpc64 on ppc64. |
---|
269 | |
---|
270 | * Fri Jun 13 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-1.20030613 |
---|
271 | - upgrade to latest snapshot. |
---|
272 | |
---|
273 | * Fri Jun 6 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-1.20030605 |
---|
274 | - rebuild into another tree. |
---|
275 | |
---|
276 | * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> |
---|
277 | - rebuilt |
---|
278 | |
---|
279 | * Tue Jun 3 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-0.20030603 |
---|
280 | - update to 3.0.0 snapshot, fix mpmod (and DSA) on 64b platforms. |
---|
281 | |
---|
282 | * Mon Jun 2 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-0.20030602 |
---|
283 | - update to 3.0.0 snapshot, merge patches, fix gcd rshift and ppc problems. |
---|
284 | |
---|
285 | * Thu May 29 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-0.20030529 |
---|
286 | - update to 3.0.0 snapshot, fix ia64/x86_64 build problems. |
---|
287 | |
---|
288 | * Wed May 28 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-0.20030528 |
---|
289 | - upgrade to 3.0.0 snapshot, adding rpm specific base64.[ch] changes. |
---|
290 | - add PYTHONPATH=.. so that "make check" can test the just built _bc.so module. |
---|
291 | - grab cpuinfo and run "make bench". |
---|
292 | - continue ignoring "make check" failures, LD_LIBRARY_PATH needed for _bc.so. |
---|
293 | - skip asm build failure on ia64 for now. |
---|
294 | - ignore "make bench" exit codes too, x86_64 has AES segfault. |
---|
295 | |
---|
296 | * Wed May 21 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-0.20030521 |
---|
297 | - upgrade to 3.0.0 snapshot, including python subpackage. |
---|
298 | - ignore "make check" failure for now. |
---|
299 | |
---|
300 | * Fri May 16 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-0.20030516 |
---|
301 | - upgrade to 3.0.0 snapshot, including ia64 and x86_64 fixes. |
---|
302 | - add %%check. |
---|
303 | - ignore "make check" failure on ia64 for now. |
---|
304 | |
---|
305 | * Mon May 12 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-0.20030512 |
---|
306 | - upgrade to 3.0.0 snapshot. |
---|
307 | - add doxygen doco. |
---|
308 | - use /dev/urandom as default entropy source. |
---|
309 | - avoid known broken compilation for now. |
---|
310 | |
---|
311 | * Wed Jan 22 2003 Tim Powers <timp@redhat.com> |
---|
312 | - rebuilt |
---|
313 | |
---|
314 | * Tue Nov 19 2002 Tim Powers <timp@redhat.com> |
---|
315 | - rebuild on all arches |
---|
316 | |
---|
317 | * Fri Aug 2 2002 Jeff Johnson <jbj@redhat.com> 2.2.0-6 |
---|
318 | - install types.h (#68999). |
---|
319 | |
---|
320 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
321 | - automated rebuild |
---|
322 | |
---|
323 | * Wed Jun 5 2002 Jeff Johnson <jbj@redhat.com> |
---|
324 | - run ldconfig when installing/erasing (#65974). |
---|
325 | |
---|
326 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
327 | - automated rebuild |
---|
328 | |
---|
329 | * Mon May 13 2002 Jeff Johnson <jbj@redhat.com> |
---|
330 | - upgrade to latest 2.2.0 (from cvs.rpm.org). |
---|
331 | |
---|
332 | * Mon Jan 21 2002 Jeff Johnson <jbj@redhat.com> |
---|
333 | - use the same beecrypt-2.2.0 that rpm is using internally. |
---|
334 | |
---|
335 | * Thu Jan 10 2002 Nalin Dahyabhai <nalin@redhat.com> 2.1.0-1 |
---|
336 | - initial package |
---|