forked from pool/python-cssmin
Accepting request 1221779 from devel:languages:python
- Clean up the SPEC file. OBS-URL: https://build.opensuse.org/request/show/1221779 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cssmin?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 6 14:46:18 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Clean up the SPEC file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 18 13:21:32 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-cssmin
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-cssmin
|
||||
Version: 0.2.0
|
||||
Release: 0
|
||||
@@ -26,11 +25,13 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/zacharyvoase/cssmin
|
||||
Source: https://files.pythonhosted.org/packages/source/c/cssmin/cssmin-%{version}.tar.gz
|
||||
BuildRequires: %{python_module packaging}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -38,19 +39,22 @@ BuildArch: noarch
|
||||
This is a Python port of the YUI CSS Compressor.
|
||||
|
||||
%prep
|
||||
%setup -q -n cssmin-%{version}
|
||||
%autosetup -p1 -n cssmin-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/cssmin.py
|
||||
sed -i "s|^#!.*env python$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/cssmin.py
|
||||
}
|
||||
%python_clone -a %{buildroot}%{_bindir}/cssmin
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# Good upstream have never even heard about the idea of tests
|
||||
|
||||
%post
|
||||
%python_install_alternative cssmin
|
||||
|
||||
@@ -59,8 +63,8 @@ sed -i "s|^#!.*env python$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/cssmi
|
||||
|
||||
%files %{python_files}
|
||||
%python_alternative %{_bindir}/cssmin
|
||||
%{python_sitelib}/cssmin.py*
|
||||
%{python_sitelib}/cssmin-%{version}-py*.egg-info
|
||||
%{python_sitelib}/cssmin.py
|
||||
%{python_sitelib}/cssmin-%{version}*-info
|
||||
%pycache_only %{python_sitelib}/__pycache__
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user