Mageia Bugzilla – Attachment 4620 Details for
Bug 9812
qtdoc5 just builds a small subset of the qt API documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
qtscript5.spec patch to build and package QCH doc files
qtscript5.spec.patch (text/plain), 1.46 KB, created by
Oleg Bosis
on 2013-12-15 13:40:06 CET
(
hide
)
Description:
qtscript5.spec patch to build and package QCH doc files
Filename:
MIME Type:
Creator:
Oleg Bosis
Created:
2013-12-15 13:40:06 CET
Size:
1.46 KB
patch
obsolete
>--- qtscript5.spec.old 2013-12-14 10:14:02.000000000 +0400 >+++ qtscript5.spec 2013-12-14 21:24:07.173754343 +0400 >@@ -1,3 +1,5 @@ >+%bcond_without docs >+ > %define snapshot 0 > %define date 20130523 > >@@ -35,6 +37,11 @@ > BuildRequires: qt5core-private-devel > BuildRequires: qt5widgets-private-devel > >+%if %{with docs} >+# This one is required to build QCH-format documentation for APIs and tools in this package set >+BuildRequires: qttools5-assistant >+%endif >+ > #Branch Patchs > > #Trunk Patchs >@@ -48,6 +55,22 @@ > > #------------------------------------------------------------------------------ > >+%if %{with docs} >+%package docs >+Summary: QtScript%{qtmajor} APIs and tools docs >+Group: Documentation >+Requires: qttools5-assistant >+BuildArch: noarch >+ >+%description docs >+Documentation for APIs and tools in QtScript5 package for use with Qt Assistant. >+ >+%files docs >+%{_qt5_docdir}/* >+%endif >+ >+#------------------------------------------------------------------------------ >+ > %package -n %{libqtscripttools} > Summary: Qt%{qtmajor} Component Library > Group: System/Libraries >@@ -207,6 +230,11 @@ > %build > %qmake_qt5 > %make >+ >+%if %{with docs} >+make docs >+%endif >+ > #------------------------------------------------------------------------------ > > %install >@@ -223,6 +251,10 @@ > rm -f %{buildroot}%{_qt5_libdir}/lib*.la > rm -f %{buildroot}%{_qt5_libdir}/lib*.a > >+%if %{with docs} >+mkdir -p %{buildroot}%{_qt5_docdir} >+cp -fr doc/*qch %{buildroot}%{_qt5_docdir}/ >+%endif > > > %changelog
--- qtscript5.spec.old 2013-12-14 10:14:02.000000000 +0400 +++ qtscript5.spec 2013-12-14 21:24:07.173754343 +0400 @@ -1,3 +1,5 @@ +%bcond_without docs + %define snapshot 0 %define date 20130523 @@ -35,6 +37,11 @@ BuildRequires: qt5core-private-devel BuildRequires: qt5widgets-private-devel +%if %{with docs} +# This one is required to build QCH-format documentation for APIs and tools in this package set +BuildRequires: qttools5-assistant +%endif + #Branch Patchs #Trunk Patchs @@ -48,6 +55,22 @@ #------------------------------------------------------------------------------ +%if %{with docs} +%package docs +Summary: QtScript%{qtmajor} APIs and tools docs +Group: Documentation +Requires: qttools5-assistant +BuildArch: noarch + +%description docs +Documentation for APIs and tools in QtScript5 package for use with Qt Assistant. + +%files docs +%{_qt5_docdir}/* +%endif + +#------------------------------------------------------------------------------ + %package -n %{libqtscripttools} Summary: Qt%{qtmajor} Component Library Group: System/Libraries @@ -207,6 +230,11 @@ %build %qmake_qt5 %make + +%if %{with docs} +make docs +%endif + #------------------------------------------------------------------------------ %install @@ -223,6 +251,10 @@ rm -f %{buildroot}%{_qt5_libdir}/lib*.la rm -f %{buildroot}%{_qt5_libdir}/lib*.a +%if %{with docs} +mkdir -p %{buildroot}%{_qt5_docdir} +cp -fr doc/*qch %{buildroot}%{_qt5_docdir}/ +%endif %changelog
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 9812
:
4619
| 4620 |
4621