Accepting request 541808 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/541808 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-systemd?expand=0&rev=8
This commit is contained in:
commit
8c223f5ce4
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 14 12:47:02 UTC 2017 - mpluskal@suse.com
|
||||
|
||||
- Use more of python building macros
|
||||
- Do not build documentation (build is broken if /usr/bin/python is
|
||||
not present anyways)
|
||||
- Run spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 6 18:15:19 UTC 2017 - jweberhofer@weberhofer.at
|
||||
|
||||
|
@ -39,19 +39,12 @@ BuildRequires: python-rpm-macros
|
||||
BuildRequires: systemd-devel
|
||||
Requires: systemd
|
||||
Suggests: %{name}-doc
|
||||
# SECTION docs
|
||||
BuildRequires: python3-Sphinx
|
||||
# /SECTION
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for python-systemd
|
||||
Group: Documentation/HTML
|
||||
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,
|
||||
@ -59,33 +52,25 @@ 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 -n %{name}-doc
|
||||
Documentation and help files for python-systemd.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
%patch100 -p1
|
||||
|
||||
%build
|
||||
%{python_expand make PYTHON=$python %{?_smp_mflags} build}
|
||||
make %{?_smp_mflags} sphinx-html
|
||||
rm -r build/html/.buildinfo build/html/.doctrees build/html/_sources
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%{python_expand %make_install PYTHON=$python
|
||||
%fdupes %{buildroot}/%{$python_sitearch}}
|
||||
%python_install
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%{python_expand make PYTHON=$python %{?_smp_mflags} check}
|
||||
%python_exec setup.py check
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%doc LICENSE.txt README.md
|
||||
%{python_sitearch}/*
|
||||
|
||||
%files -n %{name}-doc
|
||||
%doc build/html
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user