2024-01-06 05:27:49 +01:00
|
|
|
Name: libpth
|
|
|
|
Version: 2.0.7
|
2024-01-06 05:27:50 +01:00
|
|
|
Release: 4mamba
|
2024-01-06 05:27:49 +01:00
|
|
|
Summary: GNU Pth - The GNU Portable Threads Library
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.gnu.org/software/pth/
|
|
|
|
Source: ftp://ftp.gnu.org/gnu/pth/pth-%{version}.tar.gz
|
|
|
|
License: GPL
|
2024-01-06 05:27:50 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: ldconfig
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 05:27:49 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%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 (aka ``multithreading'') inside event-driven 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.
|
|
|
|
|
|
|
|
The thread scheduling itself is done in a cooperative way, i.e., the threads are managed by a priority- and event-based non-preemptive scheduler.
|
|
|
|
The intention is that this way one can achieve better portability and run-time performance than with preemptive scheduling.
|
|
|
|
The event facility allows threads to wait until various types of events occur, including pending I/O on filedescriptors, asynchronous signals, elapsed timers, pending I/O on message ports, thread and process termination, and even customized callback functions.
|
|
|
|
Additionally Pth provides an optional emulation API for POSIX.1c threads ("Pthreads") which can be used for backward compatibility to existing multithreaded applications.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description 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 (aka ``multithreading'') inside event-driven 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.
|
|
|
|
|
|
|
|
The thread scheduling itself is done in a cooperative way, i.e., the threads are managed by a priority- and event-based non-preemptive scheduler.
|
|
|
|
The intention is that this way one can achieve better portability and run-time performance than with preemptive scheduling.
|
|
|
|
The event facility allows threads to wait until various types of events occur, including pending I/O on filedescriptors, asynchronous signals, elapsed timers, pending I/O on message ports, thread and process termination, and even customized callback functions.
|
|
|
|
Additionally Pth provides an optional emulation API for POSIX.1c threads ("Pthreads") which can be used for backward compatibility to existing multithreaded applications.
|
|
|
|
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
2024-01-06 05:27:50 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 05:27:49 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n pth-%{version}
|
2024-01-06 05:27:50 +01:00
|
|
|
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
|
2024-01-06 05:27:49 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2024-01-06 05:27:50 +01:00
|
|
|
|
2024-01-06 05:27:49 +01:00
|
|
|
%make -j1
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libpth.so.*
|
2024-01-06 05:27:50 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
#ChangeLog NEWS README THANKS
|
2024-01-06 05:27:49 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/pth-config
|
|
|
|
%{_datadir}/aclocal/pth.m4
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_libdir}/*.la
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_mandir}/man1/pth-config.*
|
|
|
|
%{_mandir}/man3/pth.*
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 05:27:50 +01:00
|
|
|
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.7-4mamba
|
|
|
|
- rebuilt with debug package
|
|
|
|
|
2024-01-06 05:27:49 +01:00
|
|
|
* Fri Sep 06 2013 Automatic Build System <autodist@mambasoft.it> 2.0.7-3mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Mon Dec 03 2007 Aleph0 <aleph0@openmamba.org> 2.0.7-2mamba
|
|
|
|
- specfile updated
|
|
|
|
|
|
|
|
* Fri Jan 19 2007 Davide Madrisan <davide.madrisan@qilinux.it> 2.0.7-1qilnx
|
|
|
|
- update to version 2.0.7 by autospec
|
|
|
|
- man pages moved to the devel package
|
|
|
|
- modified package URL
|
|
|
|
|
|
|
|
* Tue Oct 12 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-1qilnx
|
|
|
|
- package created by autospec
|