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

qboosh qboosh at pld-linux.org
Thu Jun 19 18:39:35 CEST 2014

commit c639f5476ae599661efce4aaab9d519240216bad
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jun 19 18:43:35 2014 +0200

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

 qt5-qtserialport.spec | 135 ++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 104 insertions(+), 31 deletions(-)
diff --git a/qt5-qtserialport.spec b/qt5-qtserialport.spec
index 9b16827..4a8cddc 100644
--- a/qt5-qtserialport.spec
+++ b/qt5-qtserialport.spec
@@ -1,8 +1,14 @@
 # TODO:
 # - cleanup
+# Conditional build:
+%bcond_without	qch	# documentation in QCH format
 %define		orgname		qtserialport
-Summary:	The Qt5 Serialport
+%define		qtbase_ver	%{version}
+%define		qttools_ver	%{version}
+Summary:	The Qt5 SerialPort library
+Summary(pl.UTF-8):	Biblioteka Qt5 SerialPort
 Name:		qt5-%{orgname}
 Version:	5.2.0
 Release:	0.1
@@ -11,49 +17,106 @@ Group:		Libraries
 Source0:	http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
 # Source0-md5:	7b90e0707b698331226e662bd39945e9
 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 Serial Port library.
+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 SerialPort 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 SerialPort.
+%package -n Qt5SerialPort
+Summary:	The Qt5 SerialPort library
+Summary(pl.UTF-8):	Biblioteka Qt5 SerialPort
+Group:		Libraries
+Requires:	Qt5Core >= %{qtbase_ver}
+Obsoletes:	qt5-qtserialport
-%package devel
-Summary:	The Qt5 Serial Port - development files
+%description -n Qt5SerialPort
+Qt5 SerialPort library provides [...]
+%description -n Qt5SerialPort -l pl.UTF_8
+Biblioteka Qt5 SerialPort [...]
+%package -n Qt5SerialPort-devel
+Summary:	Qt5 SerialPort library - development files
+Summary(pl.UTF-8):	Biblioteka Qt5 SerialPort - pliki programistyczne
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
+Requires:	Qt5Core-devel >= %{qtbase_ver}
+Requires:	Qt5SerialPort = %{version}-%{release}
+Obsoletes:	qt5-qtserialport-devel
+%description -n Qt5SerialPort-devel
+Qt5 SerialPort library - development files.
-%description devel
-Qt5 Serial Port - development files.
+%description -n Qt5SerialPort-devel -l pl.UTF-8
+Biblioteka Qt5 SerialPort - pliki programistyczne.
 %package doc
-Summary:	The Qt5 Serial Port - docs
+Summary:	Qt5 SerialPort documentation in HTML format
+Summary(pl.UTF-8):	Dokumentacja do biblioteki Qt5 SerialPort w formacie HTML
 Group:		Documentation
+Requires:	qt5-doc-common >= %{qtbase_ver}
 %if "%{_rpmversion}" >= "5"
 BuildArch:	noarch
 %description doc
-Qt5 Serial Port - documentation.
+Qt5 SerialPort documentation in HTML format.
+%description doc -l pl.UTF-8
+Dokumentacja do biblioteki Qt5 SerialPort w formacie HTML.
+%package doc-qch
+Summary:	Qt5 SerialPort documentation in QCH format
+Summary(pl.UTF-8):	Dokumentacja do biblioteki Qt5 SerialPort w formacie QCH
+Group:		Documentation
+Requires:	qt5-doc-common >= %{qtbase_ver}
+%if "%{_rpmversion}" >= "5"
+BuildArch:	noarch
+%description doc-qch
+Qt5 SerialPort documentation in QCH format.
+%description doc-qch -l pl.UTF-8
+Dokumentacja do biblioteki Qt5 SerialPort w formacie QCH.
 %package examples
-Summary:	Qt5 Serial Port examples
+Summary:	Qt5 SerialPort examples
+Summary(pl.UTF-8):	Przykłady do biblioteki Qt5 SerialPort
 Group:		Development/Libraries
 %if "%{_rpmversion}" >= "5"
 BuildArch:	noarch
 %description examples
-Qt5 Serial Port - examples.
+Qt5 SerialPort examples.
+%description examples -l pl.UTF-8
+Przykłady do biblioteki Qt5 SerialPort.
 %setup -q -n %{orgname}-opensource-src-%{version}
@@ -61,40 +124,50 @@ Qt5 Serial Port - 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
-%post		-p /sbin/ldconfig
-%postun		-p /sbin/ldconfig
+%post	-n Qt5SerialPort -p /sbin/ldconfig
+%postun	-n Qt5SerialPort -p /sbin/ldconfig
+%files -n Qt5SerialPort
-%attr(755,root,root) %ghost %{_libdir}/libQt5SerialPort.so.?
-%attr(755,root,root) %{_libdir}/libQt5SerialPort.so.*.*
-#%attr(755,root,root) %{_qtdir}/plugins
+%attr(755,root,root) %{_libdir}/libQt5SerialPort.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libQt5SerialPort.so.5
+#%attr(755,root,root) %{qt5dir}/plugins
-%files devel
+%files -n Qt5SerialPort-devel
 %attr(755,root,root) %{_libdir}/libQt5SerialPort.so
 %files doc
+%if %{with qch}
+%files doc-qch
 #%files examples -f examples.files

---- gitweb:


More information about the pld-cvs-commit mailing list