%define cvs 0 %define rel 20 %if %cvs %define release %mkrel 1.%cvs.%rel %else %define release %mkrel %rel %endif %define with_python --with-python=%_bindir/python %define with_cplusplus --with-cplusplus %define build_java 0 %{?_with_java: %{expand: %%global build_java 1}} %ifarch %mips %arm %define build_java 0 %endif %define major 7 %define libname %mklibname %{name} %{major} %define libname_cxx %mklibname %{name}_cxx %{major} %define libname_java %mklibname %{name}_java %{major} %define develname %mklibname %{name} -d Summary: An open source cryptography library Name: beecrypt Version: 4.2.1 Release: %{release} Group: System/Libraries License: LGPLv2+ URL: http://beecrypt.sourceforge.net/ %if %cvs Source0: %{name}-%{cvs}.tar.lzma %else Source0: http://prdownloads.sourceforge.net/beecrypt/%{name}-%{version}.tar.gz %endif Patch0: beecrypt-4.1.2-biarch.patch # AdamW: ugly patch simply defines upstream's odd libaltdir variable to be # equal to libdir in one places. Also replaces a similarly weird pythondir # variable with hardcoded $(libdir)/python2.5 , so will stop working when # python goes to 2.6. I expect upstream to have a better fix for this issue # by then, so it won't matter. The problem is that beecrypt tries to set this # libaltdir variable to /usr/lib or /usr/lib64 depending on the arch in use # which it tests by grepping the default CFLAGS for --march=x86_64 . Ours # don't include this, so the test breaks. Upstream should simply be using # standard libdir variable. (This is mostly fixed now (2008/02), only two # instances left). Patch1: beecrypt-4.2.0-lib64.patch Patch2: beecrypt-4.2.0-link.patch Patch3: beecrypt-4.2.1-py_platsitedir.diff Patch4: beecrypt_arm_configure_fix.patch Patch5: beecrypt-containsAll.patch BuildRequires: doxygen BuildRequires: tetex-dvips BuildRequires: tetex-latex BuildRequires: texlive-fontsextra BuildRequires: graphviz BuildRequires: m4 BuildRequires: libgomp-devel %if %{?with_python:1}0 BuildRequires: python-devel >= %{pyver} %endif %if %{?with_cplusplus:1}0 BuildRequires: icu-devel %endif %if %{build_java} BuildRequires: java-devel BuildRequires: jpackage-utils %endif %description Beecrypt is a general-purpose cryptography library. %package -n %{libname} Summary: An open source cryptography library Group: System/Libraries %description -n %{libname} Beecrypt is a general-purpose cryptography library. %package -n %{develname} Summary: Files needed for developing applications with beecrypt Group: Development/C %if %{?with_cplusplus:1}0 Requires: %{libname_cxx} = %{version} %endif %if %{build_java} Requires: %{libname_java} = %{version} %endif Requires: %{libname} = %{version} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Obsoletes: %{mklibname beecrypt 7 -d} %description -n %{develname} Beecrypt is a general-purpose cryptography library. This package contains files needed for developing applications with beecrypt. %if %{?with_python:1}0 %package python Summary: Files needed for python applications using beecrypt Group: Development/Python Requires: python >= %{pyver} Requires: %{libname} = %{version} %description python Beecrypt is a general-purpose cryptography library. This package contains files needed for using python with beecrypt. %endif %if %{?with_cplusplus:1}0 %package -n %{libname_cxx} Summary: Files needed for C++ applications using beecrypt Group: Development/C++ Requires: %{libname} = %{version} %description -n %{libname_cxx} Beecrypt is a general-purpose cryptography library. This package contains files needed for using C++ with beecrypt. %endif %if %{build_java} %package -n %{libname_java} Summary: Files needed for java applications using beecrypt Group: Development/Java Requires: %{libname} = %{version} %description -n %{libname_java} Beecrypt is a general-purpose cryptography library. This package contains files needed for using java with beecrypt. %endif %prep %if %cvs %setup -q -n %{name} %else %setup -q %endif %patch0 -p1 -b .biarch %patch1 -p0 -b .lib64 %patch2 -p1 -b .link %patch3 -p0 %patch4 -p1 %patch5 -p1 %build %if %cvs ./autogen.sh %endif ./autogen.sh export OPENMP_LIBS="-lgomp" %configure2_5x \ --enable-shared \ --enable-static \ %{?with_python} \ %{?with_cplusplus} \ %if !%{build_java} --with-java=no \ %endif CPPFLAGS="-I%{_includedir}/python%{pyver}" %make pythondir=%{py_platsitedir} cd include/beecrypt doxygen cd c++ doxygen cd ../../.. # XXX delete next line to build with legacy, non-check aware, rpmbuild. %check make check || : cat /proc/cpuinfo make bench || : %install %makeinstall_std # XXX nuke unpackaged files, artifacts from using libtool to produce module rm -f %{buildroot}%{py_platsitedir}/_bc.*a %{buildroot}%{_libdir}/*.la %files -n %{libname} %doc README BENCHMARKS %{_libdir}/libbeecrypt.so.%{major}* %files -n %{develname} %doc BUGS docs/html docs/latex %{_includedir}/%{name} %if %{?with_cplusplus:1}0 %{_libdir}/%{name}/base.so %{_libdir}/%{name}/*.*a %endif %{_libdir}/*.a %{_libdir}/*.so %if %{?with_python:1}0 %files python %{py_platsitedir}/_bc.so %endif %if %{?with_cplusplus:1}0 %files -n %{libname_cxx} %config %{_sysconfdir}/beecrypt.conf %dir %{_libdir}/%{name} %{_libdir}/%{name}/base.so.* %{_libdir}/libbeecrypt_cxx.so.%{major}* %endif %if %{build_java} %files -n %{libname_java} %{_libdir}/libbeecrypt_java.so.%{major}* %endif %changelog * Sun Nov 30 2014 sander85 <sander85> 4.2.1-20.mga5 + Revision: 799958 - Disable java * Thu Oct 30 2014 pterjan <pterjan> 4.2.1-19.mga5 + Revision: 794790 - Drop unsed broken buildrequires * Wed Oct 15 2014 umeabot <umeabot> 4.2.1-18.mga5 + Revision: 744176 - Second Mageia 5 Mass Rebuild + tv <tv> - rebuild for missing pythoneggs deps * Fri Sep 19 2014 tv <tv> 4.2.1-17.mga5 + Revision: 696897 - rebuild for fixed deps * Thu Sep 18 2014 umeabot <umeabot> 4.2.1-16.mga5 + Revision: 693505 - Rebuild to fix library dependencies * Tue Sep 16 2014 umeabot <umeabot> 4.2.1-15.mga5 + Revision: 678135 - Mageia 5 Mass Rebuild * Sat Apr 05 2014 wally <wally> 4.2.1-14.mga5 + Revision: 611870 - rebuild for new icu + umeabot <umeabot> - Mageia 4 Mass Rebuild * Fri Sep 27 2013 fwang <fwang> 4.2.1-13.mga4 + Revision: 487488 - update br - rebuild for icu 52 * Sun May 26 2013 fwang <fwang> 4.2.1-12.mga4 + Revision: 427965 - rebuild for new icu + umeabot <umeabot> - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Nov 06 2012 fwang <fwang> 4.2.1-11.mga3 + Revision: 314723 - rebuild for new icu * Sat Sep 29 2012 malo <malo> 4.2.1-10.mga3 + Revision: 300011 - Fix RPM group * Mon Jul 16 2012 rtp <rtp> 4.2.1-9.mga3 + Revision: 271332 - fix build error * Wed May 30 2012 fwang <fwang> 4.2.1-8.mga3 + Revision: 249611 - rebuild for new icu * Mon Jun 20 2011 fwang <fwang> 4.2.1-7.mga2 + Revision: 110336 - rebuild for new icu * Sun Apr 10 2011 rtp <rtp> 4.2.1-6.mga1 + Revision: 83005 - add texlive-fontsextra BR as dsfont.sty is required by doxygen doc generation. - Fix a typo in configure and fix java arch check * Tue Jan 18 2011 pterjan <pterjan> 4.2.1-5.mga1 + Revision: 21786 - Rebuild for python 2.7 * Sat Jan 15 2011 ahmad <ahmad> 4.2.1-4.mga1 + Revision: 18422 - modify beecrypt-4.2.0-lib64.patch so that it doesn't hard code the python version and compile with %%make pythondir=%%{py_platsitedir} instead (idea from Fedora) + dmorgan <dmorgan> - Enable back python - Disable package for now - Remove mdv macros - imported package beecrypt