rpms/soprano/devel soprano.spec,1.15,1.16

Kevin Kofler (kkofler) fedora-extras-commits at redhat.com
Thu Mar 6 01:38:39 UTC 2008


Author: kkofler

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

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


Index: soprano.spec
===================================================================
RCS file: /cvs/pkgs/rpms/soprano/devel/soprano.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- soprano.spec	4 Mar 2008 05:33:14 -0000	1.15
+++ soprano.spec	6 Mar 2008 01:38:06 -0000	1.16
@@ -1,12 +1,13 @@
 
 # fedora review: http://bugzilla.redhat.com/248120
 
-# TODO: package apidocs (make apidox, BR doxygen and qt4-doc)
+# set this to 0 to disable -apidocs for a faster build
+%define apidocs 1
 
 Summary: Qt wrapper API to different RDF storage solutions
 Name:    soprano
 Version: 2.0.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 Group:   System Environment/Libraries
 License: LGPLv2+
@@ -21,6 +22,11 @@
 # older packages had clucene-config.h in the wrong place
 BuildRequires: clucene-core-devel >= 0.9.20-2
 
+%if "%{?apidocs}" == "1"
+BuildRequires: doxygen
+BuildRequires: qt4-doc
+%endif
+
 %description
 %{summary}.
 
@@ -33,6 +39,15 @@
 %description devel
 %{summary}.
 
+%package apidocs
+Group: Development/Documentation
+Summary: Soprano API documentation
+Requires: %{name} = %{?epoch:%{epoch}:}%{version}
+
+%description apidocs
+This package includes the Soprano API documentation in HTML
+format for easy browsing.
+
 
 %prep
 %setup -q -n soprano-%{version}%{?beta}
@@ -40,10 +55,14 @@
 
 %build
 
-%cmake .
+%cmake . -DQT_DOC_DIR=`pkg-config --variable=docdir Qt`
 
 make %{?_smp_mflags}
 
+%if "%{?apidocs}" == "1"
+make apidox
+%endif
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -79,8 +98,18 @@
 %{_includedir}/soprano/
 %{_includedir}/Soprano/
 
+%if "%{?apidocs}" == "1"
+%files apidocs
+%defattr(-,root,root,-)
+%doc docs/html
+%endif
+
 
 %changelog
+* Thu Mar 6 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 2.0.3-2
+- build apidocs and put them into an -apidocs subpackage (can be turned off)
+- BR doxygen and qt4-doc when building apidocs
+
 * Tue Mar 4 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 2.0.3-1
 - update to 2.0.3 (bugfix release)
 




More information about the fedora-extras-commits mailing list