From 49b43f882fb0c30504aae8f23353acefc5d0f9b7eae33e73b445a02064cdc3a3 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 12 Jun 2012 15:20:32 +0000 Subject: [PATCH] Accepting request 124702 from home:jengelh:dev OBS-URL: https://build.opensuse.org/request/show/124702 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/npth?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + npth-0.90+git21.tar.xz | 3 ++ npth.changes | 4 ++ npth.spec | 91 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 122 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 npth-0.90+git21.tar.xz create mode 100644 npth.changes create mode 100644 npth.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/npth-0.90+git21.tar.xz b/npth-0.90+git21.tar.xz new file mode 100644 index 0000000..5774707 --- /dev/null +++ b/npth-0.90+git21.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9f6938bb22a422ced23dfb2538e50bf48cde538272ae8c71ff13ea196105462 +size 182492 diff --git a/npth.changes b/npth.changes new file mode 100644 index 0000000..a445263 --- /dev/null +++ b/npth.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue May 29 09:15:53 UTC 2012 - jengelh@inai.de + +- Initial package for build.opensuse.org diff --git a/npth.spec b/npth.spec new file mode 100644 index 0000000..5daab16 --- /dev/null +++ b/npth.spec @@ -0,0 +1,91 @@ +# +# 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 +Version: 0.90+git21 +Release: 0 +URL: http://gnupg.org/ +License: LGPL-3.0+ or GPL-2.0+ +Group: Development/Libraries/C and C++ + +#DL-URL: ftp://ftp.gnupg.org/gcrypt/npth/npth-%version.tar.bz2 +#Git-Clone: git://git.gnupg.org/npth +Source: %name-%version.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf >= 2.67, automake >= 1.11 +BuildRequires: libtool >= 2.2.6 +BuildRequires: xz + +%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 -qn %name + +%build +if [ ! -e configure ]; then + autoreconf -fi; +fi; +%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