From c087970f3bafedcc27b3993c709d082e8b1215361cb1d2704c78819d0ee887da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 10 Sep 2020 14:27:28 +0000 Subject: [PATCH] Accepting request 833470 from home:mcalabkova:branches:devel:languages:python:django Needed by django-pipeline tests. Could be useful elsewhere. OBS-URL: https://build.opensuse.org/request/show/833470 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-css-html-js-minify?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + _service | 13 ++++ _servicedata | 4 ++ ...minify-2.5.5.git.1523718195.8f72452.tar.gz | 3 + python-css-html-js-minify.changes | 6 ++ python-css-html-js-minify.spec | 66 +++++++++++++++++++ 7 files changed, 116 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 css-html-js-minify-2.5.5.git.1523718195.8f72452.tar.gz create mode 100644 python-css-html-js-minify.changes create mode 100644 python-css-html-js-minify.spec 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/_service b/_service new file mode 100644 index 0000000..b9ec27d --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + https://github.com/juancarlospaco/css-html-js-minify + git + css-html-js-minify + 2.5.5.git + + + gz + *.tar + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..c84ac59 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/juancarlospaco/css-html-js-minify + 8f72452960e41bc5476e50d96481f633eff72750 \ No newline at end of file diff --git a/css-html-js-minify-2.5.5.git.1523718195.8f72452.tar.gz b/css-html-js-minify-2.5.5.git.1523718195.8f72452.tar.gz new file mode 100644 index 0000000..e827035 --- /dev/null +++ b/css-html-js-minify-2.5.5.git.1523718195.8f72452.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3789faf7b1e3826f75b70fdd62d56961332dfb97f20781d3415b87fe8988eca1 +size 520597 diff --git a/python-css-html-js-minify.changes b/python-css-html-js-minify.changes new file mode 100644 index 0000000..02f461f --- /dev/null +++ b/python-css-html-js-minify.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Thu Sep 10 12:42:43 UTC 2020 - Marketa Calabkova + +- Initial packaging (v2.5.5.git.1523718195.8f72452) + * PyPI tarball does not contain licenses and the last tag on upstream + is 1.2.0 (from 2015), so it needs _service diff --git a/python-css-html-js-minify.spec b/python-css-html-js-minify.spec new file mode 100644 index 0000000..76cd3b8 --- /dev/null +++ b/python-css-html-js-minify.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-css-html-js-minify +# +# Copyright (c) 2020 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-%{**}} +%define skip_python2 1 +Name: python-css-html-js-minify +Version: 2.5.5.git.1523718195.8f72452 +Release: 0 +Summary: CSS HTML JS Minifier +License: GPL-3.0-only AND LGPL-3.0-only +Group: Development/Languages/Python +URL: https://github.com/juancarlospaco/css-html-js-minify#css-html-js-minify +Source: css-html-js-minify-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(preun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +Async single-file cross-platform no-dependencies Minifier for the Web + +%prep +%setup -q -n css-html-js-minify-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/css-html-js-minify +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative css-html-js-minify + +%preun +%python_uninstall_alternative css-html-js-minify + +%check +%pyunittest tests.test_html_minifier + +%files %{python_files} +%doc README.md +%license LICENCE.lgpl.txt LICENSE.gpl.txt +%python_alternative %{_bindir}/css-html-js-minify +%{python_sitelib}/* + +%changelog