forked from pool/python-cssmin
- Deduplicate files in python_sitelib.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssmin?expand=0&rev=3
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 18 20:09:11 UTC 2022 - arun@gmx.de
|
||||
Mon Jul 18 13:21:32 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Deduplicate files in python_sitelib.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 17 20:09:11 UTC 2022 - arun@gmx.de
|
||||
|
||||
- specfile:
|
||||
* fix build: include python-rpm-macros and python-packaging
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-cssmin
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,23 +12,25 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-cssmin
|
||||
Version: 0.2.0
|
||||
Release: 0
|
||||
Url: http://github.com/zacharyvoase/cssmin
|
||||
Summary: A Python port of the YUI CSS compression algorithm
|
||||
License: MIT and BSD-3-Clause
|
||||
Summary: YUI CSS compression algorithm
|
||||
License: BSD-3-Clause AND MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/c/cssmin/cssmin-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
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 setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -47,6 +49,7 @@ This is a Python port of the YUI CSS Compressor.
|
||||
sed -i "s|^#!.*env python$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/cssmin.py
|
||||
}
|
||||
%python_clone -a %{buildroot}%{_bindir}/cssmin
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%post
|
||||
%python_install_alternative cssmin
|
||||
@@ -55,7 +58,6 @@ sed -i "s|^#!.*env python$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/cssmi
|
||||
%python_uninstall_alternative cssmin
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%python_alternative %{_bindir}/cssmin
|
||||
%{python_sitelib}/cssmin.py*
|
||||
%{python_sitelib}/cssmin-%{version}-py*.egg-info
|
||||
|
||||
Reference in New Issue
Block a user