%define cvs 0 %define rel 29 %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 # P6 from Gentoo to fix build with ICU >= 59 # https://bugs.gentoo.org/618676 # from https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/beecrypt/files Patch6: beecrypt-4.2.1-cast-uchar.patch Patch7: beecrypt-4.2.1-c++11-allow-throw-in-destructors.patch # (tv) fix build with gcc8/icu62: Patch8: beecrypt-fix-build-with-icu62.patch # Patch from FC (rhbz#165080) #Patch10: beecrypt-4.2.1-no-c++.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: pkgconfig(python) >= %{python2_version} %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 >= %{python2_version} 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 %autopatch -p1 %build # to recognize aarch64 autoreconf -vfi 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%{python2_version}" %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 * Sat Dec 29 2018 luigiwalser <luigiwalser> 4.2.1-29.mga7 + Revision: 1346085 - rebuild for icu * Fri Sep 21 2018 umeabot <umeabot> 4.2.1-28.mga7 + Revision: 1295357 - Mageia 7 Mass Rebuild * Wed Aug 22 2018 tv <tv> 4.2.1-27.mga7 + Revision: 1253404 - fix building with gcc8 & icu-62 - rebuild for new libicu * Mon Jun 04 2018 wally <wally> 4.2.1-26.mga7 + Revision: 1234555 - fix build on aarch64 * Fri Dec 29 2017 wally <wally> 4.2.1-25.mga7 + Revision: 1187103 - add patch from Gentoo to fix build with icu >= 59 - rebuild for new icu * Wed Mar 15 2017 mrambo3501 <mrambo3501> 4.2.1-24.mga6 + Revision: 1092683 - Rebuild for icu-58.2 * Fri May 13 2016 shlomif <shlomif> 4.2.1-23.mga6 + Revision: 1015037 - Rebuild for new ICU * Fri Jan 01 2016 luigiwalser <luigiwalser> 4.2.1-22.mga6 + Revision: 917817 - rebuild for icu * Fri Jul 24 2015 cjw <cjw> 4.2.1-21.mga6 + Revision: 856748 - rebuild for icu 55 * 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 * Thu Nov 04 2010 Götz Waschk <waschk@mandriva.org> 4.2.1-4mdv2011.0 + Revision: 593333 - fix patch for python 2.7 * Sun Mar 21 2010 Funda Wang <fwang@mandriva.org> 4.2.1-4mdv2010.1 + Revision: 526044 - rebuild for new icu * Tue Mar 16 2010 Oden Eriksson <oeriksson@mandriva.com> 4.2.1-3mdv2010.1 + Revision: 521389 - fix python stuff - fix build - rebuilt for 2010.1 * Fri Sep 25 2009 Olivier Blin <oblin@mandriva.com> 4.2.1-2mdv2010.0 + Revision: 448804 - disable java on mips & arm (from Arnaud Patard) * Sun Jul 12 2009 Frederik Himpe <fhimpe@mandriva.org> 4.2.1-1mdv2010.0 + Revision: 395313 - Fix Java BuildRequires - Add libgomp BuildRequires - Update to new version 4.2.1 - Add patch to fix unresolved libgomp symbols * Thu Feb 05 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 4.2.0-0.20090205.1mdv2009.1 + Revision: 337901 - update to new snapshot 20090205 - patch 2 was merged upstream * Sat Dec 27 2008 Funda Wang <fwang@mandriva.org> 4.2.0-0.20080216.3mdv2009.1 + Revision: 319837 - rebuild for new python * Tue Jul 29 2008 Oden Eriksson <oeriksson@mandriva.com> 4.2.0-0.20080216.2mdv2009.0 + Revision: 253481 - fix silly summary-ended-with-dot - fix release... - fix spec file errors - fix packaging after peeking a bit at arklinux, but with a twist * Mon Jun 16 2008 Thierry Vignaud <tv@mandriva.org> 4.2.0-0.20080216.1mdv2009.0 + Revision: 220480 - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Sat Feb 16 2008 Adam Williamson <awilliamson@mandriva.org> 4.2.0-0.20080216.1mdv2008.1 + Revision: 169321 - specify location of python in --with-python parameter, configure test seems to be broken somehow - use system %%pyver macro - add typo.patch that fixes build when C++ stuff is built (not in our default build but might affect people doing rebuilds) - rediff lib64.patch - minor cleanups - new devel policy - new snapshot - build all docs + Thierry Vignaud <tv@mandriva.org> - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Pixel <pixel@mandriva.com> - add explicit conflict on libbeecrypt6-devel * Wed Apr 25 2007 Adam Williamson <awilliamson@mandriva.org> 4.2.0-0.20070425.1mdv2008.0 + Revision: 18192 - reorder patches, add new patch1 to fix x86-64 build - enable tests - major has gone up to 7 upstream - use CVS to see if it builds right on x86-64 - sync spec and patches with Fedora - buildrequires graphviz for doc generation - 4.1.2 * Fri May 12 2006 Stefan van der Eijk <stefan@eijk.nu> 3.1.0-7mdk - rebuild for sparc * Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 3.1.0-6mdk - Rebuild * Mon Jan 31 2005 Frederic Lepied <flepied@mandrakesoft.com> 3.1.0-5mdk - * Sat Dec 25 2004 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 3.1.0-4mdk - fix build with current python - fix group - cosmetics * Sun Jun 20 2004 Stefan van der Eijk <stefan@mandrake.org> 3.1.0-3mdk - patch2: alpha doesn't use lib64 * Wed Feb 18 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 3.1.0-2mdk - automake1.7 * Fri Jan 16 2004 Frederic Lepied <flepied@mandrakesoft.com> 3.1.0-1mdk - initial Mandrake Linux packaging * Mon Dec 22 2003 Jeff Johnson <jbj@jbj.org> 3.1.0-1 - upgrade to 3.1.0. - recompile against python-2.3.3. * Mon Jun 30 2003 Jeff Johnson <jbj@redhat.com> 3.0.1-0.20030630 - upstream fixes for DSA and ppc64. * Mon Jun 23 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-2 - upgrade to 3.0.0 final. - fix for DSA (actually, modulo inverse) sometimes failing. * Fri Jun 20 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-1.20030619 - avoid asm borkage on ppc64. * Thu Jun 19 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-1.20030618 - rebuild for release bump. * Tue Jun 17 2003 Jeff Johnson <jbj@redhat.com> 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 <jbj@redhat.com> 3.0.0-1.20030615 - use -mcpu=powerpc64 on ppc64. * Fri Jun 13 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-1.20030613 - upgrade to latest snapshot. * Fri Jun 06 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-1.20030605 - rebuild into another tree. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> - rebuilt * Tue Jun 03 2003 Jeff Johnson <jbj@redhat.com> 3.0.0-0.20030603 - update to 3.0.0 snapshot, fix mpmod (and DSA) on 64b platforms. * Mon Jun 02 2003 Jeff Johnson <jbj@redhat.com> 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 <jbj@redhat.com> 3.0.0-0.20030529 - update to 3.0.0 snapshot, fix ia64/x86_64 build problems. * Wed May 28 2003 Jeff Johnson <jbj@redhat.com> 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 <jbj@redhat.com> 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 <jbj@redhat.com> 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 <jbj@redhat.com> 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.