[packages/qt5-qtsvg] - pl, partially cleaned up/unified with other qt5-*

qboosh qboosh at pld-linux.org
Wed Jun 18 22:33:33 CEST 2014

commit 8b69a6c62c481f312fd2fd7637395026c18df25c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jun 18 22:37:31 2014 +0200

    - pl, partially cleaned up/unified with other qt5-*

 qt5-qtsvg.spec | 127 +++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 97 insertions(+), 30 deletions(-)
diff --git a/qt5-qtsvg.spec b/qt5-qtsvg.spec
index 9a8480b..a2f3938 100644
--- a/qt5-qtsvg.spec
+++ b/qt5-qtsvg.spec
@@ -1,8 +1,14 @@
 # TODO:
 # - cleanup
+# Conditional build:
+%bcond_without	qch	# documentation in QCH format
 %define		orgname		qtsvg
-Summary:	The Qt5 Svg
+%define		qtbase_ver	%{version}
+%define		qttools_ver	%{version}
+Summary:	The Qt5 Svg library
+Summary(pl.UTF-8):	Biblioteka Qt5 Svg
 Name:		qt5-%{orgname}
 Version:	5.2.0
 Release:	0.1
@@ -11,49 +17,106 @@ Group:		X11/Libraries
 Source0:	http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
 # Source0-md5:	3f6132475f6edcd7b6cfb57650846185
 URL:		http://qt-project.org/
-BuildRequires:	qt5-qtbase-devel = %{version}
-BuildRequires:	qt5-qttools-devel = %{version}
+BuildRequires:	qt5-qtbase-devel = %{qtbase_ver}
+BuildRequires:	qt5-qttools-devel = %{qttools_ver}
+%if %{with qch}
+BuildRequires:	qt5-assistant >= %{qttools_ver}
+BuildRequires:	qt5-build >= %{qtbase_ver}
+BuildRequires:	qt5-qmake >= %{qtbase_ver}
 BuildRequires:	rpmbuild(macros) >= 1.654
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define		_noautoreqdep	libGL.so.1 libGLU.so.1
-%define		_noautostrip	'.*_debug\\.so*'
 %define		specflags	-fno-strict-aliasing
-%define		_qtdir		%{_libdir}/qt5
+%define		qt5dir		%{_libdir}/qt5
-Qt5 Svg libraries.
+Qt is a cross-platform application and UI framework. Using Qt, you can
+write web-enabled applications once and deploy them across desktop,
+mobile and embedded systems without rewriting the source code.
+This package contains Qt5 Svg library.
+%description -l pl.UTF-8
+Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
+Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
+systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
+Ten pakiet zawiera bibliotekę Qt5 Svg.
+%package -n Qt5Svg
+Summary:	The Qt5 Svg library
+Summary(pl.UTF-8):	Biblioteka Qt5 Svg
+Group:		Libraries
+Requires:	Qt5Core >= %{qtbase_ver}
+Obsoletes:	qt5-qtsvg
-%package devel
-Summary:	The Qt5 Svg - development files
+%description -n Qt5Svg
+Qt5 Svg library provides ...
+%description -n Qt5Svg -l pl.UTF_8
+Biblioteka Qt5 Svg ...
+%package -n Qt5Svg-devel
+Summary:	Qt5 Svg library - development files
+Summary(pl.UTF-8):	Biblioteka Qt5 Svg - pliki programistyczne
 Group:		X11/Development/Libraries
-Requires:	%{name} = %{version}-%{release}
+Requires:	Qt5Core-devel >= %{qtbase_ver}
+Requires:	Qt5Svg = %{version}-%{release}
+Obsoletes:	qt5-qtsvg-devel
+%description -n Qt5Svg-devel
+Qt5 Svg library - development files.
-%description devel
-Qt5 Svg - development files.
+%description -n Qt5Svg-devel -l pl.UTF-8
+Biblioteka Qt5 Svg - pliki programistyczne.
 %package doc
-Summary:	The Qt5 Svg - docs
+Summary:	Qt5 Svg documentation in HTML format
+Summary(pl.UTF-8):	Dokumentacja do biblioteki Qt5 Svg w formacie HTML
 Group:		Documentation
+Requires:	qt5-doc-common >= %{qtbase_ver}
 %if "%{_rpmversion}" >= "5"
 BuildArch:	noarch
 %description doc
-Qt5 Svg - documentation.
+Qt5 Svg documentation in HTML format.
+%description doc -l pl.UTF-8
+Dokumentacja do biblioteki Qt5 Svg w formacie HTML.
+%package doc-qch
+Summary:	Qt5 Svg documentation in QCH format
+Summary(pl.UTF-8):	Dokumentacja do biblioteki Qt5 Svg w formacie QCH
+Group:		Documentation
+Requires:	qt5-doc-common >= %{qtbase_ver}
+%if "%{_rpmversion}" >= "5"
+BuildArch:	noarch
+%description doc-qch
+Qt5 Svg documentation in QCH format.
+%description doc-qch -l pl.UTF-8
+Dokumentacja do biblioteki Qt5 Svg w formacie QCH.
 %package examples
 Summary:	Qt5 Svg examples
+Summary(pl.UTF-8):	Przykłady do biblioteki Qt5 Svg
 Group:		X11/Development/Libraries
 %if "%{_rpmversion}" >= "5"
 BuildArch:	noarch
 %description examples
-Qt5 Svg - examples.
+Qt5 Svg examples.
+%description examples -l pl.UTF-8
+Przykłady do biblioteki Qt5 Svg.
 %setup -q -n %{orgname}-opensource-src-%{version}
@@ -61,16 +124,21 @@ Qt5 Svg - examples.
-%{__make} docs
+%{__make} %{!?with_qch:html_}docs
 %{__make} install \
-%{__make} install_docs \
+%{__make} install_%{!?with_qch:html_}docs \
+# useless symlinks
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?
+# actually drop *.la, follow policy of not packaging them when *.pc exist
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
 # Prepare some files list
 ifecho() {
 	RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null`
@@ -99,28 +167,27 @@ done
-%post		-p /sbin/ldconfig
-%postun		-p /sbin/ldconfig
+%post	-n Qt5Svg -p /sbin/ldconfig
+%postun	-n Qt5Svg -p /sbin/ldconfig
+%files -n Qt5Svg
-%attr(755,root,root) %ghost %{_libdir}/libQt5Svg.so.?
-%attr(755,root,root) %{_libdir}/libQt5Svg.so.*.*
-%attr(755,root,root) %{_qtdir}/plugins
+%attr(755,root,root) %{_libdir}/libQt5Svg.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libQt5Svg.so.5
+%attr(755,root,root) %{qt5dir}/plugins
 %files devel
 %attr(755,root,root) %{_libdir}/libQt5Svg.so
 %files doc
 %files examples -f examples.files

---- gitweb:


More information about the pld-cvs-commit mailing list