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
This commit is contained in:
Robert Schweikert 2017-01-17 16:17:51 +00:00 committed by Git OBS Bridge
parent c74e1c12eb
commit bf810749e5
2 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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