commit 9ca453f3546c1d6ea94a61eb8a862d705a09c09d450b77985f9f4e5788678792 Author: Matej Cepl Date: Fri Jul 15 12:11:21 2022 +0000 Accepting request 989282 from home:apersaud:branches:devel:languages:python:flask See also: https://build.opensuse.org/request/show/989224 (first attempt to submit to dlp:flask) - specfile: * update for newer python packaging * fix some rpm warnings OBS-URL: https://build.opensuse.org/request/show/989282 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssmin?expand=0&rev=1 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..e65ff59 --- /dev/null +++ b/python-cssmin.changes @@ -0,0 +1,23 @@ +------------------------------------------------------------------- +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..adcb598 --- /dev/null +++ b/python-cssmin.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-cssmin +# +# Copyright (c) 2022 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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 http://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 +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/c/cssmin/cssmin-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +This is a Python port of the YUI CSS Compressor. + +%prep +%setup -q -n cssmin-%{version} + +%build +%python_build + +%install +%python_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 + +%post +%python_install_alternative cssmin + +%postun +%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 +%pycache_only %{python_sitelib}/__pycache__ + +%changelog