Hello community, here is the log from the commit of package python-rcssmin for openSUSE:Factory checked in at 2017-11-16 14:02:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rcssmin (Old) and /work/SRC/openSUSE:Factory/.python-rcssmin.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rcssmin" Thu Nov 16 14:02:41 2017 rev:2 rq:542112 version:1.0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-rcssmin/python-rcssmin.changes 2017-09-22 21:34:03.299462941 +0200 +++ /work/SRC/openSUSE:Factory/.python-rcssmin.new/python-rcssmin.changes 2017-11-16 14:02:44.253878666 +0100 @@ -1,0 +2,7 @@ +Wed Nov 15 17:50:39 UTC 2017 - [email protected] + +- spec file + + convert to single spec file + + move docs into separate package + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rcssmin.spec ++++++ --- /var/tmp/diff_new_pack.995ZJd/_old 2017-11-16 14:02:44.973852574 +0100 +++ /var/tmp/diff_new_pack.995ZJd/_new 2017-11-16 14:02:44.977852429 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-rcssmin # -# 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,23 @@ # -Name: python-rcssmin +%{?!python_module:%define python_module() python-%{**} python3-%{**}} + +%define mod_name rcssmin + +Name: python-%{mod_name} Version: 1.0.6 Release: 0 -Summary: RCSSmin is a CSS minifier written in python +Summary: RCSSmin is a CSS Minifier Written in Python License: Apache-2.0 Group: Development/Languages/Python Url: http://opensource.perlig.de/rcssmin/ -Source: https://pypi.io/packages/source/r/rcssmin/rcssmin-%{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: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%py_requires + +%python_subpackages %description rCSSmin is a CSS minifier written in python. @@ -42,19 +48,29 @@ redundant properties etc). It does, however, support various CSS hacks (by keeping them working as intended). +%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 rcssmin-%{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/rcssmin -%files +%files %{python_files} %defattr(-,root,root,-) -%doc LICENSE README.rst -%{_datadir}/doc/rcssmin +%doc LICENSE README.rst docs/CHANGES %{python_sitearch}/* +%files -n %{name}-docs +%doc docs/apidoc/ + %changelog
