%bcond_without python %bcond_with java %lib_package beecrypt 6 %define with_python_version %(python -c "import sys; print sys.version[:3]") Summary: An open source cryptography library. Name: beecrypt Version: 4.1.2 Release: 10.1_14%{?dist} Group: System Environment/Libraries License: LGPL URL: http://sourceforge.net/projects/beecrypt Source0: http://prdownloads.sourceforge.net/beecrypt/%{name}-%{version}.tar.gz Source1: http://prdownloads.sourceforge.net/beecrypt/%{name}-%{version}.tar.gz.sig Patch0: beecrypt-4.1.2-base64.patch Patch1: beecrypt-4.1.2-python-api.patch Patch2: beecrypt-4.1.2-biarch.patch BuildPreReq: doxygen tetex-dvips tetex-latex %if %{with python} BuildPreReq: python-devel %endif #BuildRequires: autoconf, automake, libtool BuildRequires: gcc-c++, m4 #BuildRequires: graphviz, tetex-dvips, tetex, tetex-latex, ghostscript BuildRoot: %{_tmppath}/%{name}-root Obsoletes: beecrypt-java =< 4.1.2-2 %description Beecrypt is a general-purpose cryptography library. %if %{with python} %package python Summary: Files needed for python applications using beecrypt. Group: Development/Libraries Requires: %{python_libdir} Requires: %{name} = %{version}-%{release} %description python Beecrypt is a general-purpose cryptography library. This package contains files needed for using python with beecrypt. %endif %if %{with java} %package java Summary: Files needed for java applications using beecrypt. Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description java Beecrypt is a general-purpose cryptography library. This package contains files needed for using java with beecrypt. %endif %prep %setup -q %patch0 -p1 -b .base64 %patch1 -p1 -b .python-api %patch2 -p1 -b .biarch %build %configure --enable-shared --enable-static \ %{?with_python:--with-python}%{!?with_python:--with-python=no} \ %{?with_java:--with-java}%{!?with_java:--with-java=no} \ --with-cplusplus=no make %{?_smp_mflags} \ %{?with_python:pythondir="%{_libdir}/python%{with_python_version}/site-packages"} doxygen %install rm -fr %{buildroot} make install DESTDIR=%{buildroot} \ %{?with_python:pythondir="%{_libdir}/python%{with_python_version}/site-packages"} cat > develfiles.list << EOF %defattr(-,root,root,-) %doc BUGS EOF # XXX delete next line to build with legacy, non-check aware, rpmbuild. %check make check || : cat /proc/cpuinfo make bench || : %clean rm -fr %{buildroot} %files %defattr(-,root,root,-) %doc README BENCHMARKS %if %{?with_python:1}0 %files python %defattr(-,root,root,-) %{_libdir}/python%{with_python_version}/site-packages/_bc.so %exclude %{_libdir}/python%{with_python_version}/site-packages/_bc.a %exclude %{_libdir}/python%{with_python_version}/site-packages/_bc.la %endif %if %{with java} %files java %defattr(-,root,root) %{_libdir}/libbeecrypt_java.a %{_libdir}/libbeecrypt_java.la %{_libdir}/libbeecrypt_java.so* %endif %changelog * Tue Jun 27 2006 Paul Nasrat - 4.1.2-10.1 - Fix missing BR * Mon May 22 2006 Paul Nasrat - 4.1.2-10 - Make multilib-devel work * Sat Oct 15 2005 Florian La Roche - Use -with-cplusplus=no. The libs still require libstdc++, so this needs further cleanup. * Tue May 17 2005 Miloslav Trmac - 4.1.2-8 - Remove dependencies on private symbols not present in Python 2.4 from beecrypt-python * Tue May 17 2005 Miloslav Trmac - 4.1.2-7 - Doh, actually apply the patch * Tue May 17 2005 Miloslav Trmac - 4.1.2-6 - Fix b64encode() for data starting with NUL (#123650) * Fri Apr 01 2005 Warren Togami 4.1.2-5 - remove huge API docs * Fri Apr 01 2005 Paul Nasrat 4.1.2-4 - Obsolete older beecrypt-java * Tue Mar 29 2005 Paul Nasrat 4.1.2-3 - Disable beecrypt-java (#151294) * Fri Mar 4 2005 Jeff Johnson 4.1.2-2 - rebuild with gcc4. * Sat Feb 5 2005 Jeff Johnson 4.1.2-1 - upgrade to 4.1.2 - put java components in sub-package. - check that /usr/lib64 is not used on alpha (#146583). * Fri Feb 4 2005 Miloslav Trmac - 3.1.0-7 - Rebuild against Python 2.4 * Sun Aug 08 2004 Alan Cox 3.1.0-6 - Build requires libtool (Steve Grubb) * Fri Jul 02 2004 Elliot Lee 3.1.0-5 - rebuilt - Add _smp_mflags * Wed Mar 24 2004 Jeff Johnson 3.1.0-3 - fix: extgcd_w problem fixed by upgrading from CVS. * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Mon Dec 22 2003 Jeff Johnson 3.1.0-1 - upgrade to 3.1.0. - recompile against python-2.3.3. * Mon Jun 30 2003 Jeff Johnson 3.0.1-0.20030630 - upstream fixes for DSA and ppc64. * Mon Jun 23 2003 Jeff Johnson 3.0.0-2 - upgrade to 3.0.0 final. - fix for DSA (actually, modulo inverse) sometimes failing. * Fri Jun 20 2003 Jeff Johnson 3.0.0-1.20030619 - avoid asm borkage on ppc64. * Thu Jun 19 2003 Jeff Johnson 3.0.0-1.20030618 - rebuild for release bump. * Tue Jun 17 2003 Jeff Johnson 3.0.0-1.20030616 - try to out smart libtool a different way. - use $bc_target_cpu, not $bc_target_arch, to detect /usr/lib64. * Mon Jun 16 2003 Jeff Johnson 3.0.0-1.20030615 - use -mcpu=powerpc64 on ppc64. * Fri Jun 13 2003 Jeff Johnson 3.0.0-1.20030613 - upgrade to latest snapshot. * Fri Jun 6 2003 Jeff Johnson 3.0.0-1.20030605 - rebuild into another tree. * Wed Jun 04 2003 Elliot Lee - rebuilt * Tue Jun 3 2003 Jeff Johnson 3.0.0-0.20030603 - update to 3.0.0 snapshot, fix mpmod (and DSA) on 64b platforms. * Mon Jun 2 2003 Jeff Johnson 3.0.0-0.20030602 - update to 3.0.0 snapshot, merge patches, fix gcd rshift and ppc problems. * Thu May 29 2003 Jeff Johnson 3.0.0-0.20030529 - update to 3.0.0 snapshot, fix ia64/x86_64 build problems. * Wed May 28 2003 Jeff Johnson 3.0.0-0.20030528 - upgrade to 3.0.0 snapshot, adding rpm specific base64.[ch] changes. - add PYTHONPATH=.. so that "make check" can test the just built _bc.so module. - grab cpuinfo and run "make bench". - continue ignoring "make check" failures, LD_LIBRARY_PATH needed for _bc.so. - skip asm build failure on ia64 for now. - ignore "make bench" exit codes too, x86_64 has AES segfault. * Wed May 21 2003 Jeff Johnson 3.0.0-0.20030521 - upgrade to 3.0.0 snapshot, including python subpackage. - ignore "make check" failure for now. * Fri May 16 2003 Jeff Johnson 3.0.0-0.20030516 - upgrade to 3.0.0 snapshot, including ia64 and x86_64 fixes. - add %%check. - ignore "make check" failure on ia64 for now. * Mon May 12 2003 Jeff Johnson 3.0.0-0.20030512 - upgrade to 3.0.0 snapshot. - add doxygen doco. - use /dev/urandom as default entropy source. - avoid known broken compilation for now. * Wed Jan 22 2003 Tim Powers - rebuilt * Tue Nov 19 2002 Tim Powers - rebuild on all arches * Fri Aug 2 2002 Jeff Johnson 2.2.0-6 - install types.h (#68999). * Fri Jun 21 2002 Tim Powers - automated rebuild * Wed Jun 5 2002 Jeff Johnson - run ldconfig when installing/erasing (#65974). * Thu May 23 2002 Tim Powers - automated rebuild * Mon May 13 2002 Jeff Johnson - upgrade to latest 2.2.0 (from cvs.rpm.org). * Mon Jan 21 2002 Jeff Johnson - use the same beecrypt-2.2.0 that rpm is using internally. * Thu Jan 10 2002 Nalin Dahyabhai 2.1.0-1 - initial package