Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package obs-service-refresh_patches for
openSUSE:Factory checked in at 2021-10-29 22:34:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/obs-service-refresh_patches (Old)
and /work/SRC/openSUSE:Factory/.obs-service-refresh_patches.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "obs-service-refresh_patches"
Fri Oct 29 22:34:35 2021 rev:13 rq:928148 version:0.3.9+git.1625238904.d59f20e
Changes:
--------
---
/work/SRC/openSUSE:Factory/obs-service-refresh_patches/obs-service-refresh_patches.changes
2021-07-10 22:55:06.471478217 +0200
+++
/work/SRC/openSUSE:Factory/.obs-service-refresh_patches.new.1890/obs-service-refresh_patches.changes
2021-10-29 22:35:41.311715101 +0200
@@ -1,0 +2,8 @@
+Sat Aug 28 10:36:36 UTC 2021 - Ben Greiner <[email protected]>
+
+- Require python3 instead of python, which is python2
+ * See last commit. We do not want to pull in obsolete python2
+ * This removes compatibility with SLE 11, RHEL7 and older
+- Work around older rpm versions in older distributions
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ obs-service-refresh_patches.spec ++++++
--- /var/tmp/diff_new_pack.lv4bO8/_old 2021-10-29 22:35:41.675715239 +0200
+++ /var/tmp/diff_new_pack.lv4bO8/_new 2021-10-29 22:35:41.675715239 +0200
@@ -1,7 +1,7 @@
#
-# spec file for package obs-service-refresh_patches
+# spec file
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,16 +23,17 @@
Release: 0
Summary: An OBS source service: Refreshs local patches
%if 0%{?mageia}
+# Careful: Don't run the spec-cleaner service on this one (osc commit
--noservice)
License: ASL 2.0
Group: Development/Tools
%else
License: Apache-2.0
Group: Development/Tools/Building
%endif
-Url: https://github.com/openSUSE/obs-service-%{service}
+URL: https://github.com/openSUSE/obs-service-%{service}
Source: %{name}-%{version}.tar.gz
-#NOTE(saschpe): Any Python will do:
-Requires: python
+BuildRequires: python3
+Requires: python3
Requires: quilt
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
@@ -44,6 +45,8 @@
%prep
%setup -q
+# fix rpmlint error for script interpreter lines
+sed -i '1 s/env python.*/python3/' refresh_patches
%build
@@ -51,11 +54,22 @@
mkdir -p %{buildroot}%{_prefix}/lib/obs/service
install -m 0755 refresh_patches %{buildroot}%{_prefix}/lib/obs/service
install -m 0644 refresh_patches.service %{buildroot}%{_prefix}/lib/obs/service
+%if 0%{?_licensedir:%{?suse_version} < 1500}
+mkdir -p %{buildroot}%{_datadir}/licenses
+%endif
+
+%check
+# check the script interpreter line and imports
+./refresh_patches -h
%files
%defattr(-,root,root)
%dir %{_prefix}/lib/obs
%{_prefix}/lib/obs/service
+%{!?_licensedir:%global license %%doc}
%license LICENSE-2.0
+%if 0%{?_licensedir:%{?suse_version} < 1500}
+%dir %{_datadir}/licenses
+%endif
%changelog