Jan Engelhardt
adfa17937b
Verify GPG signature: Perform build-time offline GPG verification. Please verify that included keyring matches your needs. For manipulation with the offline keyring, please use gpg-offline tool from openSUSE:Factory, devel-tools-building or Base:System. See the man page and/or /usr/share/doc/packages/gpg-offline/PACKAGING.HOWTO. If you need to build your package for older products and don't want to mess spec file with ifs, please follow PACKAGING.HOWTO: you can link or aggregate gpg-offline from devel:tools:building or use following trick with "osc meta prjconf": --- Cut here ---- %if 0%{?suse_version} <= 1220 Substitute: gpg-offline %endif Macros: %gpg_verify(dnf) \ %if 0%{?suse_version} > 1220\ echo "WARNING: Using %%gpg_verify macro from prjconf, not from gpg-offline package."\ gpg-offline --directory="%{-d:%{-d*}}%{!-d:%{_sourcedir}}" --package="%{-n:%{-n*}}%{!-n:%{name}}""%{-f: %{-f*}}" --verify %{**}\ %else\ echo "WARNING: Dummy prjconf macro. gpg-offline is not available, skipping %{**} GPG signature verification!"\ %endif\ %nil ----------------- OBS-URL: https://build.opensuse.org/request/show/143914 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/npth?expand=0&rev=5
94 lines
2.8 KiB
RPMSpec
94 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package npth
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products 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/
|
|
#
|
|
|
|
|
|
Name: npth
|
|
%define lname libnpth0
|
|
Summary: New GNU Portable Threads library
|
|
License: LGPL-3.0+ or GPL-2.0+
|
|
Group: Development/Libraries/C and C++
|
|
Version: 0.91
|
|
Release: 0
|
|
Url: http://gnupg.org/
|
|
|
|
#DL-URL: ftp://ftp.gnupg.org/gcrypt/npth/npth-%version.tar.bz2
|
|
#Git-Clone: git://git.gnupg.org/npth
|
|
Source: %name-%version.tar.bz2
|
|
Source2: %name-%version.tar.bz2.sig
|
|
Source4: %name.keyring
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
#BuildRequires: autoconf >= 2.67, automake >= 1.11
|
|
#BuildRequires: libtool >= 2.2.6
|
|
BuildRequires: gpg-offline
|
|
|
|
%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.
|
|
|
|
%package -n %lname
|
|
Summary: New GNU Portable Threads library
|
|
Group: System/Libraries
|
|
|
|
%description -n %lname
|
|
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++
|
|
Requires: %lname = %version
|
|
|
|
%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
|
|
%gpg_verify %{S:2}
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags};
|
|
|
|
%install
|
|
b="%buildroot";
|
|
make install DESTDIR="$b";
|
|
rm -f "$b/%_libdir"/*.la;
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%files -n %lname
|
|
%defattr(-,root,root)
|
|
%_libdir/libnpth.so.0*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%_bindir/npth-config
|
|
%_includedir/npth.h
|
|
%_libdir/libnpth.so
|
|
%_datadir/aclocal
|
|
|
|
%changelog
|