Initialize for npth

This commit is contained in:
zyppe 2024-02-28 21:50:49 +08:00
commit de42f90ceb
6 changed files with 240 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
npth-1.5.tar.bz2

1
.npth.metadata Normal file
View file

@ -0,0 +1 @@
1a213629f2fc578bf13ad287ae174a5a2e1f0048544727a3389ed6f555f0b7d8 npth-1.5.tar.bz2

BIN
npth-1.5.tar.bz2.sig Normal file

Binary file not shown.

41
npth.changes Normal file
View file

@ -0,0 +1,41 @@
* Thu Feb 22 2018 fvogt@suse.com
- Use %%license (boo#1082318)
* Sun Jun 4 2017 astieger@suse.com
- update to 1.5:
* Fix the busy waiting emulation of pthread_mutex_timedlock for
Unices lacking that function
* Tue May 16 2017 astieger@suse.com
- update to 1.4:
* fixes for platforms other than GNU/Linux
* New function npth_is_protected to help debugging.
* Change license from LGPLv3+/GPLv2+ to LGPLv2+.
- run tests
- update signing keyring
- package license text and other information
* Thu Dec 1 2016 astieger@suse.com
- update to 1.3:
* Bypass npth_protect/npth_unprotect iff the library has not yet
been initialized.
* Improve detection of clock_gettime
- use reproducible build timestamp
* Sat Apr 11 2015 astieger@suse.com
- npth 1.2:
* Fix possible clobbering of ERRNO.
* Sun Nov 2 2014 andreas.stieger@gmx.de
- npth 1.1:
* fixes for platforms other than GNU/Linux
* Sun Sep 21 2014 andreas.stieger@gmx.de
- npth 1.0:
* improvements to the build system
* restore sigmask at fork
- spec file cleanup:
* gpg-offline covered by source_validator
* use source URLs
* Wed Nov 28 2012 sbrabec@suse.cz
- Verify GPG signature.
* Tue Sep 4 2012 jengelh@inai.de
- Update to new upstream release 0.91
* npth_init does now return an error on failure.
* Provide a pselect emulation for OpenBSD et al.
* Tue May 29 2012 jengelh@inai.de
- Initial package for build.opensuse.org

110
npth.keyring Normal file
View file

@ -0,0 +1,110 @@
https://www.gnupg.org/signature_key.html
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBE0ti4EBCACqGtKlX9jI/enhlBdy2cyQP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QyL8iNu2mfarn9Mr28ut5BQmp0CnNEJ6hl0Cs7l2xagWFtlEK2II1
44vK3fG0J1dlcm5lciBLb2NoIChnbnVwZyBzaWcpIDxkZDlqbkBnbnUub3JnPohh
BBMRAgAhAheABQkOFIf9BQJBvGheBgsJCAcDAgMVAgMDFgIBAh4BAAoJEGi3q4lX
VI3NBJMAn01313ag0tgjrGUZtDlKYbmNIeMeAJ0UpVsjxpylBcSjsPE8MAki7Hb2
Rw==
=iaRC
-----END PGP PUBLIC KEY BLOCK-----

87
npth.spec Normal file
View file

@ -0,0 +1,87 @@
#
# spec file for package npth
#
# Copyright (c) 2022-2023 ZhuningOS
#
%define lname libnpth0
Name: npth
Version: 1.5
Release: 2.11
Summary: New GNU Portable Threads library
License: LGPL-2.0+
Group: Development/Libraries/C and C++
Url: http://gnupg.org/
#DL-URL: ftp://ftp.gnupg.org/gcrypt/npth/
#Git-Clone: git://git.gnupg.org/npth
Source: ftp://ftp.gnupg.org/gcrypt/npth/%name-%version.tar.bz2
Source2: ftp://ftp.gnupg.org/gcrypt/npth/%name-%version.tar.bz2.sig
# https://www.gnupg.org/signature_key.html
Source4: %name.keyring
Source99: %name.changes
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.
%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
%setup -q
%build
date=$(date -u +%%Y-%%m-%%dT%%H:%%M+0000 -r %SOURCE99)
%configure \
--enable-build-timestamp="$date"
make %{?_smp_mflags}
%install
b="%buildroot"
%make_install
find "%buildroot" -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%license COPYING.LIB
%doc AUTHORS NEWS ChangeLog README
%_libdir/libnpth.so.0*
%files devel
%defattr(-,root,root)
%license COPYING.LIB
%doc AUTHORS NEWS ChangeLog README
%_bindir/npth-config
%_includedir/npth.h
%_libdir/libnpth.so
%_datadir/aclocal
%changelog