File libbeecrypt6.spec of Package libbeecrypt6
#
# spec file for package libbeecrypt6 (Version 4.1.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Url: http://sourceforge.net/projects/beecrypt
Name: libbeecrypt6
Summary: An open source cryptography library
Version: 4.1.2
Release: 2
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
AutoReqProv: on
Source: beecrypt-%{version}.tar.bz2
Patch0: beecrypt-4.1.2.diff
Patch1: beecrypt-4.1.2-build.diff
Patch2: beecrypt-4.1.2-fix_headers.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
BeeCrypt is an ongoing project to provide a strong and fast
cryptography toolkit. Includes entropy sources, random generators,
block ciphers, hash functions, message authentication codes,
multiprecision integer routines, and public key primitives.
Authors:
--------
Bob Deblier <bob.deblier@pandora.be>
Jeff Johson <jbj@redhat.com>
%package -n libbeecrypt-devel
Summary: An open source cryptography library
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Requires: libbeecrypt6 = %{version}
AutoReqProv: on
%description -n libbeecrypt-devel
BeeCrypt is an ongoing project to provide a strong and fast
cryptography toolkit. Includes entropy sources, random generators,
block ciphers, hash functions, message authentication codes,
multiprecision integer routines, and public key primitives.
Authors:
--------
Bob Deblier <bob.deblier@pandora.be>
Jeff Johson <jbj@redhat.com>
%prep
%setup -q -n beecrypt-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%suse_update_config
./autogen.sh
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -ffunction-sections" LDFLAGS="-Wl,-Bsymbolic-functions -ffunction-sections" ./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} --libdir=/usr/lib --sysconfdir=/etc --localstatedir=/var --without-cplusplus --without-java --without-python
make %{?jobs:-j%jobs}
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
make DESTDIR="$RPM_BUILD_ROOT" install
rm -f $RPM_BUILD_ROOT%{_libdir}/libbeecrypt.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS BUGS CONTRIBUTORS ChangeLog COPYING COPYING.LIB NEWS README
%{_libdir}/libbeecrypt.so.6*
%files -n libbeecrypt-devel
%defattr(644,root,root,755)
/usr/include/beecrypt
%{_libdir}/libbeecrypt.a
%{_libdir}/libbeecrypt.so
%changelog
* Mon Apr 07 2008 jblunck@suse.de
- Initial package
- Fixed the beecrypt headers