File mingw64-libsodium.spec of Package mingw64-libsodium
#
# spec file for package mingw64-libsodium
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015-2024, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define sover 26
%define lname libsodium%{sover}
%define realname libsodium
Name: mingw64-%{realname}
Version: 1.0.19
Release: 0
Summary: Portable NaCl-based crypto library
License: ISC
Group: System/Libraries
Url: https://libsodium.org
Source: https://download.libsodium.org/libsodium/releases/%{realname}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem
%{_mingw64_package_header_debug}
BuildArch: noarch
%description
NaCl (pronounced "salt") is a new easy-to-use high-speed software library
for network communication, encryption, decryption, signatures, etc.NaCl's goal
is to provide all of the core operations needed to build higher-level cryptographic tools.
Sodium is a portable, cross-compilable, installable, packageable fork of NaCl,
with a compatible API.
%package -n mingw64-%{lname}
Summary: Portable NaCl-based crypto library
Group: System/Libraries
%description -n mingw64-%{lname}
NaCl (pronounced "salt") is a new easy-to-use high-speed software library
for network communication, encryption, decryption, signatures, etc. NaCl's goal
is to provide all of the core operations needed to build higher-level cryptographic tools.
Sodium is a portable, cross-compilable, installable, packageable fork of NaCl,
with a compatible API.
%package -n mingw64-%{realname}-devel
Summary: Portable NaCl-based crypto library
Group: Development/Libraries/C and C++
Requires: mingw64-%{lname} = %{version}
%description -n mingw64-%{realname}-devel
This package contains all necessary include files and libraries needed
to compile and develop applications that use libsodium.
%{_mingw64_debug_package}
%prep
%setup -q -n %{realname}-stable
%build
%{_mingw64_configure} --disable-static
%{_mingw64_make} %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw64-%{lname}
%{_mingw64_bindir}/libsodium-%{sover}.dll
%{_mingw64_bindir}/libsodium-%{sover}.def
%files -n mingw64-%{realname}-devel
%license LICENSE
%doc AUTHORS ChangeLog README.markdown THANKS
%{_mingw64_includedir}/sodium.h
%{_mingw64_includedir}/sodium
%{_mingw64_libdir}/libsodium.dll.a
%{_mingw64_libdir}/pkgconfig/libsodium.pc
%changelog