Accepting request 716031 from home:kstreitova:branches:openSUSE:Tools

- Update to 1.1.4 bsc#1099674:
  * Exclude stuff from openstack macros
  * Replace 'http' with 'https' in URL
  * Replace legacy packageand() with 'and' expression
  * Replace pwdutils with shadow in Requires
  * Add openstack_cleanup_prep to bracketing excludes
  * Do not curlify yast_metainfo and yast_check
  * Fixup the eating of Source lines with whitespace
  * Document '#nospeccleaner' tag
  * Add docstrings to the functions and classes.
  * Use type hints for the most important functions
  * Update README and licences
  * Various small fixes 
- add a temporary patch spec-cleaner-1.1.4_test_https.patch
  that fixes a test that fails if there is no internet connection

OBS-URL: https://build.opensuse.org/request/show/716031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=138
This commit is contained in:
Kristyna Streitova 2019-07-17 11:27:48 +00:00 committed by Git OBS Bridge
parent 75fe15a541
commit cae59089e7
5 changed files with 53 additions and 6 deletions

BIN
spec-cleaner-1.1.3.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
spec-cleaner-1.1.4.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,26 @@
Index: spec-cleaner-spec-cleaner-1.1.4/tests/in/spec-cleaner.spec
===================================================================
--- spec-cleaner-spec-cleaner-1.1.4.orig/tests/in/spec-cleaner.spec
+++ spec-cleaner-spec-cleaner-1.1.4/tests/in/spec-cleaner.spec
@@ -24,7 +24,7 @@ Release: 0
Summary: .spec file cleaner
License: BSD-3-Clause
Group: Development/Tools/Other
-Url: http://github.com/openSUSE/spec-cleaner
+Url: https://github.com/openSUSE/spec-cleaner
Source0: https://github.com/openSUSE/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires: python
%if 0%{?suse_version} > 01220
Index: spec-cleaner-spec-cleaner-1.1.4/tests/out-minimal/spec-cleaner.spec
===================================================================
--- spec-cleaner-spec-cleaner-1.1.4.orig/tests/out-minimal/spec-cleaner.spec
+++ spec-cleaner-spec-cleaner-1.1.4/tests/out-minimal/spec-cleaner.spec
@@ -23,7 +23,7 @@ Release: 0
Summary: .spec file cleaner
License: BSD-3-Clause
Group: Development/Tools/Other
-URL: http://github.com/openSUSE/spec-cleaner
+URL: https://github.com/openSUSE/spec-cleaner
Source0: https://github.com/openSUSE/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires: python
Requires: python-base

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Wed Jul 17 08:17:52 UTC 2019 - Kristyna Streitova <kstreitova@suse.com>
- Update to 1.1.4 bsc#1099674:
* Exclude stuff from openstack macros
* Replace 'http' with 'https' in URL
* Replace legacy packageand() with 'and' expression
* Replace pwdutils with shadow in Requires
* Add openstack_cleanup_prep to bracketing excludes
* Do not curlify yast_metainfo and yast_check
* Fixup the eating of Source lines with whitespace
* Document '#nospeccleaner' tag
* Add docstrings to the functions and classes.
* Use type hints for the most important functions
* Update README and licences
* Various small fixes
- add a temporary patch spec-cleaner-1.1.4_test_https.patch
that fixes a test that fails if there is no internet connection
-------------------------------------------------------------------
Thu Mar 7 12:36:28 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -18,13 +18,14 @@
Name: spec-cleaner
Version: 1.1.3
Version: 1.1.4
Release: 0
Summary: .spec file cleaner
License: BSD-3-Clause
Group: Development/Tools/Other
URL: http://github.com/openSUSE/spec-cleaner
URL: https://github.com/openSUSE/spec-cleaner
Source0: https://github.com/openSUSE/%{name}/archive/%{name}-%{version}.tar.gz
Patch0: spec-cleaner-1.1.4_test_https.patch
BuildRequires: python3-pytest
BuildRequires: python3-pytest-cov
BuildRequires: python3-pytest-runner
@ -50,13 +51,14 @@ user to use spec-cleaner rather than to stick to perl based format_spec_file.
%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0 -p1
%build
python3 setup.py build
%check
export LANG=en_US.UTF-8
python3 setup.py test
python3 -m pytest -k "not webtest"
%install
python3 setup.py install --root=%{buildroot}