posttrans: remove references to libpthread-stubs.la in %{_libdir}/*.la files [release 0.3-3mamba;Sun Jan 19 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 05:27:55 +01:00
parent 39618cd999
commit a9cca739a7
2 changed files with 87 additions and 0 deletions

View File

@ -1,2 +1,6 @@
# libpthread-stubs # libpthread-stubs
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.

83
libpthread-stubs.spec Normal file
View File

@ -0,0 +1,83 @@
Name: libpthread-stubs
Version: 0.3
Release: 3mamba
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: http://xcb.freedesktop.org
Source: http://xcb.freedesktop.org/dist/libpthread-stubs-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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 need for development.
%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
* 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