- Update to version 0.5.3:

+ Use old version from testing data instead of hardcoding
  + Fix replacement of empty tags
  + Fix empty version checks for debian/changelog
  + fix when switching from .dev to non-dev version

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-set_version?expand=0&rev=71
This commit is contained in:
Dirk Mueller 2017-10-10 07:40:00 +00:00 committed by Git OBS Bridge
parent 884f2dc585
commit c68b10c435
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 10 07:39:43 UTC 2017 - dmueller@suse.com
- switch to python3 for less ancient distros
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 19 12:26:06 UTC 2017 - opensuse-packaging@opensuse.org Tue Sep 19 12:26:06 UTC 2017 - opensuse-packaging@opensuse.org

View File

@ -27,8 +27,12 @@ Group: Development/Tools/Building
Url: https://github.com/openSUSE/obs-service-%{service} Url: https://github.com/openSUSE/obs-service-%{service}
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
%if 0%{?suse_version} %if 0%{?suse_version}
%if 0%{?suse_version} > 1315
Recommends: python3-packaging
%else
Recommends: python-packaging Recommends: python-packaging
%endif %endif
%endif
Requires: sed Requires: sed
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
@ -43,6 +47,9 @@ a given version or to the existing files.
%setup -q %setup -q
%build %build
%if 0%{?suse_version} > 1315
sed -i -e "1 s,#!/usr/bin/python$,#!/usr/bin/python3," set_version
%endif
%install %install
mkdir -p %{buildroot}%{_prefix}/lib/obs/service mkdir -p %{buildroot}%{_prefix}/lib/obs/service