OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/pth?expand=0&rev=19
118 lines
3.7 KiB
RPMSpec
118 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package pth
|
|
#
|
|
# Copyright (c) 2015 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
|
|
# 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: pth
|
|
Version: 2.0.7
|
|
Release: 0
|
|
Summary: GNU Portable Threads
|
|
License: LGPL-2.1+
|
|
Group: Development/Libraries/C and C++
|
|
Url: https://www.gnu.org/software/pth/
|
|
Source0: https://ftp.gnu.org/gnu/pth/%{name}-%{version}.tar.gz
|
|
Source1: https://ftp.gnu.org/gnu/pth/%{name}-%{version}.tar.gz.sig
|
|
Source2: %{name}.keyring
|
|
Source3: baselibs.conf
|
|
Patch0: %{name}-%{version}.diff
|
|
Patch1: pth_sched.patch
|
|
BuildRequires: autoconf
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Pth is 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 server applications. All
|
|
threads run in the same address space of the server application, but
|
|
each thread has it's own individual program-counter, run-time stack,
|
|
signal mask and errno variable.
|
|
|
|
%package -n libpth20
|
|
%define library_name libpth20
|
|
%define debug_package_requires %{library_name} = %{version}-%{release}
|
|
Summary: GNU Portable Threads
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n libpth20
|
|
Pth is 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 server applications. All
|
|
threads run in the same address space of the server application, but
|
|
each thread has it's own individual program-counter, run-time stack,
|
|
signal mask and errno variable.
|
|
|
|
%package -n libpth-devel
|
|
Summary: GNU Portable Threads
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{library_name} = %{version}
|
|
# pth-devel was last used in openSUSE 11.1
|
|
Provides: pth-devel = %{version}
|
|
Obsoletes: pth-devel < %{version}
|
|
|
|
%description -n libpth-devel
|
|
Pth is 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 server applications. All
|
|
threads run in the same address space of the server application, but
|
|
each thread has it's own individual program-counter, run-time stack,
|
|
signal mask and errno variable.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
%patch1 -p1
|
|
|
|
%build
|
|
autoconf
|
|
|
|
%configure \
|
|
--disable-static \
|
|
--with-pic \
|
|
--enable-optimize=yes \
|
|
--enable-pthread=no \
|
|
--with-gnu-ld
|
|
make %{?_smp_mflags} pth_p.h
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
make %{?_smp_mflags} test
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install --jobs 1
|
|
#empty dependency_libs
|
|
rm -f %{buildroot}%{_libdir}/libpth.la
|
|
|
|
%post -n %{library_name} -p /sbin/ldconfig
|
|
|
|
%postun -n %{library_name} -p /sbin/ldconfig
|
|
|
|
%files -n libpth20
|
|
%defattr(-,root,root)
|
|
%doc ANNOUNCE AUTHORS COPYING HACKING HISTORY NEWS PORTING README SUPPORT TESTS THANKS USERS
|
|
%doc %{_mandir}/man1/*
|
|
%{_libdir}/libpth*.so.*
|
|
|
|
%files -n libpth-devel
|
|
%defattr(-,root,root)
|
|
%{_bindir}/pth-config
|
|
%{_includedir}/pth.h
|
|
%dir %{_datadir}/aclocal
|
|
%{_datadir}/aclocal/pth.m4
|
|
%{_libdir}/libpth*.so
|
|
%doc %{_mandir}/man3/*
|
|
|
|
%changelog
|