Name npth
Description The New GNU Portable Threads library
Version 1.8-2.fc42
Package Base npth
Homepage https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git
Maintainers ['cicku', 'mjg']
Contributors []
Distro-repo https://src.fedoraproject.org/rpms/npth/tree/f42
Sources ['gpgkey-6DAA6E64A76D2840571B4902528897B826403ADA.gpg', 'https://gnupg.org/ftp/gcrypt/npth/%{name}-%{version}.tar.bz2', 'https://gnupg.org/ftp/gcrypt/npth/%{name}-%{version}.tar.bz2.sig', 'npth-config.1']
Dependencies ['libc.so.6', 'rtld']
Optional-Dependencies []
Build-Dependencies ['gcc', 'gnupg2', 'make']
Provides ['libnpth.so.0()(64bit)', 'libnpth.so.0(NPTH_1.0)(64bit)', 'npth', 'npth(x86-64)']
Builddate 17-01-2025 21:27:40
Architecture x86_64
Distro-Version 42
Licenses ['LGPL-2.1-or-later']
Hash 903bcf6aad8ae9bbf1e1f0e1b18b5877f45e3a467fdb184b6263403d4f5dc1bd
Name:           npth
Version:        1.8
Release:        %autorelease
Summary:        The New GNU Portable Threads library
License:        LGPL-2.1-or-later
URL:            https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git
Source0:        https://gnupg.org/ftp/gcrypt/npth/%{name}-%{version}.tar.bz2
Source1:        https://gnupg.org/ftp/gcrypt/npth/%{name}-%{version}.tar.bz2.sig
# Keyring generated from https://gnupg.org/signature_key.asc
Source2:        gpgkey-6DAA6E64A76D2840571B4902528897B826403ADA.gpg
# Manual page is re-used and changed pth-config.1 from pth-devel package
Source3:        npth-config.1

BuildRequires:  make
BuildRequires:  gcc
BuildRequires:  gnupg2

%description
nPth is a non-preemptive threads implementation using an API very similar
to the one known from GNU Pth. It has been designed as a replacement of
GNU Pth for non-ancient operating systems. In contrast to GNU Pth is 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 %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
This package contains libraries and header files for
developing applications that use %{name}.

%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup

%build
%configure --disable-static
%make_build

%install
%make_install
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 %{S:3}
find %{buildroot} -name '*.la' -delete -print

%check
make check

%ldconfig_scriptlets

%files
%license COPYING.LIB
%{_libdir}/lib%{name}.so.*

%files devel
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}.h
%{_mandir}/man1/%{name}-config.1*
%{_datadir}/aclocal/%{name}.m4

%changelog
%autochangelog