14
0

Accepting request 1058713 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1058713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycodestyle?expand=0&rev=16
This commit is contained in:
2023-01-16 16:59:55 +00:00
committed by Git OBS Bridge
2 changed files with 9 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 13 13:46:58 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- cleanup spec, trim %files section and fix %python_clone command
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 13 16:26:21 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com> Tue Dec 13 16:26:21 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pycodestyle # spec file for package python-pycodestyle
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,7 @@
# #
%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1
%global skip_python2 1
Name: python-pycodestyle Name: python-pycodestyle
Version: 2.10.0 Version: 2.10.0
Release: 0 Release: 0
@@ -54,8 +53,7 @@ sed -ri '1s/^#!.*//' pycodestyle.py
%install %install
%python_install %python_install
%python_clone %{buildroot}%{_bindir}/pycodestyle %python_clone -a %{buildroot}%{_bindir}/pycodestyle
ln -sf pycodestyle-%{python3_bin_suffix} %{buildroot}%{_bindir}/pycodestyle
%python_expand %fdupes %{buildroot}/%{$python_sitelib} %python_expand %fdupes %{buildroot}/%{$python_sitelib}
%post %post
@@ -71,9 +69,8 @@ ln -sf pycodestyle-%{python3_bin_suffix} %{buildroot}%{_bindir}/pycodestyle
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%python_alternative %{_bindir}/pycodestyle %python_alternative %{_bindir}/pycodestyle
%{_bindir}/pycodestyle-%{python_bin_suffix}
%{python_sitelib}/pycodestyle.py* %{python_sitelib}/pycodestyle.py*
%pycache_only %{python_sitelib}/__pycache__/pycodestyle.*.py* %pycache_only %{python_sitelib}/__pycache__/pycodestyle.*.py*
%{python_sitelib}/pycodestyle-%{version}-*.egg-info %{python_sitelib}/pycodestyle-%{version}*-info
%changelog %changelog