forked from pool/python-css-html-js-minify
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
13
_service
Normal file
13
_service
Normal file
@@ -0,0 +1,13 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="url">https://github.com/juancarlospaco/css-html-js-minify</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="filename">css-html-js-minify</param>
|
||||
<param name="versionprefix">2.5.5.git</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="compression">gz</param>
|
||||
<param name="file">*.tar</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled"/>
|
||||
</services>
|
||||
4
_servicedata
Normal file
4
_servicedata
Normal file
@@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/juancarlospaco/css-html-js-minify</param>
|
||||
<param name="changesrevision">8f72452960e41bc5476e50d96481f633eff72750</param></service></servicedata>
|
||||
3
css-html-js-minify-2.5.5.git.1523718195.8f72452.tar.gz
Normal file
3
css-html-js-minify-2.5.5.git.1523718195.8f72452.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3789faf7b1e3826f75b70fdd62d56961332dfb97f20781d3415b87fe8988eca1
|
||||
size 520597
|
||||
6
python-css-html-js-minify.changes
Normal file
6
python-css-html-js-minify.changes
Normal file
@@ -0,0 +1,6 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 10 12:42:43 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- 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
|
||||
66
python-css-html-js-minify.spec
Normal file
66
python-css-html-js-minify.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user