diff --git a/npth-1.2.tar.bz2 b/npth-1.2.tar.bz2 deleted file mode 100644 index af70e8c..0000000 --- a/npth-1.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ddbdddb2cf49a4723f9d1ad6563c480d6760dcb63cb7726b8fc3bc2e1b6c08a -size 298735 diff --git a/npth-1.2.tar.bz2.sig b/npth-1.2.tar.bz2.sig deleted file mode 100644 index a33091d..0000000 Binary files a/npth-1.2.tar.bz2.sig and /dev/null differ diff --git a/npth-1.3.tar.bz2 b/npth-1.3.tar.bz2 new file mode 100644 index 0000000..7baa82c --- /dev/null +++ b/npth-1.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bca81940436aed0734eb8d0ff8b179e04cc8c087f5625204419f5f45d736a82a +size 295998 diff --git a/npth-1.3.tar.bz2.sig b/npth-1.3.tar.bz2.sig new file mode 100644 index 0000000..78510bf Binary files /dev/null and b/npth-1.3.tar.bz2.sig differ diff --git a/npth.changes b/npth.changes index 4d3dcfa..6146a92 100644 --- a/npth.changes +++ b/npth.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Dec 1 16:22:27 UTC 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 19:12:44 UTC 2015 - astieger@suse.com diff --git a/npth.spec b/npth.spec index f7c35e5..2289228 100644 --- a/npth.spec +++ b/npth.spec @@ -1,7 +1,7 @@ # # spec file for package npth # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,20 @@ # -Name: npth %define lname libnpth0 -Version: 1.2 +Name: npth +Version: 1.3 Release: 0 Summary: New GNU Portable Threads library License: LGPL-3.0+ or GPL-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 -Source4: %name.keyring +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 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -38,11 +38,11 @@ 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 +%package -n %{lname} Summary: New GNU Portable Threads library Group: System/Libraries -%description -n %lname +%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 @@ -51,7 +51,7 @@ 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 +Requires: %{lname} = %{version} %description devel nPth is a non-preemptive threads implementation using an API very @@ -63,27 +63,28 @@ allows the use of libraries which are not compatible to GNU Pth. %setup -q %build -%configure +date=$(date -u +%%Y-%%m-%%dT%%H:%%M+0000 -r %{SOURCE99}) +%configure \ + --enable-build-timestamp=$date make %{?_smp_mflags}; %install -b="%buildroot"; +b="%{buildroot}"; make install DESTDIR="$b"; -rm -f "$b/%_libdir"/*.la; +find %{buildroot} -type f -name "*.la" -delete -print -%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) -%_libdir/libnpth.so.0* +%{_libdir}/libnpth.so.0* %files devel %defattr(-,root,root) -%_bindir/npth-config -%_includedir/npth.h -%_libdir/libnpth.so -%_datadir/aclocal +%{_bindir}/npth-config +%{_includedir}/npth.h +%{_libdir}/libnpth.so +%{_datadir}/aclocal %changelog