Hello community,

here is the log from the commit of package python-rjsmin for openSUSE:Factory 
checked in at 2017-11-16 14:02:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rjsmin (Old)
 and      /work/SRC/openSUSE:Factory/.python-rjsmin.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rjsmin"

Thu Nov 16 14:02:45 2017 rev:2 rq:542114 version:1.0.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rjsmin/python-rjsmin.changes      
2017-09-22 21:34:03.823389191 +0200
+++ /work/SRC/openSUSE:Factory/.python-rjsmin.new/python-rjsmin.changes 
2017-11-16 14:02:46.433799663 +0100
@@ -1,0 +2,7 @@
+Wed Nov 15 17:45:23 UTC 2017 - [email protected]
+
+- spec file
+  + convert to single spec file
+  + move docs into separate package
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-rjsmin.spec ++++++
--- /var/tmp/diff_new_pack.zJ1MCQ/_old  2017-11-16 14:02:47.321767483 +0100
+++ /var/tmp/diff_new_pack.zJ1MCQ/_new  2017-11-16 14:02:47.325767338 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-rjsmin
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,24 @@
 #
 
 
-Name:           python-rjsmin
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+
+%define mod_name rjsmin
+
+Name:           python-%{mod_name}
 Version:        1.0.12
 Release:        0
-Summary:        RJSmin is a javascript minifier written in python
+Summary:        RJSmin is a JavaScript Minifier Written in Python
 License:        Apache-2.0
 Group:          Development/Languages/Python
 Url:            http://opensource.perlig.de/rjsmin/
-Source:         
https://pypi.io/packages/source/r/rjsmin/rjsmin-%{version}.tar.gz
-BuildRequires:  python-devel
+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
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%py_requires
+
+%python_subpackages
 
 %description
 rJSmin is a javascript minifier written in python.
@@ -36,19 +43,29 @@
 The module is a re-implementation aiming for speed, so it can be used
 at runtime (rather than during a preprocessing step).
 
+%package -n %{name}-docs
+Summary:        Documentation files for %name
+Group:          Documentation/HTML
+
+%description -n %{name}-docs
+HTML Documentation and examples for %name.
+
 %prep
-%setup -q -n rjsmin-%{version}
+%setup -q -n %{mod_name}-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+rm -rf %{buildroot}/usr/share/doc/rjsmin
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc LICENSE README.rst
-%{_datadir}/doc/rjsmin
+%doc LICENSE README.rst docs/CHANGES
 %{python_sitearch}/*
 
+%files -n %{name}-docs
+%doc docs/apidoc/
+
 %changelog


Reply via email to