2013-03-12 13:07:55 +00:00
|
|
|
Name: npth
|
2018-09-09 09:40:28 +00:00
|
|
|
Version: 1.6
|
2024-01-22 10:27:11 +00:00
|
|
|
Release: %autorelease
|
2014-08-18 01:58:53 +00:00
|
|
|
Summary: The New GNU Portable Threads library
|
2022-12-06 15:55:06 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2018-09-09 09:40:28 +00:00
|
|
|
URL: https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git
|
2022-08-31 11:54:36 +00:00
|
|
|
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/devel/old-signature-keys.asc
|
|
|
|
Source2: gpgkey-D8692123C4065DEA5E0F3AB5249B39D24F25E3B6.gpg
|
2013-03-12 13:07:55 +00:00
|
|
|
# Manual page is re-used and changed pth-config.1 from pth-devel package
|
2022-08-31 11:54:36 +00:00
|
|
|
Source3: npth-config.1
|
2013-03-12 13:07:55 +00:00
|
|
|
|
2017-06-08 07:26:54 +00:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: gcc
|
2022-08-31 11:54:36 +00:00
|
|
|
BuildRequires: gnupg2
|
2017-06-08 07:26:54 +00:00
|
|
|
|
2013-03-12 13:07:55 +00:00
|
|
|
%description
|
|
|
|
nPth is a non-preemptive threads implementation using an API very similar
|
2015-04-10 15:09:43 +00:00
|
|
|
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
|
2013-03-12 13:07:55 +00:00
|
|
|
the use of libraries which are not compatible to GNU Pth.
|
|
|
|
|
2014-08-18 01:58:53 +00:00
|
|
|
%package devel
|
2014-08-18 02:09:55 +00:00
|
|
|
Summary: Development files for %{name}
|
2013-03-12 13:07:55 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
2014-08-18 02:09:55 +00:00
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
2013-03-12 13:07:55 +00:00
|
|
|
|
|
|
|
%prep
|
2022-08-31 11:54:36 +00:00
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
2017-06-08 07:26:54 +00:00
|
|
|
%autosetup
|
2013-03-12 13:07:55 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static
|
2014-08-18 01:58:53 +00:00
|
|
|
%make_build
|
2023-05-15 14:19:46 +00:00
|
|
|
# avoid multilib conflict
|
|
|
|
%ifarch x86_64 i686
|
|
|
|
sed -ie 's/".*-redhat-linux-gnu"/"$(uname -m)-redhat-linux-gnu"/' %{name}-config
|
|
|
|
sed -ie 's/libs=".* -lnpth/libs="-lnpth/' %{name}-config
|
|
|
|
sed -ie 's/Configured for: .*-redhat-linux-gnu/Configured for: x86_64+i686-redhat-linux-gnu/' src/%{name}.h
|
|
|
|
%endif
|
2013-03-12 13:07:55 +00:00
|
|
|
|
|
|
|
%install
|
2018-09-09 09:40:28 +00:00
|
|
|
%make_install
|
2022-08-31 11:54:36 +00:00
|
|
|
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 %{S:3}
|
2014-08-18 01:58:53 +00:00
|
|
|
find %{buildroot} -name '*.la' -delete -print
|
2013-03-12 13:07:55 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2018-02-03 11:50:32 +00:00
|
|
|
%ldconfig_scriptlets
|
2013-03-12 13:07:55 +00:00
|
|
|
|
|
|
|
%files
|
2017-06-08 07:26:54 +00:00
|
|
|
%license COPYING.LIB
|
2016-11-22 15:34:01 +00:00
|
|
|
%{_libdir}/lib%{name}.so.*
|
2013-03-12 13:07:55 +00:00
|
|
|
|
|
|
|
%files devel
|
2014-08-18 01:58:53 +00:00
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
2016-11-22 15:34:01 +00:00
|
|
|
%{_bindir}/%{name}-config
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%{_includedir}/%{name}.h
|
|
|
|
%{_mandir}/man1/%{name}-config.1*
|
|
|
|
%{_datadir}/aclocal/%{name}.m4
|
2013-03-12 13:07:55 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-01-22 10:27:11 +00:00
|
|
|
%autochangelog
|