npth/npth.spec

71 lines
2.1 KiB
RPMSpec
Raw Normal View History

2013-03-12 13:07:55 +00:00
Name: npth
Version: 1.6
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
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/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
Source3: npth-config.1
2013-03-12 13:07:55 +00:00
BuildRequires: make
BuildRequires: gcc
BuildRequires: gnupg2
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
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup
2013-03-12 13:07:55 +00:00
%build
%configure --disable-static
2014-08-18 01:58:53 +00:00
%make_build
# 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
%make_install
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
%ldconfig_scriptlets
2013-03-12 13:07:55 +00:00
%files
%license COPYING.LIB
%{_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
%{_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
%autochangelog