File mingw64-npth.spec of Package mingw64-npth
#
# spec file for package mingw64-npth
#
# Copyright (c) 2018 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/
#
%_mingw64_package_header_debug
Name: mingw64-npth
Version: 1.6
Release: 0
Summary: GNU Portable Threads library
License: LGPL-2.0-or-later
Group: Development/Libraries/C and C++
URL: http://gnupg.org/
Source: ftp://ftp.gnupg.org/gcrypt/npth/npth-%{version}.tar.bz2
Source2: ftp://ftp.gnupg.org/gcrypt/npth/npth-%{version}.tar.bz2.sig
Patch0: npth-1.6-def.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-gcc
BuildArch: noarch
%description
nPth is a non-preemptive threads implementation using an API
similar to the one in GNU Pth. In contrast to Pth, nPth is
based on the system's standard threads implementation. Thus, nPth
allows the use of libraries which are not compatible to GNU Pth.
%package -n mingw64-libnpth0
Summary: GNU Portable Threads library
Group: System/Libraries
%description -n mingw64-libnpth0
nPth is a non-preemptive threads implementation using an API
similar to the one in GNU Pth. In contrast to Pth, nPth is
based on the system's standard threads implementation. Thus, nPth
allows the use of libraries which are not compatible to GNU Pth.
%package devel
Summary: Development files for the GNU New Portable Threads library
Group: Development/Libraries/C and C++
%description devel
nPth is a non-preemptive threads implementation using an API
similar to the one in GNU Pth.
This subpackage contains the headers for npth.
%_mingw64_debug_package
%prep
%setup -q -n npth-%{version}
%patch -P 0 -p1
%build
libtoolize --force --copy --install
autoreconf -fi
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--disable-build-timestamp
make %{?_smp_mflags}
%install
%_mingw64_makeinstall
%files -n mingw64-libnpth0
%{_mingw64_bindir}/libnpth-0.dll
%files devel
%doc AUTHORS NEWS ChangeLog COPYING.LIB README
%{_mingw64_bindir}/npth-config
%{_mingw64_includedir}/npth.h
%{_mingw64_libdir}/libnpth.dll.a
%{_mingw64_libdir}/npth.def
%{_mingw64_datadir}/aclocal/
%changelog