Mageia Bugzilla – Attachment 4621 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]
qttools5.spec patch to build and package QCH doc files
qttools5.spec.patch (text/plain), 1.47 KB, created by
Oleg Bosis
on 2013-12-15 13:40:30 CET
(
hide
)
Description:
qttools5.spec patch to build and package QCH doc files
Filename:
MIME Type:
Creator:
Oleg Bosis
Created:
2013-12-15 13:40:30 CET
Size:
1.47 KB
patch
obsolete
>--- qttools5.spec.orig 2013-12-14 10:09:48.000000000 +0400 >+++ qttools5.spec 2013-12-14 19:17:53.628812176 +0400 >@@ -1,3 +1,5 @@ >+%bcond_without docs >+ > %define snapshot 0 > %define date 20130523 > >@@ -43,6 +45,12 @@ > BuildRequires: qt5gui-private-devel > BuildRequires: qt5dbus-private-devel > BuildRequires: sed >+ >+%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 >@@ -85,6 +93,20 @@ > %{_qt5_examplesdir}/assistant > > #------------------------------------------------------------------------------ >+%if %{with docs} >+%package docs >+Summary: Qt%{qtmajor} APIs and tools docs >+Group: Documentation >+Requires: %{name}-assistant >+BuildArch: noarch >+ >+%description docs >+Documentation for APIs and tools in QtTools5 package for use with Qt Assistant. >+ >+%files docs >+%{_qt5_docdir}/* >+%endif >+#------------------------------------------------------------------------------ > > %package designer > Summary: %{name} Visual Design Tool >@@ -317,6 +339,9 @@ > > %make > >+%if %{with docs} >+make docs >+%endif > #------------------------------------------------------------------------------ > > %install >@@ -344,7 +369,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 > * Sat Dec 14 2013 fwang <fwang> 5.2.0-2.mga4
--- qttools5.spec.orig 2013-12-14 10:09:48.000000000 +0400 +++ qttools5.spec 2013-12-14 19:17:53.628812176 +0400 @@ -1,3 +1,5 @@ +%bcond_without docs + %define snapshot 0 %define date 20130523 @@ -43,6 +45,12 @@ BuildRequires: qt5gui-private-devel BuildRequires: qt5dbus-private-devel BuildRequires: sed + +%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 @@ -85,6 +93,20 @@ %{_qt5_examplesdir}/assistant #------------------------------------------------------------------------------ +%if %{with docs} +%package docs +Summary: Qt%{qtmajor} APIs and tools docs +Group: Documentation +Requires: %{name}-assistant +BuildArch: noarch + +%description docs +Documentation for APIs and tools in QtTools5 package for use with Qt Assistant. + +%files docs +%{_qt5_docdir}/* +%endif +#------------------------------------------------------------------------------ %package designer Summary: %{name} Visual Design Tool @@ -317,6 +339,9 @@ %make +%if %{with docs} +make docs +%endif #------------------------------------------------------------------------------ %install @@ -344,7 +369,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 * Sat Dec 14 2013 fwang <fwang> 5.2.0-2.mga4
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 9812
:
4619
|
4620
| 4621