[packages/qt5-qtnetworkauth] - don't package compiled examples in noarch subpackage

qboosh qboosh at pld-linux.org
Sun Apr 18 07:36:29 CEST 2021


commit 124b0f7fbcb020044bb0b8e93c8f4516fe78dee8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 18 07:36:22 2021 +0200

    - don't package compiled examples in noarch subpackage

 qt5-qtnetworkauth.spec | 31 +++++--------------------------
 1 file changed, 5 insertions(+), 26 deletions(-)
---
diff --git a/qt5-qtnetworkauth.spec b/qt5-qtnetworkauth.spec
index 3af91c8..1fd9d78 100644
--- a/qt5-qtnetworkauth.spec
+++ b/qt5-qtnetworkauth.spec
@@ -15,7 +15,7 @@ Summary:	The Qt5 Network Auth library
 Summary(pl.UTF-8):	Biblioteka Qt5 Network Auth
 Name:		qt5-%{orgname}
 Version:	5.15.2
-Release:	1
+Release:	2
 License:	GPL v3 or commercial
 Group:		X11/Libraries
 Source0:	https://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
@@ -146,30 +146,8 @@ rm -rf $RPM_BUILD_ROOT
 # actually drop *.la, follow policy of not packaging them when *.pc exist
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
 
-# Prepare some files list
-ifecho() {
-	r="$RPM_BUILD_ROOT$2"
-	if [ -d "$r" ]; then
-		echo "%%dir $2" >> $1.files
-	elif [ -x "$r" ] ; then
-		echo "%%attr(755,root,root) $2" >> $1.files
-	elif [ -f "$r" ]; then
-		echo "$2" >> $1.files
-	else
-		echo "Error generation $1 files list!"
-		echo "$r: no such file or directory!"
-		return 1
-	fi
-}
-ifecho_tree() {
-	ifecho $1 $2
-	for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do
-		ifecho $1 $2/$f
-	done
-}
-
-echo "%defattr(644,root,root,755)" > examples.files
-ifecho_tree examples %{_examplesdir}/qt5/oauth
+%{__rm} $RPM_BUILD_ROOT%{_examplesdir}/qt5/oauth/redditclient/redditclient
+%{__rm} $RPM_BUILD_ROOT%{_examplesdir}/qt5/oauth/twittertimeline/twittertimeline
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -203,7 +181,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_docdir}/qt5-doc/qtnetworkauth.qch
 %endif
 
-%files examples -f examples.files
+%files examples
 %defattr(644,root,root,755)
 # XXX: dir shared with qt5-qtbase-examples
 %dir %{_examplesdir}/qt5
+%{_examplesdir}/qt5/oauth
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qt5-qtnetworkauth.git/commitdiff/124b0f7fbcb020044bb0b8e93c8f4516fe78dee8



More information about the pld-cvs-commit mailing list