- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssmin?expand=0&rev=7
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
cssmin-0.2.0.tar.gz
Normal file
3
cssmin-0.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e012f0cc8401efcf2620332339011564738ae32be8c84b2e43ce8beaec1067b6
|
||||
size 3228
|
||||
44
python-cssmin.changes
Normal file
44
python-cssmin.changes
Normal file
@@ -0,0 +1,44 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Clean up the SPEC file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 15 03:42:15 UTC 2022 - arun@gmx.de
|
||||
|
||||
- specfile:
|
||||
* update for newer python packaging
|
||||
* fix some rpm warnings
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 18 10:25:39 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Update to version 0.2.0
|
||||
+ No changelog
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 24 11:00:52 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Require python-setuptools instead of distribute (upstreams merged)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 12 08:31:56 UTC 2012 - saschpe@suse.de
|
||||
|
||||
- Initial version
|
||||
|
||||
68
python-cssmin.spec
Normal file
68
python-cssmin.spec
Normal file
@@ -0,0 +1,68 @@
|
||||
#
|
||||
# spec file for package python-cssmin
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
Name: python-cssmin
|
||||
Version: 0.2.0
|
||||
Release: 0
|
||||
Summary: YUI CSS compression algorithm
|
||||
License: BSD-3-Clause AND MIT
|
||||
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: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This is a Python port of the YUI CSS Compressor.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n cssmin-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%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
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative cssmin
|
||||
|
||||
%files %{python_files}
|
||||
%python_alternative %{_bindir}/cssmin
|
||||
%{python_sitelib}/cssmin.py
|
||||
%{python_sitelib}/cssmin-%{version}*-info
|
||||
%pycache_only %{python_sitelib}/__pycache__
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user