2012-06-12 15:20:32 +00:00
|
|
|
#
|
|
|
|
# spec file for package npth
|
|
|
|
#
|
2016-12-01 17:23:05 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-06-12 15:20:32 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2012-09-04 05:12:29 +00:00
|
|
|
|
|
|
|
|
2012-06-12 15:20:32 +00:00
|
|
|
%define lname libnpth0
|
2016-12-01 17:23:05 +00:00
|
|
|
Name: npth
|
|
|
|
Version: 1.3
|
2014-09-23 09:45:06 +00:00
|
|
|
Release: 0
|
2012-06-12 15:20:32 +00:00
|
|
|
Summary: New GNU Portable Threads library
|
|
|
|
License: LGPL-3.0+ or GPL-2.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-09-04 05:12:29 +00:00
|
|
|
Url: http://gnupg.org/
|
2014-09-23 09:45:06 +00:00
|
|
|
#DL-URL: ftp://ftp.gnupg.org/gcrypt/npth/
|
2012-06-12 15:20:32 +00:00
|
|
|
#Git-Clone: git://git.gnupg.org/npth
|
2016-12-01 17:23:05 +00:00
|
|
|
Source: ftp://ftp.gnupg.org/gcrypt/npth/%{name}-%{version}.tar.bz2
|
|
|
|
Source2: ftp://ftp.gnupg.org/gcrypt/npth/%{name}-%{version}.tar.bz2.sig
|
|
|
|
Source4: %{name}.keyring
|
|
|
|
Source99: %{name}.changes
|
2012-06-12 15:20:32 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
nPth is a non-preemptive threads implementation using an API very
|
|
|
|
similar to the one known from 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.
|
|
|
|
|
2016-12-01 17:23:05 +00:00
|
|
|
%package -n %{lname}
|
2012-06-12 15:20:32 +00:00
|
|
|
Summary: New GNU Portable Threads library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2016-12-01 17:23:05 +00:00
|
|
|
%description -n %{lname}
|
2012-06-12 15:20:32 +00:00
|
|
|
nPth is a non-preemptive threads implementation using an API very
|
|
|
|
similar to the one known from 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++
|
2016-12-01 17:23:05 +00:00
|
|
|
Requires: %{lname} = %{version}
|
2012-06-12 15:20:32 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
nPth is a non-preemptive threads implementation using an API very
|
|
|
|
similar to the one known from 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.
|
|
|
|
|
|
|
|
%prep
|
2012-09-04 05:12:29 +00:00
|
|
|
%setup -q
|
2012-06-12 15:20:32 +00:00
|
|
|
|
|
|
|
%build
|
2016-12-01 17:23:05 +00:00
|
|
|
date=$(date -u +%%Y-%%m-%%dT%%H:%%M+0000 -r %{SOURCE99})
|
|
|
|
%configure \
|
|
|
|
--enable-build-timestamp=$date
|
2012-06-12 15:20:32 +00:00
|
|
|
make %{?_smp_mflags};
|
|
|
|
|
|
|
|
%install
|
2016-12-01 17:23:05 +00:00
|
|
|
b="%{buildroot}";
|
2012-06-12 15:20:32 +00:00
|
|
|
make install DESTDIR="$b";
|
2016-12-01 17:23:05 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-06-12 15:20:32 +00:00
|
|
|
|
2016-12-01 17:23:05 +00:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2012-06-12 15:20:32 +00:00
|
|
|
|
2016-12-01 17:23:05 +00:00
|
|
|
%files -n %{lname}
|
2012-06-12 15:20:32 +00:00
|
|
|
%defattr(-,root,root)
|
2016-12-01 17:23:05 +00:00
|
|
|
%{_libdir}/libnpth.so.0*
|
2012-06-12 15:20:32 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2016-12-01 17:23:05 +00:00
|
|
|
%{_bindir}/npth-config
|
|
|
|
%{_includedir}/npth.h
|
|
|
|
%{_libdir}/libnpth.so
|
|
|
|
%{_datadir}/aclocal
|
2012-06-12 15:20:32 +00:00
|
|
|
|
|
|
|
%changelog
|