Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| efb592d956 | |||
| 0573061fdd |
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 8 08:08:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 6 14:46:18 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
Wed Nov 6 14:46:18 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-cssmin
|
# spec file for package python-cssmin
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 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,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without libalternatives
|
||||||
Name: python-cssmin
|
Name: python-cssmin
|
||||||
Version: 0.2.0
|
Version: 0.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -28,10 +29,10 @@ BuildRequires: %{python_module packaging}
|
|||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires: alts
|
||||||
Requires(postun): update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -55,11 +56,8 @@ sed -i "s|^#!.*env python$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/cssmi
|
|||||||
%check
|
%check
|
||||||
# Good upstream have never even heard about the idea of tests
|
# Good upstream have never even heard about the idea of tests
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative cssmin
|
%python_libalternatives_reset_alternative cssmin
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative cssmin
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%python_alternative %{_bindir}/cssmin
|
%python_alternative %{_bindir}/cssmin
|
||||||
|
|||||||
Reference in New Issue
Block a user