rpms/kdepimlibs/devel kdepimlibs.spec,1.25,1.26

Kevin Kofler (kkofler) fedora-extras-commits at redhat.com
Thu Mar 6 03:40:25 UTC 2008


Author: kkofler

Update of /cvs/pkgs/rpms/kdepimlibs/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3441/devel

Modified Files:
	kdepimlibs.spec 
Log Message:
* Thu Mar 06 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.0.2-2
- build apidocs and put them into an -apidocs subpackage (can be turned off)
- BR doxygen, graphviz and qt4-doc when building apidocs


Index: kdepimlibs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kdepimlibs/devel/kdepimlibs.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- kdepimlibs.spec	28 Feb 2008 18:19:19 -0000	1.25
+++ kdepimlibs.spec	6 Mar 2008 03:39:51 -0000	1.26
@@ -1,8 +1,16 @@
+%if 0%{?fedora} > 8
+# set this to 0 to disable -apidocs for a faster build
+%define apidocs 1
+%else
+# don't build apidocs on Fedora < 9 for now, because we don't have the required
+# files from KDE 4 in %{_kde4_docdir}/HTML/en/common due to conflicts with KDE 3
+%define apidocs 0
+%endif
 
 Name: kdepimlibs
 
 Version: 4.0.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: K Desktop Environment 4 - PIM Libraries
 
 License: LGPLv2
@@ -23,6 +31,12 @@
 BuildRequires: openldap-devel
 %{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
 
+%if "%{?apidocs}" == "1"
+BuildRequires: doxygen
+BuildRequires: graphviz
+BuildRequires: qt4-doc
+%endif
+
 %description
 Personal Information Management (PIM) libraries for the
 K Desktop Environment 4.
@@ -38,6 +52,15 @@
 %description devel
 Header files for developing applications using %{name}.
 
+%package apidocs
+Group: Development/Documentation
+Summary: kdepimlibs API documentation
+Requires: %{name} = %{?epoch:%{epoch}:}%{version}
+
+%description apidocs
+This package includes the kdepimlibs API documentation in HTML
+format for easy browsing.
+
 
 %prep
 %setup -q -n kdepimlibs-%{version}
@@ -52,6 +75,12 @@
 
 make %{?_smp_mflags} -C %{_target_platform}
 
+# build apidocs
+%if "%{?apidocs}" == "1"
+export QTDOCDIR=`pkg-config --variable=docdir Qt`
+kde4-doxygen.sh --doxdatadir=%{_kde4_docdir}/HTML/en/common .
+%endif
+
 
 %install
 rm -rf %{buildroot}
@@ -75,6 +104,11 @@
 done
 popd
 
+# install apidocs
+%if "%{?apidocs}" == "1"
+cp -prf kdepimlibs-%{version}-apidocs %{buildroot}%{_kde4_docdir}/HTML/en/kdepimlibs-apidocs
+%endif
+
 
 %post -p /sbin/ldconfig
 
@@ -105,8 +139,18 @@
 %{_kde4_includedir}/*
 %{_kde4_libdir}/kde4/devel/lib*.so
 
+%if "%{?apidocs}" == "1"
+%files apidocs
+%defattr(-,root,root,-)
+%{_kde4_docdir}/HTML/en/kdepimlibs-apidocs/
+%endif
+
 
 %changelog
+* Thu Mar 06 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.0.2-2
+- build apidocs and put them into an -apidocs subpackage (can be turned off)
+- BR doxygen, graphviz and qt4-doc when building apidocs
+
 * Thu Feb 28 2008 Than Ngo <than at redhat.com> 4.0.2-1
 - 4.0.2
 




More information about the fedora-extras-commits mailing list