%define libname libbeecrypt Name: beecrypt Version: 4.2.1 Release: 1mamba Summary: Beecrypt is a general-purpose cryptography library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://sourceforge.net/projects/%{name} Source: http://ovh.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libpython-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END %if "%{stage1}" != "1" BuildRequires: libicu-devel BuildRequires: java-gcj-compat BuildRequires: java-gcj-compat-runtime %endif BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Beecrypt is a general-purpose cryptography library. %package -n %{libname} Summary: Beecrypt is a general-purpose cryptography library Group: System/Libraries %description -n %{libname} Beecrypt is a general-purpose cryptography library. %package -n %{libname}-devel Summary: Static libraries and headers for %{name} Group: Development/Libraries Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} %description -n %{libname}-devel Beecrypt is a general-purpose cryptography library. This package contains static libraries and header files need for development. %package -n java-%{name} Summary: Files needed for java applications using beecrypt Group: Development/Libraries Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} Provides: %{name}-java = %{?epoch:%epoch:}%{version}-%{release} %description -n java-%{name} Beecrypt is a general-purpose cryptography library. This package contains files needed for using java with beecrypt. %package -n python-%{name} Summary: Files needed for python applications using beecrypt Group: Development/Libraries Requires: python >= %{pyver} Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} Provides: %{name}-python = %{?epoch:%epoch:}%{version}-%{release} %py_requires %description -n python-%{name} Beecrypt is a general-purpose cryptography library. This package contains files needed for using python with beecrypt. %prep %setup -q %build %configure \ --enable-shared \ --enable-static \ --with-cplusplus=no \ %if "%{stage1}" != "1" --with-java %endif %make libaltdir=%{_libdir} %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall libaltdir=%{_libdir} %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %defattr(-,root,root) %{_libdir}/libbeecrypt.so.* %doc AUTHORS BUGS COPYING.LIB NEWS README %files -n %{libname}-devel %defattr(-,root,root) %dir %{_includedir}/%{name} %{_includedir}/%{name}/*.h %{_libdir}/libbeecrypt.a %{_libdir}/libbeecrypt.la %{_libdir}/libbeecrypt.so %files -n java-%{name} %defattr(-,root,root) %{_libdir}/libbeecrypt_java.* %files -n python-%{name} %defattr(-,root,root) %{_libdir}/python%{pyver}/site-packages/* %changelog * Wed Jun 16 2010 Automatic Build System 4.2.1-1mamba - automatic update by autodist * Thu Dec 13 2007 Silvan Calarco 4.1.2-3mamba - enable build of static library again * Tue Dec 04 2007 Aleph0 4.1.2-2mamba - updated specfile * Wed Jan 04 2006 Davide Madrisan 4.1.2-1qilnx - package created by autospec