Jan Engelhardt 2024-02-26 12:03:12 +00:00 committed by Git OBS Bridge
parent a3570fd145
commit 21fa27aaa8

View File

@ -26,11 +26,11 @@ Group: Development/Libraries/C and C++
URL: https://gnupg.org/software/npth/ URL: https://gnupg.org/software/npth/
#Git-Clone: git://git.gnupg.org/npth #Git-Clone: git://git.gnupg.org/npth
#DL-URL: ftp://ftp.gnupg.org/gcrypt/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: https://gnupg.org/signature_key.asc#/%{name}.keyring Source4: https://gnupg.org/signature_key.asc#/%name.keyring
Source99: %{name}.changes Source99: %name.changes
%description %description
nPth is a non-preemptive threads implementation using an API nPth is a non-preemptive threads implementation using an API
@ -38,11 +38,11 @@ similar to the one in GNU Pth. In contrast to Pth, nPth is
based on the system's standard threads implementation. Thus, nPth based on the system's standard threads implementation. Thus, nPth
allows the use of libraries which are not compatible to GNU Pth. allows the use of libraries which are not compatible to GNU Pth.
%package -n %{lname} %package -n %lname
Summary: GNU Portable Threads library Summary: GNU Portable Threads library
Group: System/Libraries Group: System/Libraries
%description -n %{lname} %description -n %lname
nPth is a non-preemptive threads implementation using an API nPth is a non-preemptive threads implementation using an API
similar to the one in GNU Pth. In contrast to Pth, nPth is similar to the one in GNU Pth. In contrast to Pth, nPth is
based on the system's standard threads implementation. Thus, nPth based on the system's standard threads implementation. Thus, nPth
@ -51,7 +51,7 @@ allows the use of libraries which are not compatible to GNU Pth.
%package devel %package devel
Summary: Development files for the GNU New Portable Threads library Summary: Development files for the GNU New Portable Threads library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{lname} = %{version} Requires: %lname = %version
%description devel %description devel
nPth is a non-preemptive threads implementation using an API nPth is a non-preemptive threads implementation using an API
@ -63,30 +63,30 @@ This subpackage contains the headers for npth.
%autosetup -p1 %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_build %make_build
%install %install
%make_install %make_install
find %{buildroot} -type f -name "*.la" -delete -print find %buildroot -type f -name "*.la" -delete -print
%check %check
%make_build 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
%{_libdir}/lib%{name}.so.* %_libdir/lib%name.so.*
%files devel %files devel
%license COPYING.LIB %license COPYING.LIB
%doc AUTHORS ChangeLog NEWS README %doc AUTHORS ChangeLog NEWS README
%{_libdir}/lib%{name}.so %_libdir/lib%name.so
%{_libdir}/pkgconfig/%{name}.pc %_libdir/pkgconfig/%name.pc
%{_includedir}/%{name}.h %_includedir/%name.h
%{_datadir}/aclocal/%{name}.m4 %_datadir/aclocal/%name.m4
%changelog %changelog