]> git.pld-linux.org Git - packages/qt5-qtdoc.git/blobdiff - qt5-qtdoc.spec
- package -demos
[packages/qt5-qtdoc.git] / qt5-qtdoc.spec
index d9381e6fe786f0a94c67d923cdea4b51feab2596..d5a9adfacc8760e508ad05b62170c7f16845114b 100644 (file)
@@ -1,5 +1,3 @@
-# TODO: qtdemo? (LGPL v2.1+exception/GPL v3 licensed)
-#
 %define                orgname         qtdoc
 %define                qtbase_ver      %{version}
 %define                qttools_ver     %{version}
@@ -12,7 +10,7 @@ License:      FDL v1.3
 Group:         Documentation
 Source0:       http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
 # Source0-md5: 90de2911fa80c7668ec7289d5768e802
-URL:           http://www.qt.io/
+URL:           https://www.qt.io/
 BuildRequires: qt5-assistant >= %{qttools_ver}
 BuildRequires: qt5-build >= %{qtbase_ver}
 BuildRequires: qt5-qmake >= %{qtbase_ver}
@@ -45,6 +43,18 @@ The Qt5 qtdoc documentation module - QCH format.
 %description qch -l pl.UTF-8
 Moduł dokumentacji Qt5 qtdoc - w formacie QCH.
 
+%package demos
+Summary:       The Qt5 qtdoc documentation module - demos
+Summary(pl.UTF-8):     Moduł dokumentacji Qt5 qtdoc - programy demonstracyjne
+License:       BSD or commercial
+Group:         Documentation
+
+%description demos
+The Qt5 qtdoc documentation module - demos.
+
+%description demos -l pl.UTF-8
+Moduł dokumentacji Qt5 qtdoc - programy demonstracyjne.
+
 %prep
 %setup -q -n %{orgname}-everywhere-src-%{version}
 
@@ -55,12 +65,16 @@ qmake-qt5
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} install \
        INSTALL_ROOT=$RPM_BUILD_ROOT
 
 %{__make} install_docs \
        INSTALL_ROOT=$RPM_BUILD_ROOT
 
+# remove compiled binaries, let demos be noarch
+%{__rm} $RPM_BUILD_ROOT%{_examplesdir}/qt5/demos/{calqlatr/calqlatr,clocks/clocks,maroon/maroon,photosurface/photosurface,rssnews/rssnews,samegame/samegame,stocqt/stocqt,tweetsearch/tweetsearch}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -74,3 +88,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_docdir}/qt5-doc/qtcmake.qch
 %{_docdir}/qt5-doc/qtdoc.qch
+
+%files demos
+%defattr(644,root,root,755)
+# XXX: dir shared with qt5-qtbase-examples
+%dir %{_examplesdir}/qt5
+%{_examplesdir}/qt5/demos
This page took 0.105533 seconds and 4 git commands to generate.