forked from pool/python-systemd
Accepting request 506211 from home:weberho:branches:devel:languages:python
- Upgrade to release 234 - Enable all tests except one which fail because of a bug in the OBS: https://github.com/openSUSE/obs-build/pull/351 OBS-URL: https://build.opensuse.org/request/show/506211 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-systemd?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
75cc1b1d3e
commit
2687d2df82
@@ -17,13 +17,15 @@
|
||||
|
||||
|
||||
Name: python-systemd
|
||||
Version: 233
|
||||
Version: 234
|
||||
Release: 0
|
||||
Summary: Python wrappers for systemd functionality
|
||||
License: LGPL-2.1+
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/systemd/python-systemd
|
||||
Source: https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE exclude-tests-on-obs.patch removes a test when running tests at OBS. Should be removed as soon as OBS is fixed
|
||||
Patch100: exclude-tests-on-obs.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
@@ -35,9 +37,10 @@ BuildRequires: systemd-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %name
|
||||
Summary: Documentation for python-systemd
|
||||
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
|
||||
Group: Documentation
|
||||
Requires: %name = %version
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description
|
||||
Python module for native access to the systemd facilities. Functionality is seperated into a number of modules:
|
||||
@@ -47,24 +50,23 @@ Python module for native access to the systemd facilities. Functionality is sepe
|
||||
* 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
|
||||
Documentation and help files for python-systemd.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch100 -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} build
|
||||
make sphinx-html
|
||||
%{__rm} -r build/html/.buildinfo build/html/.doctrees build/html/_sources
|
||||
make %{?_smp_mflags} sphinx-html
|
||||
rm -r build/html/.buildinfo build/html/.doctrees build/html/_sources
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%fdupes %{buildroot}/%{python_sitearch}
|
||||
|
||||
%check
|
||||
# run doc-tests only when socket is available
|
||||
test -f /run/systemd/journal/stdout || sed -i 's/--doctest[^ ]*//g' pytest.ini
|
||||
make %{?_smp_mflags} check || :
|
||||
make %{?_smp_mflags} check
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
@@ -72,6 +74,7 @@ make %{?_smp_mflags} check || :
|
||||
%{python_sitearch}/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc build/html
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user