[packages/pth] - same-arch dependencies, more verbose files

qboosh qboosh at pld-linux.org
Tue Dec 1 19:21:26 CET 2026


commit 85bd2bf2339e46f83d7c0dc1718df9e7cc2aea1b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 1 19:21:29 2026 +0100

    - same-arch dependencies, more verbose files

 pth.spec | 32 ++++++++++++++++++--------------
 1 file changed, 18 insertions(+), 14 deletions(-)
---
diff --git a/pth.spec b/pth.spec
index 616672c..643a3e8 100644
--- a/pth.spec
+++ b/pth.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
-%bcond_without	tests	# don't perform "make test"
-%bcond_with	pthread	# build pthread library (POSIX.1c threading API of GNU Pth)
+%bcond_without	tests	# unit tests
+%bcond_with	pthread	# additional pthread library (POSIX.1c threading API of GNU Pth)
 #
 Summary:	The GNU portable threads
 Summary(pl.UTF-8):	Przenośne wątki GNU
@@ -48,7 +48,7 @@ własny licznik instrukcji, stos, maski sygnałów i zmienną errno.
 Summary:	Header files and development documentation for pth
 Summary(pl.UTF-8):	Pliki nagłówkowe i dokumentacja do pth
 Group:		Development/Libraries
-Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	%{name}%{?_isa} = %{epoch}:%{version}-%{release}
 
 %description devel
 Header files and development documentation for pth.
@@ -60,7 +60,7 @@ Pliki nagłówkowe i dokumentacja programisty do pth.
 Summary:	Static version of the GNU portable threads library
 Summary(pl.UTF-8):	Statyczna wersja biblioteki pth
 Group:		Development/Libraries
-Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
+Requires:	%{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
 
 %description static
 Static version of the GNU portable threads library.
@@ -76,7 +76,7 @@ Statyczna wersja biblioteki przenośnych wątków GNU.
 %patch -P3 -p1
 # no aclocal call: aclocal.m4 contains only local macros, libtool.m4 is included from configure.in
 cp -f /usr/share/automake/config.* %{_aclocaldir}/libtool.m4 .
-mv aclocal.m4 local.m4
+%{__mv} aclocal.m4 local.m4
 
 %build
 %{__libtoolize}
@@ -88,8 +88,12 @@ mv aclocal.m4 local.m4
 	--enable-optimize
 
 %{__make} pth_p.h
+
 %{__make}
-%{?with_tests:%{__make} test}
+
+%if %{with tests}
+%{__make} test
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -108,19 +112,19 @@ rm -rf $RPM_BUILD_ROOT
 # COPYING contains not only LGPL text
 %doc ANNOUNCE AUTHORS COPYING ChangeLog HISTORY NEWS README SUPPORT TESTS THANKS USERS
 %{_libdir}/libpth.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpth.so.20
+%ghost %{_libdir}/libpth.so.20
 
 %files devel
 %defattr(644,root,root,755)
 %doc HACKING
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/libpth.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_bindir}/pth-config
+%{_libdir}/libpth.so
+%{_libdir}/libpth.la
+%{_includedir}/pth.h
 %{_aclocaldir}/pth.m4
-%{_includedir}/*.h
-%{_mandir}/man3/*
-%{_mandir}/man1/*
+%{_mandir}/man1/pth-config.1*
+%{_mandir}/man3/pth.3*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libpth.a
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pth.git/commitdiff/85bd2bf2339e46f83d7c0dc1718df9e7cc2aea1b



More information about the pld-cvs-commit mailing list