File mingw64-libnettle.spec of Package mingw64-libnettle

#
# spec file for package mingw64-libnettle
#
# Copyright (c) 2017 SUSE LINUX 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-libnettle
Version:        3.6
Release:        0
Summary:        Cryptographic Library
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            http://www.lysator.liu.se/~nisse/nettle/
Source:         http://ftp.gnu.org/gnu/nettle/nettle-%version.tar.gz
Source2:        http://ftp.gnu.org/gnu/nettle/nettle-%version.tar.gz.sig
Source3:        %name.keyring
Patch0:         fix-building-with-mingw-headers-12.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  gcc
BuildRequires:  m4
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-gmp-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Nettle is a cryptographic library that is designed to fit easily in more or
less any context: In crypto toolkits for object-oriented languages (C++,
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.

%package -n mingw64-libnettle-8
Summary:        Cryptographic Library
Group:          System/Libraries
Provides:       mingw64-libnettle

%description -n mingw64-libnettle-8
Nettle is a cryptographic library that is designed to fit easily in more or
less any context: In crypto toolkits for object-oriented languages (C++,
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.

%package -n mingw64-nettle
Summary:        Cryptographic Tools
Group:          Productivity/Networking/Security

%description -n mingw64-nettle
Nettle is a cryptographic library that is designed to fit easily in more or
less any context: In crypto toolkits for object-oriented languages (C++,
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.

This package contains a few command-line tools to perform cryptographic
operations using the nettle library.

%package -n mingw64-libhogweed-6
Summary:        Cryptographic Library for Public Key Algorithms
Group:          Development/Libraries
Provides:       mingw64-libhogweed

%description -n mingw64-libhogweed-6
Nettle is a cryptographic library that is designed to fit easily in more or
less any context: In crypto toolkits for object-oriented languages (C++,
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.

The libhogweed library contains public key algorithms to use with libnettle.

%package devel
Summary:        Cryptographic Library (development files)
Group:          Development/Libraries/C and C++

%description devel
Nettle is a cryptographic library that is designed to fit easily in more or
less any context: In crypto toolkits for object-oriented languages (C++,
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.

%_mingw64_debug_package

%prep
%autosetup -p1 -n nettle-%{version}

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
autoreconf -i -f
%{_mingw64_configure} --enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
%{_mingw64_make} DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_mingw64_infodir}

%files -n mingw64-libnettle-8
%defattr(-,root,root)
%{_mingw64_bindir}/libnettle-8.dll

%files -n mingw64-libhogweed-6
%defattr(-,root,root)
%{_mingw64_bindir}/libhogweed-6.dll

%files -n mingw64-nettle
%defattr(-,root,root)
%{_mingw64_bindir}/nettle-pbkdf2.exe
%{_mingw64_bindir}/sexp-conv.exe
%{_mingw64_bindir}/nettle-lfib-stream.exe
%{_mingw64_bindir}/nettle-hash.exe
%{_mingw64_bindir}/pkcs1-conv.exe

%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libnettle.dll.a
%{_mingw64_libdir}/libhogweed.dll.a
%{_mingw64_libdir}/pkgconfig/nettle.pc
%{_mingw64_libdir}/pkgconfig/hogweed.pc
%{_mingw64_includedir}/nettle/*.h

%changelog
openSUSE Build Service is sponsored by