[packages/mate-session-manager] apidocs subpackage. (disabled: incomplete content)

glen glen at pld-linux.org
Tue Jan 15 20:16:43 CET 2013


commit baa3f594f8ab4f9390e520caf7a045eef9ea5108
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jan 15 21:16:29 2013 +0200

    apidocs subpackage. (disabled: incomplete content)

 mate-session-manager.spec | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/mate-session-manager.spec b/mate-session-manager.spec
index 52730ab..a79246e 100644
--- a/mate-session-manager.spec
+++ b/mate-session-manager.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with	apidocs		# DocBook docs (incomplete)
+
 Summary:	MATE Desktop session manager
 Name:		mate-session-manager
 Version:	1.5.0
@@ -20,6 +24,7 @@ BuildRequires:	mate-polkit-devel
 BuildRequires:	polkit-devel
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	upower-devel >= 0.9.0
+%{?with_apidocs:BuildRequires:	xmlto}
 BuildRequires:	xorg-lib-libSM-devel
 BuildRequires:	xz
 Requires:	glib2 >= 1:2.26.0
@@ -31,6 +36,17 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 MATE Desktop session manager.
 
+%package apidocs
+Summary:	Session Manager D-Bus API Reference
+Summary(pl.UTF-8):	Dokumentacja API Session Manager
+Group:		Documentation
+
+%description apidocs
+Session Manager D-Bus API Reference.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API Session Manager.
+
 %prep
 %setup -q
 
@@ -38,6 +54,8 @@ MATE Desktop session manager.
 NOCONFIGURE=1 ./autogen.sh
 %configure \
 	--disable-static \
+	%{!?with_apidocs:--disable-docbook-docs} \
+	%{?with_apidocs:--enable-docbook-docs --docdir=%{_gtkdocdir}/%{name}} \
 	--enable-ipv6 \
 	--with-gtk=2.0 \
 	--with-gnu-ld \
@@ -57,9 +75,6 @@ desktop-file-install \
 	--dir=$RPM_BUILD_ROOT%{_desktopdir} \
 $RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop
 
-# apidocs?
-%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/dbus/mate-session.html
-
 %find_lang %{name}
 
 %clean
@@ -90,3 +105,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_iconsdir}/hicolor/scalable/apps/mate-session-properties.svg
 %{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml
 %{_datadir}/xsessions/mate.desktop
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/%{name}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mate-session-manager.git/commitdiff/baa3f594f8ab4f9390e520caf7a045eef9ea5108



More information about the pld-cvs-commit mailing list