commit 3be10cf0950afc19d4dc85311e57288eacb4792d0dac20e05e10aa160e2867fc Author: Markéta Machová Date: Tue Jul 8 08:08:29 2025 +0000 - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssmin?expand=0&rev=7 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cssmin-0.2.0.tar.gz b/cssmin-0.2.0.tar.gz new file mode 100644 index 0000000..0ab7b7c --- /dev/null +++ b/cssmin-0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e012f0cc8401efcf2620332339011564738ae32be8c84b2e43ce8beaec1067b6 +size 3228 diff --git a/python-cssmin.changes b/python-cssmin.changes new file mode 100644 index 0000000..b7549a1 --- /dev/null +++ b/python-cssmin.changes @@ -0,0 +1,44 @@ +------------------------------------------------------------------- +Tue Jul 8 08:08:09 UTC 2025 - Markéta Machová + +- Convert to libalternatives + +------------------------------------------------------------------- +Wed Nov 6 14:46:18 UTC 2024 - Matej Cepl + +- Clean up the SPEC file. + +------------------------------------------------------------------- +Mon Jul 18 13:21:32 UTC 2022 - Matej Cepl + +- 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 + diff --git a/python-cssmin.spec b/python-cssmin.spec new file mode 100644 index 0000000..9fa371f --- /dev/null +++ b/python-cssmin.spec @@ -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