commit 32a77c28fedeaa6336f91a4ad4f3f97e8e264a6b Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:10:00 2019 -0400 Package init diff --git a/npth-1.5.tar.bz2 b/npth-1.5.tar.bz2 new file mode 100644 index 0000000..0c33ce6 Binary files /dev/null and b/npth-1.5.tar.bz2 differ diff --git a/npth.spec b/npth.spec new file mode 100644 index 0000000..c2f87f0 --- /dev/null +++ b/npth.spec @@ -0,0 +1,59 @@ +Name: npth +Version: 1.5 +Release: 7 +Summary: The New GNU Portable Threads library +License: LGPLv2+ +URL: http://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git +Source: https://gnupg.org/ftp/gcrypt/npth/%{name}-%{version}.tar.bz2 + +BuildRequires: make gcc git + +%description +The NPth package contains a very portable POSIX/ANSI-C based +library for Unix platforms which provides non-preemptive +priority-based scheduling for multiple threads of execution +(multithreading) inside event-driven applications. All threads +run in the same address space of the server application, but +each thread has its own individual program-counter, run-time +stack, signal mask and errno variable. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup -n %{name}-%{version} -p1 -Sgit + +%build +%configure --disable-static +%make_build + +%install +%make_install + +find %{buildroot} -name '*.la' -delete -print + +%check +make check + +%post +%ldconfig_scriptlets + +%files +%license COPYING.LIB +%{_libdir}/lib%{name}.so.* + +%files devel +%doc AUTHORS ChangeLog NEWS README +%{_bindir}/%{name}-config +%{_libdir}/lib%{name}.so +%{_includedir}/%{name}.h +%{_datadir}/aclocal/%{name}.m4 + +%changelog +* Tue Aug 13 2019 openEuler Buildteam - 1.5-7 +- Package init