Accepting request 532999 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/532999 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-systemd?expand=0&rev=6
This commit is contained in:
commit
b0d8189083
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 7 13:20:19 UTC 2017 - sebix+novell.com@sebix.at
|
||||||
|
|
||||||
|
- singlespec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 26 09:17:01 UTC 2017 - jweberhofer@weberhofer.at
|
Mon Jun 26 09:17:01 UTC 2017 - jweberhofer@weberhofer.at
|
||||||
|
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without test
|
||||||
Name: python-systemd
|
Name: python-systemd
|
||||||
Version: 234
|
Version: 234
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -26,20 +28,26 @@ Url: https://github.com/systemd/python-systemd
|
|||||||
Source: https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
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
|
# 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
|
Patch100: exclude-tests-on-obs.patch
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-Sphinx
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRequires: python-pytest
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Requires: systemd
|
||||||
|
Suggests: %{name}-doc
|
||||||
|
# SECTION docs
|
||||||
|
BuildRequires: python3-Sphinx
|
||||||
|
# /SECTION
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
%endif
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%package doc
|
%package -n %{name}-doc
|
||||||
Summary: Documentation for python-systemd
|
Summary: Documentation for python-systemd
|
||||||
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
|
Group: Documentation/HTML
|
||||||
Group: Documentation
|
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -49,7 +57,7 @@ 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.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.
|
* systemd.login wraps parts of libsystemd used to query logged in users and available seats and machines.
|
||||||
|
|
||||||
%description doc
|
%description -n %{name}-doc
|
||||||
Documentation and help files for python-systemd.
|
Documentation and help files for python-systemd.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -57,24 +65,24 @@ Documentation and help files for python-systemd.
|
|||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} build
|
%{python_expand make PYTHON=$python %{?_smp_mflags} build}
|
||||||
make %{?_smp_mflags} sphinx-html
|
make %{?_smp_mflags} sphinx-html
|
||||||
rm -r build/html/.buildinfo build/html/.doctrees build/html/_sources
|
rm -r build/html/.buildinfo build/html/.doctrees build/html/_sources
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%{python_expand %make_install PYTHON=$python
|
||||||
%fdupes %{buildroot}/%{python_sitearch}
|
%fdupes %{buildroot}/%{$python_sitearch}}
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
make %{?_smp_mflags} check
|
%{python_expand make PYTHON=$python %{?_smp_mflags} check}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc LICENSE.txt README.md
|
%doc LICENSE.txt README.md
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%files doc
|
%files -n %{name}-doc
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc build/html
|
%doc build/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user