Accepting request 832097 from devel:libraries:c_c++

- Remove old specfile constructs and doubleshipping of docs.

OBS-URL: https://build.opensuse.org/request/show/832097
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/npth?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2020-09-08 20:45:41 +00:00 committed by Git OBS Bridge
commit e115cc7d18
2 changed files with 14 additions and 15 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 4 12:28:41 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Remove old specfile constructs and doubleshipping of docs.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 16 09:36:52 UTC 2018 - kbabioch@suse.com Mon Jul 16 09:36:52 UTC 2018 - kbabioch@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package npth # spec file for package npth
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -23,15 +23,14 @@ Release: 0
Summary: GNU Portable Threads library Summary: GNU Portable Threads library
License: LGPL-2.0-or-later License: LGPL-2.0-or-later
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: http://gnupg.org/ URL: http://gnupg.org/
#DL-URL: ftp://ftp.gnupg.org/gcrypt/npth/
#Git-Clone: git://git.gnupg.org/npth #Git-Clone: git://git.gnupg.org/npth
#DL-URL: ftp://ftp.gnupg.org/gcrypt/npth/
Source: ftp://ftp.gnupg.org/gcrypt/npth/%name-%version.tar.bz2 Source: ftp://ftp.gnupg.org/gcrypt/npth/%name-%version.tar.bz2
Source2: ftp://ftp.gnupg.org/gcrypt/npth/%name-%version.tar.bz2.sig Source2: ftp://ftp.gnupg.org/gcrypt/npth/%name-%version.tar.bz2.sig
# https://www.gnupg.org/signature_key.html # https://www.gnupg.org/signature_key.html
Source4: %name.keyring Source4: %name.keyring
Source99: %name.changes Source99: %name.changes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
nPth is a non-preemptive threads implementation using an API nPth is a non-preemptive threads implementation using an API
@ -61,33 +60,28 @@ similar to the one in GNU Pth.
This subpackage contains the headers for npth. This subpackage contains the headers for npth.
%prep %prep
%setup -q %autosetup -p1
%build %build
date=$(date -u "+%%Y-%%m-%%dT%%H:%%M+0000" -r %SOURCE99) date=$(date -u "+%%Y-%%m-%%dT%%H:%%M+0000" -r %SOURCE99)
%configure \ %configure \
--enable-build-timestamp="$date" --enable-build-timestamp="$date"
make %{?_smp_mflags} %make_build
%install %install
b="%buildroot"
%make_install %make_install
find "%buildroot" -type f -name "*.la" -delete -print find "%buildroot" -type f -name "*.la" -delete -print
%check %check
make %{?_smp_mflags} check %make_build check
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%files -n %lname %files -n %lname
%defattr(-,root,root)
%license COPYING.LIB
%doc AUTHORS NEWS ChangeLog README
%_libdir/libnpth.so.0* %_libdir/libnpth.so.0*
%files devel %files devel
%defattr(-,root,root)
%license COPYING.LIB %license COPYING.LIB
%doc AUTHORS NEWS ChangeLog README %doc AUTHORS NEWS ChangeLog README
%_bindir/npth-config %_bindir/npth-config