Accepting request 1181880 from openSUSE:Tools

- expand __python3 with python3 to work outside suse rpm packaging

- Update to version 0.6.5:
  * Update spec file to the one used in the packaging
  * Move revision detection into _revision_detect

- Fix shebang of the script to use the explicit version of Python
  (bsc#1212476).

OBS-URL: https://build.opensuse.org/request/show/1181880
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/obs-service-set_version?expand=0&rev=49
This commit is contained in:
Ana Guerrero 2024-06-21 14:02:15 +00:00 committed by Git OBS Bridge
commit 2a573b436e
7 changed files with 30 additions and 11 deletions

View File

@ -1,6 +1,6 @@
pkgname=obs-service-set_version
pkgver=0.6.4
pkgrel=0
pkgver=0.6.5
pkgrel=63f5e5046c60476b2ecee091b21aaf04
pkgdesc="An OBS source service: Update spec file version"
arch=('i686' 'x86_64')
url="https://www.github.com/openSUSE/obs-service-set_version"

View File

@ -4,4 +4,4 @@
<param name="changesrevision">eaedc529acba421821e0e5dcb4956c66e7f315a9</param></service>
<service name="tar_scm">
<param name="url">https://github.com/openSUSE/obs-service-set_version.git</param>
<param name="changesrevision">9bfad978a01befdbb58a573ee0b571464116319a</param></service></servicedata>
<param name="changesrevision">095866e87fb65adb398dde711961b8cf639035a9</param></service></servicedata>

View File

@ -1,6 +1,6 @@
Format: 1.0
Source: obs-service-set_version
Version: 0.6.4-0
Version: 0.6.5-0
Binary: obs-service-set_version
Provides: obs-service-set_version
Maintainer: Dirk Mueller <dmueller@suse.de>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7340b5c583a87f0cbcbad07af5719108c6c9d7fad7750a86a7cdbb1d520af76b
size 23886

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b3d8558e32305a339b568a3ec58caba92f9e1bca8871222b5902669d1e1c8f0c
size 23926

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Thu Jun 20 07:59:18 UTC 2024 - Dirk Müller <dmueller@suse.com>
- expand __python3 with python3 to work outside suse rpm packaging
-------------------------------------------------------------------
Tue Jun 18 15:31:41 UTC 2024 - dmueller@suse.com
- Update to version 0.6.5:
* Update spec file to the one used in the packaging
* Move revision detection into _revision_detect
-------------------------------------------------------------------
Fri Jun 14 18:33:15 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Fix shebang of the script to use the explicit version of Python
(bsc#1212476).
-------------------------------------------------------------------
Tue May 14 16:03:17 UTC 2024 - dmueller@suse.com

View File

@ -24,7 +24,7 @@
%define service set_version
Name: obs-service-%{service}
Version: 0.6.4
Version: 0.6.5
Release: 0
Summary: An OBS source service: Update spec file version
License: GPL-2.0-or-later
@ -40,9 +40,7 @@ BuildRequires: python3-flake8
BuildRequires: python3-packaging
%endif
%if 0%{?suse_version} > 1315
Requires: python3-base
%else
%if !0%{?suse_version}
Requires: python3
%endif
%if 0%{?suse_version}
@ -68,6 +66,9 @@ make test PYTHON=python3
mkdir -p %{buildroot}%{_prefix}/lib/obs/service
install -m 0755 set_version %{buildroot}%{_prefix}/lib/obs/service
install -m 0644 set_version.service %{buildroot}%{_prefix}/lib/obs/service
# Doing %%python3_fix_shebang_path old fashioned way for the backward compatibility
sed -i "1s@#\\!.*python\S*@#\\!$(realpath /usr/bin/python3)@" \
%{buildroot}%{_prefix}/lib/obs/service/set_version
%files
%defattr(-,root,root)