From bf810749e549cfdc05db6620791476777e53d510cf0eb93816a3a97d23745b19 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Tue, 17 Jan 2017 16:17:51 +0000 Subject: [PATCH] Accepting request 448481 from home:sebix:branches:devel:languages:python add doc subpackage OBS-URL: https://build.opensuse.org/request/show/448481 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-systemd?expand=0&rev=5 --- python-systemd.changes | 5 +++++ python-systemd.spec | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/python-systemd.changes b/python-systemd.changes index c3c3118..53fd579 100644 --- a/python-systemd.changes +++ b/python-systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 2 11:48:12 UTC 2017 - sebix+novell.com@sebix.at + +- add doc package + ------------------------------------------------------------------- Sat Oct 31 21:17:21 UTC 2015 - jweberhofer@weberhofer.at diff --git a/python-systemd.spec b/python-systemd.spec index cddb2fc..e3d484d 100644 --- a/python-systemd.spec +++ b/python-systemd.spec @@ -1,7 +1,7 @@ # # spec file for package python-systemd # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,12 +27,18 @@ Source: https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/% BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig +BuildRequires: python-Sphinx BuildRequires: python-devel BuildRequires: python-pytest BuildRequires: python-setuptools BuildRequires: systemd-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build +%package doc +Summary: Documentation for %name +Group: Documentation +Requires: %name = %version + %description Python module for native access to the systemd facilities. Functionality is seperated into a number of modules: * systemd.journal supports sending of structured messages to the journal and reading journal files, @@ -40,11 +46,16 @@ Python module for native access to the systemd facilities. Functionality is sepe * systemd.id128 provides functions for querying machine and boot identifiers and a lists of message identifiers provided by systemd, * systemd.login wraps parts of libsystemd used to query logged in users and available seats and machines. +%description doc +Documentation and help files for %name + %prep %setup -q %build make %{?_smp_mflags} build +make sphinx-html +%{__rm} -r build/html/.buildinfo build/html/.doctrees build/html/_sources %install %make_install @@ -60,4 +71,7 @@ make %{?_smp_mflags} check || : %doc LICENSE.txt README.md %{python_sitearch}/* +%files doc +%doc build/html + %changelog