[packages/qt5-qtbase] - set QMAKE_LFLAGS to rpmldflags in gcc-base.conf - subpackage doc - generation of documentation req
witekfl
witekfl at pld-linux.org
Mon Dec 30 17:52:30 CET 2013
commit b18d64cc2985f2740d0ca622cd5101ca73328821
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Mon Dec 30 17:48:19 2013 +0100
- set QMAKE_LFLAGS to rpmldflags in gcc-base.conf
- subpackage doc
- generation of documentation requires qt5-qttools. Let it fail silently
if qt5-qttols is not installed.
qt5-qtbase.spec | 28 +++++++++++++++++++++++-----
1 file changed, 23 insertions(+), 5 deletions(-)
---
diff --git a/qt5-qtbase.spec b/qt5-qtbase.spec
index c7acac9..a1466dd 100644
--- a/qt5-qtbase.spec
+++ b/qt5-qtbase.spec
@@ -139,12 +139,20 @@ Requires: %{name} = %{version}-%{release}
%description devel
Qt5 - development files.
+%package doc
+Summary: The Qt5 application framework base - docs
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+Qt5 base - documentation.
+
%package examples
Summary: Qt5 examples
Group: X11/Development/Libraries
%description examples
-Qt5 - examples.
+Qt5 base - examples.
%prep
%setup -q -n %{orgname}-opensource-src-%{version}
@@ -178,6 +186,11 @@ Qt5 - examples.
s|^QMAKE_STRIP.*=.*|QMAKE_STRIP =|;
' mkspecs/common/linux.conf
+# rpmldflags
+%{__sed} -i -e '
+ s|^QMAKE_LFLAGS .*=.*|QMAKE_LFLAGS\t\t+= %{rpmldflags}|;
+ ' mkspecs/common/gcc-base.conf
+
%build
# pass OPTFLAGS to build qmake itself with optimization
export OPTFLAGS="%{rpmcflags}"
@@ -292,6 +305,8 @@ OPT=" \
./configure $COMMONOPT $OPT
%{__make}
+# make docs requires qt5-qttools
+%{__make} docs || :
#%{__make} \
# sub-tools-all-ordered \
# sub-demos-all-ordered \
@@ -307,8 +322,9 @@ install -d $RPM_BUILD_ROOT{/etc/{env.d,qt5},%{_bindir},%{_desktopdir},%{_pixmaps
%{__make} install \
INSTALL_ROOT=$RPM_BUILD_ROOT
-# for qt-creator sth is messed up in the Makefile, nothing for make install
-#install bin/qdoc3 $RPM_BUILD_ROOT%{_qtdir}/bin/qdoc3
+# not sure whether || : is needed
+%{__make} install_docs \
+ INSTALL_ROOT=$RPM_BUILD_ROOT || :
# kill -L/inside/builddir from *.la and *.pc (bug #77152)
%{__sed} -i -e "s,-L$PWD/lib,,g" $RPM_BUILD_ROOT%{_libdir}/*.{la,prl}
@@ -477,8 +493,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/cmake/Qt5Widgets
%{_libdir}/cmake/Qt5Xml
%{_pkgconfigdir}/*.pc
-#%{_examplesdir}/qt5
-%{_docdir}/qt5-doc
%{_qtdir}/mkspecs
+%files doc
+%defattr(644,root,root,755)
+%{_docdir}/qt5-doc
+
%files examples -f examples.files
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/qt5-qtbase.git/commitdiff/b18d64cc2985f2740d0ca622cd5101ca73328821
More information about the pld-cvs-commit
mailing list