File mingw64-libbeecrypt.spec of Package mingw64-libbeecrypt
#
# spec file for package mingw64-libbeecrypt
#
# Copyright (c) 2014 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/
#
Name: mingw64-libbeecrypt
Version: 4.1.2
Release: 0
Summary: An open source cryptography library
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Url: http://sourceforge.net/projects/beecrypt
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
Patch3: beecrypt-4.1.2-windows.diff
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
%_mingw64_package_header_debug
BuildArch: noarch
%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.
%package -n mingw64-libbeecrypt6
Summary: An open source cryptography library
Group: System/Libraries
Obsoletes: %{name} < %{version}-%{release}
Provides: %{name} = %{version}-%{release}
%description -n mingw64-libbeecrypt6
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.
%package devel
Summary: An open source cryptography library (development files)
Group: Development/Libraries/C and C++
%description 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.
%_mingw64_debug_package
%prep
%setup -q -n beecrypt-%{version}
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 3 -p1
%build
libtoolize --force --copy --install
./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} --disable-static --without-cplusplus --without-java --without-python
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw64-libbeecrypt6
%defattr(-,root,root)
%doc AUTHORS BUGS CONTRIBUTORS ChangeLog COPYING COPYING.LIB NEWS README
%{_mingw64_bindir}/libbeecrypt-6.dll
%files devel
%defattr(644,root,root,755)
%{_mingw64_includedir}/beecrypt
%{_mingw64_libdir}/libbeecrypt.dll.a
%changelog