diff --git a/python-pyngus.spec b/python-pyngus.spec index 8f492dd..17247c4 100644 --- a/python-pyngus.spec +++ b/python-pyngus.spec @@ -1,19 +1,23 @@ %global srcname pyngus -%global proton_minimum_version 0.28.0 - -# Don't duplicate the same documentation -%global _docdir_fmt %{name} +%global commit 60b6f102e4dc2d976292aa974866c4acce492e27 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global snapshotdate 20200513 Name: python-%{srcname} -Version: 2.3.0 -Release: 16%{?dist} +# Uses the snapshot because the upstream does not provides the latest version from git. +# Please see: https://github.com/kgiusti/pyngus/issues/14 +Version: 2.3.0^%{snapshotdate}git%{shortcommit} +Release: 2.%{snapshotdate}git%{shortcommit}%{?dist} Summary: Callback API implemented over Proton -License: ASL 2.0 +License: Apache-2.0 URL: https://github.com/kgiusti/%{srcname} -Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz +# Uses the commit because the upstream does not provides the latest version from git. +# Please see: https://github.com/kgiusti/pyngus/issues/14 +Source: https://github.com/kgiusti/pyngus/archive/%{commit}/%{srcname}-%{shortcommit}.tar.gz BuildArch: noarch +BuildRequires: python3-devel %global _description \ A connection oriented messaging framework using QPID Proton.\ @@ -23,36 +27,43 @@ It provides a callback-based API for message passing. %package -n python3-%{srcname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-qpid-proton >= %{proton_minimum_version} -Requires: python3-qpid-proton >= %{proton_minimum_version} %description -n python3-%{srcname} %{_description} Python 3 version. %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{commit} + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%py3_shebang_fix setup.py +%pyproject_install +%py3_shebang_fix tests/test-runner tests/perf-test.py setup.py examples/perf-tool.py examples/rpc-server.py examples/server.py examples/send.py examples/recv.py examples/rpc-client.py + +%pyproject_save_files -l %{srcname} %check -# PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} test-runner || : -#popd +%pyproject_check_import +%py3_test_envvars PYTHONPATH=%{buildroot}:%{buildroot}/tests +PYTHONPATH=.:tests tests/test-runner -i "unit_tests.connection.CyrusTest.test_cyrus_sasl_ok" -i "unit_tests.connection.CyrusTest.test_cyrus_sasl_fail" -%files -n python3-%{srcname} -%license LICENSE +%files -n python3-%{srcname} -f %{pyproject_files} %doc README.md -%{python3_sitelib}/%{srcname}/ -%{python3_sitelib}/%{srcname}-*.egg-info/ %changelog +* Fri Apr 12 2024 Hirotaka Wakabayashi - 2.3.0-2.20200513git60b6f10 +- Fixes the Source URL + +* Sat Mar 30 2024 Hirotaka Wakabayashi - 2.3.0-1.20200513git60b6f10 +- Untretire python-pyngus +- Updates python-pyngus + * Fri Jul 21 2023 Fedora Release Engineering - 2.3.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild