From c5abe162b85d7b13261b8d38cdddba0f3c6248f8 Mon Sep 17 00:00:00 2001 From: mcepl <> Date: Jul 21 2022 09:44:50 +0000 Subject: Update python-cssmin to version 0.2.0 / rev 1 via SR 989967 https://build.opensuse.org/request/show/989967 by user mcepl + RBrownFactory Required by openSUSE:Factory:Staging:adi:22 --- diff --git a/.files b/.files new file mode 100644 index 0000000..184d1f1 Binary files /dev/null and b/.files differ diff --git a/.meta b/.meta new file mode 100644 index 0000000..5460d67 --- /dev/null +++ b/.meta @@ -0,0 +1,5 @@ +<package name="python-cssmin" project="openSUSE:Factory"> + <title></title> + <description>A Python port of the YUI CSS compression algorithm.</description> + <devel project="devel:languages:python" package="python-cssmin"/> +</package> diff --git a/.rev b/.rev new file mode 100644 index 0000000..39e456d --- /dev/null +++ b/.rev @@ -0,0 +1,10 @@ +<revisionlist> + <revision rev="1" vrev="1"> + <srcmd5>ef636fe25738cfb9a1a141f308e5c001</srcmd5> + <version>0.2.0</version> + <time>1658395987</time> + <user>RBrownFactory</user> + <comment>Required by openSUSE:Factory:Staging:adi:22</comment> + <requestid>989967</requestid> + </revision> +</revisionlist> diff --git a/cssmin-0.2.0.tar.gz b/cssmin-0.2.0.tar.gz new file mode 120000 index 0000000..68dd756 --- /dev/null +++ b/cssmin-0.2.0.tar.gz @@ -0,0 +1 @@ +/ipfs/bafkreihaclymzbab57hsmibtem4qcfleoofogk7izbfs4q6orpvoyedhwy \ No newline at end of file diff --git a/python-cssmin.changes b/python-cssmin.changes new file mode 100644 index 0000000..cdf27bd --- /dev/null +++ b/python-cssmin.changes @@ -0,0 +1,34 @@ +------------------------------------------------------------------- +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 + diff --git a/python-cssmin.spec b/python-cssmin.spec new file mode 100644 index 0000000..da518b0 --- /dev/null +++ b/python-cssmin.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-cssmin +# +# Copyright (c) 2022 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +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 setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +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 +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative cssmin + +%postun +%python_uninstall_alternative cssmin + +%files %{python_files} +%python_alternative %{_bindir}/cssmin +%{python_sitelib}/cssmin.py* +%{python_sitelib}/cssmin-%{version}-py*.egg-info +%pycache_only %{python_sitelib}/__pycache__ + +%changelog