diff --git a/python-systemd.changes b/python-systemd.changes index b45dbf5..112fd52 100644 --- a/python-systemd.changes +++ b/python-systemd.changes @@ -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 diff --git a/python-systemd.spec b/python-systemd.spec index 54b298b..65c9cef 100644 --- a/python-systemd.spec +++ b/python-systemd.spec @@ -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