2016-07-06 09:47:21 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-rjsmin
|
|
|
|
#
|
2017-11-15 18:26:56 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-07-06 09:47:21 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-11-15 18:26:56 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
|
|
|
%define mod_name rjsmin
|
|
|
|
|
|
|
|
Name: python-%{mod_name}
|
2016-07-06 09:47:21 +00:00
|
|
|
Version: 1.0.12
|
|
|
|
Release: 0
|
2017-11-15 18:26:56 +00:00
|
|
|
Summary: RJSmin is a JavaScript Minifier Written in Python
|
2016-07-06 09:47:21 +00:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Url: http://opensource.perlig.de/rjsmin/
|
2017-11-15 18:26:56 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/%{mod_name}/%{mod_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2016-07-06 09:47:21 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-11-15 18:26:56 +00:00
|
|
|
|
|
|
|
%python_subpackages
|
2016-07-06 09:47:21 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
rJSmin is a javascript minifier written in python.
|
|
|
|
|
|
|
|
The minifier is based on the semantics of jsmin.c by Douglas Crockford.
|
|
|
|
|
|
|
|
The module is a re-implementation aiming for speed, so it can be used
|
|
|
|
at runtime (rather than during a preprocessing step).
|
|
|
|
|
2017-11-15 18:26:56 +00:00
|
|
|
%package -n %{name}-docs
|
|
|
|
Summary: Documentation files for %name
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description -n %{name}-docs
|
|
|
|
HTML Documentation and examples for %name.
|
|
|
|
|
2016-07-06 09:47:21 +00:00
|
|
|
%prep
|
2017-11-15 18:26:56 +00:00
|
|
|
%setup -q -n %{mod_name}-%{version}
|
2016-07-06 09:47:21 +00:00
|
|
|
|
|
|
|
%build
|
2017-11-15 18:26:56 +00:00
|
|
|
%python_build
|
2016-07-06 09:47:21 +00:00
|
|
|
|
|
|
|
%install
|
2017-11-15 18:26:56 +00:00
|
|
|
%python_install
|
|
|
|
rm -rf %{buildroot}/usr/share/doc/rjsmin
|
2016-07-06 09:47:21 +00:00
|
|
|
|
2017-11-15 18:26:56 +00:00
|
|
|
%files %{python_files}
|
2016-07-06 09:47:21 +00:00
|
|
|
%defattr(-,root,root,-)
|
2017-11-15 18:26:56 +00:00
|
|
|
%doc LICENSE README.rst docs/CHANGES
|
2016-07-06 09:47:21 +00:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2017-11-15 18:26:56 +00:00
|
|
|
%files -n %{name}-docs
|
|
|
|
%doc docs/apidoc/
|
|
|
|
|
2016-07-06 09:47:21 +00:00
|
|
|
%changelog
|