commit b90f739f6eefe41f3a40ad7bd949ac9f0b5bd514e6251841701a1762fc8367cb Author: Markéta Machová Date: Mon May 26 11:35:19 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-csscompressor?expand=0&rev=8 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/csscompressor-0.9.5.tar.gz b/csscompressor-0.9.5.tar.gz new file mode 100644 index 0000000..5a2ca69 --- /dev/null +++ b/csscompressor-0.9.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afa22badbcf3120a4f392e4d22f9fff485c044a1feda4a950ecc5eba9dd31a05 +size 237808 diff --git a/python-csscompressor.changes b/python-csscompressor.changes new file mode 100644 index 0000000..143a589 --- /dev/null +++ b/python-csscompressor.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Mon May 26 10:43:51 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Tue Jun 20 05:21:20 UTC 2023 - Andreas Schneider + +- Use sle15_python_module_pythons + +------------------------------------------------------------------- +Thu Oct 13 07:16:21 UTC 2022 - Dirk Müller + +- use https for urls + +------------------------------------------------------------------- +Thu Jan 3 07:48:05 UTC 2019 - Tomáš Chvátal + +- Initial commit, needed by django_compressor diff --git a/python-csscompressor.spec b/python-csscompressor.spec new file mode 100644 index 0000000..e58456b --- /dev/null +++ b/python-csscompressor.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-csscompressor +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-csscompressor +Version: 0.9.5 +Release: 0 +Summary: A python port of YUI CSS Compressor +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/sprymix/csscompressor +Source: https://files.pythonhosted.org/packages/source/c/csscompressor/csscompressor-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Almost exact python port of YUI CSS Compressor. + +%prep +%setup -q -n csscompressor-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v csscompressor/tests + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/csscompressor +%{python_sitelib}/csscompressor-%{version}*-info + +%changelog