## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Enable Python dependency generation %{?python_enable_dependency_generator} # Created by pyp2rpm-3.3.2 %global pypi_name pystemd Name: python-%{pypi_name} Version: 0.13.4 Release: %autorelease Summary: A thin Cython-based wrapper on top of libsystemd License: LGPL-2.1-or-later URL: https://github.com/systemd/pystemd Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: pkgconfig(libsystemd) BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: This library allows you to talk to systemd over D-Bus from Python, without actually thinking that you are talking to systemd over D-Bus. This allows you to programmatically start/stop/restart/kill and verify service status from systemd point of view, avoiding subprocessing systemctl and then parsing the output to know the result.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} -p1 %generate_buildrequires # with -x t this pulls in too many optional deps like cstq and pytest-cov #pyproject_buildrequires -x t %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} # remove installed source files if present # seems to vary based on dependency versions (EPEL 9 does not install these) rm -f %{buildroot}%{python3_sitearch}/%{pypi_name}/*.c sed -i '/pystemd\/.*\.c$/d' %{pyproject_files} %check # This test fails in mock because systemd isn't running rm -f tests/test_daemon.py # This test requires additional dependencies (cstq) rm -f tests/test_version.py %pytest -v %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Thu Aug 28 2025 Michel Lind - 0.13.4-1 - Update to 0.13.4; Fixes: RHBZ#2375044 - Stop using deprecated macros; Fixes: RHBZ#2378100 * Fri Aug 15 2025 Python Maint - 0.13.2-14 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 0.13.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 0.13.2-12 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 0.13.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Fedora Release Engineering - 0.13.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.13.2-9 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.13.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.13.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.13.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jul 05 2023 Michel Alexandre Salim - 0.13.2-5 - Fix deprecation warning and EL builds * Mon Jul 03 2023 Python Maint - 0.13.2-4 - Rebuilt for Python 3.12 * Mon Jul 03 2023 Michel Alexandre Salim - 0.13.2-3 - Fix rpmlint warnings: remove shipped *.c sources * Sat Jul 01 2023 Python Maint - 0.13.2-2 - Rebuilt for Python 3.12 * Fri Jun 30 2023 Michel Alexandre Salim - 0.13.2-1 - Update to 0.13.2; Fixes: rhbz#2210519 * Wed Jun 14 2023 Python Maint - 0.13.1-2 - Rebuilt for Python 3.12 * Wed May 17 2023 Davide Cavalca - 0.13.1-1 - Update to 0.13.1; Fixes: RHBZ#2207826 - Drop some unnecessary logic from the spec * Mon May 01 2023 Michel Alexandre Salim - 0.13.0-1 - Update to 0.13.0 * Fri Feb 10 2023 Davide Cavalca - 0.11.0-4 - Gate out unsupported test on el8 * Fri Feb 10 2023 Davide Cavalca - 0.11.0-3 - Add psutil to BuildRequires for test_futures - Update project URL * Fri Jan 20 2023 Fedora Release Engineering - 0.11.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Dec 06 2022 Davide Cavalca - 0.11.0-1 - Update to 0.11.0 (#2151054) - Convert license tag to SPDX * Fri Jul 22 2022 Fedora Release Engineering - 0.10.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.10.0-5 - Rebuilt for Python 3.11 * Mon Apr 11 2022 Davide Cavalca - 0.10.0-4 - Drop unnecessary BuildRequires for deprecated package * Thu Apr 07 2022 Davide Cavalca - 0.10.0-3 - Add new upstream dependency to BuildRequires * Fri Jan 21 2022 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Oct 20 2021 Davide Cavalca - 0.10.0-1 - Update to 0.10.0 * Fri Jul 23 2021 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 07 2021 Davide Cavalca - 0.9.0-1 - Update to 0.9.0 - Ensure we always rebuild the Cython bindings (Resolves: rhbz#1900529) * Fri Jun 04 2021 Python Maint - 0.8.0-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Oct 26 16:08:15 EDT 2020 Neal Gompa - 0.8.0-1 - Update to 0.8.0 (#1891609) * Wed Jul 29 2020 Fedora Release Engineering - 0.6.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.6.0-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.6.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.6.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Mar 16 19:09:25 EDT 2019 Neal Gompa - 0.6.0-1 - Initial packaging ## END: Generated by rpmautospec