[Bug 2270021] Review Request: python-pyngus - Callback API implemented over Proton

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2270021



--- Comment #17 from Hirotaka Wakabayashi <hiwkby@xxxxxxxxx> ---
Hello, here is the diff with the previous spec file.

```
*** python-pyngus.spec.old      Fri Apr  5 06:57:10 2024
--- python-pyngus.spec  Mon Apr  1 21:42:50 2024
***************
*** 1,17 ****
  %global srcname pyngus

  Name:          python-%{srcname}
! Version:       2.3.1
! Release:       3%{?dist}
  Summary:       Callback API implemented over Proton

  License:       Apache-2.0
  URL:           https://github.com/kgiusti/%{srcname}
! # Upstream does not provides the latest version from git.
  # Please see: https://github.com/kgiusti/pyngus/issues/14
! Source0:       %{pypi_source %{srcname} %{version}}

  BuildArch:     noarch

  %global _description \
  A connection oriented messaging framework using QPID Proton.\
--- 1,23 ----
  %global srcname pyngus
+ %global commit 60b6f102e4dc2d976292aa974866c4acce492e27
+ %global shortcommit %(c=%{commit}; echo ${c:0:7})
+ %global snapshotdate 20200513

  Name:          python-%{srcname}
! # 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:       1.%{snapshotdate}git%{shortcommit}%{?dist}
  Summary:       Callback API implemented over Proton

  License:       Apache-2.0
  URL:           https://github.com/kgiusti/%{srcname}
! # 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/OWNER/PROJECT/archive/%{commit}/%{srcname}-%{shortcommit}.tar.gz 

  BuildArch:     noarch
+ BuildRequires: python3-devel

  %global _description \
  A connection oriented messaging framework using QPID Proton.\
***************
*** 27,33 ****
  Python 3 version.

  %prep
! %autosetup -n %{srcname}-%{version}

  %generate_buildrequires
  %pyproject_buildrequires
--- 33,39 ----
  Python 3 version.

  %prep
! %autosetup -n %{srcname}-%{commit} 

  %generate_buildrequires
  %pyproject_buildrequires
***************
*** 38,60 ****
  %install
  %py3_shebang_fix setup.py
  %pyproject_install

  %pyproject_save_files -l %{srcname}

  %files -n python3-%{srcname} -f %{pyproject_files}
  %doc README.md

  %changelog
! * Tue Mar 26 2024 Hirotaka Wakabayashi <hiwkby@xxxxxxxxx> - 2.3.1-3
! - Introduces new macros pyproject_save_files and pyproject_files
! - Fixes duplicated LICENSE files
! 
! * Tue Mar 19 2024 Hirotaka Wakabayashi <hiwkby@xxxxxxxxx> - 2.3.1-2
! - Applies license-fedora2spdx
! 
! * Fri Mar 15 2024 Hirotaka Wakabayashi <hiwkby@xxxxxxxxx> - 2.3.1-1
  - Untretire python-pyngus
! - Updates python-pyngus-2.3.1

  * Fri Jul 21 2023 Fedora Release Engineering <releng@xxxxxxxxxxxxxxxxx> -
2.3.0-16
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
--- 44,65 ----
  %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
+ %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} -f %{pyproject_files}
  %doc README.md

  %changelog
! * Sat Mar 30 2024 Hirotaka Wakabayashi <hiwkby@xxxxxxxxx> -
2.3.0-1.20200513git60b6f10
  - Untretire python-pyngus
! - Updates python-pyngus

  * Fri Jul 21 2023 Fedora Release Engineering <releng@xxxxxxxxxxxxxxxxx> -
2.3.0-16
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
```


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2270021

Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202270021%23c17
--
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux