90 lines
3.6 KiB
RPMSpec
90 lines
3.6 KiB
RPMSpec
Name: libpthread-stubs
|
|
Version: 0.5
|
|
Release: 1mamba
|
|
Summary: This library provides weak aliases for pthread functions not provided in libc
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://xcb.freedesktop.org/
|
|
Source: http://xcb.freedesktop.org/dist/libpthread-stubs-%{version}.tar.xz
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
This library provides weak aliases for pthread functions not provided in libc or otherwise available by default.
|
|
Libraries like libxcb rely on pthread stubs to use pthreads optionally, becoming thread-safe when linked to libpthread, while avoiding any performance hit when running single-threaded. libpthread-stubs supports this behavior even on platforms which do not supply all the necessary pthread stubs.
|
|
On platforms which already supply all the necessary pthread stubs, this package ships only the pkg-config file pthread-stubs.pc, to allow libraries to unconditionally express a dependency on pthread-stubs and still obtain correct behavior.
|
|
|
|
%package devel
|
|
Summary: Devel package for %{name}
|
|
Group: Development/Libraries
|
|
Provides: %{name}
|
|
Obsoletes: %{name}
|
|
|
|
%description devel
|
|
This library provides weak aliases for pthread functions not provided in libc or otherwise available by default.
|
|
Libraries like libxcb rely on pthread stubs to use pthreads optionally, becoming thread-safe when linked to libpthread, while avoiding any performance hit when running single-threaded. libpthread-stubs supports this behavior even on platforms which do not supply all the necessary pthread stubs.
|
|
On platforms which already supply all the necessary pthread stubs, this package ships only the pkg-config file pthread-stubs.pc, to allow libraries to unconditionally express a dependency on pthread-stubs and still obtain correct behavior.
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
#% debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%posttrans devel
|
|
if [ $1 -ge 1 ]; then
|
|
sed -i "s|%{_libdir}/libpthread-stubs.la||" %{_libdir}/*.la
|
|
fi
|
|
:
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%doc COPYING README
|
|
|
|
%changelog
|
|
* Tue Aug 15 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5-1mamba
|
|
- update to 0.5
|
|
|
|
* Mon Apr 10 2017 Automatic Build System <autodist@mambasoft.it> 0.4-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sun Jan 19 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-3mamba
|
|
- posttrans: remove references to libpthread-stubs.la in %{_libdir}/*.la files
|
|
|
|
* Fri Jan 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-2mamba
|
|
- libpthread-strubs-devel: don't require libpthread-stubs
|
|
|
|
* Sat May 08 2010 Automatic Build System <autodist@mambasoft.it> 0.3-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sat Oct 10 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2-2mamba
|
|
- devel package: don't obsolete main package
|
|
|
|
* Tue Sep 29 2009 Automatic Build System <autodist@mambasoft.it> 0.2-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sat Jun 21 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1-3mamba
|
|
- correct obsolete for libpthread-stubs
|
|
|
|
* Fri Jun 20 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1-2mamba
|
|
- specfile updated
|
|
- removed libpthread-stubs package and obsoleted by libpthread-stubs-devel
|
|
|
|
* Wed Feb 07 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1-1qilnx
|
|
- package created by autospec
|