commit python-cssutils for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package python-cssutils for openSUSE:Factory checked in at Mon Sep 5 16:55:19 CEST 2011. -------- --- python-cssutils/python-cssutils.changes 2011-01-11 14:17:03.000000000 +0100 +++ python-cssutils/python-cssutils.changes 2011-09-02 11:35:26.000000000 +0200 @@ -1,0 +2,7 @@ +Fri Sep 2 09:33:05 UTC 2011 - saschpe@suse.de + +- Update to version 0.9.8a3: + * No HTML docs anymore +- Spec file cleanup + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- cssutils-0.9.8a1.zip New: ---- cssutils-0.9.8a3.zip ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cssutils.spec ++++++ --- /var/tmp/diff_new_pack.vS1Zqc/_old 2011-09-05 16:48:22.000000000 +0200 +++ /var/tmp/diff_new_pack.vS1Zqc/_new 2011-09-05 16:48:22.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-cssutils (Version 0.9.8a1) +# spec file for package python-cssutils # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -15,76 +15,46 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: python-cssutils -Version: 0.9.8a1 +Version: 0.9.8a3 Release: 1 -Summary: Cascading Style Sheets (CSS) parser and library for Python -Source: http://cssutils.googlecode.com/files/cssutils-%{version}.zip -Url: http://cthedot.de/cssutils -Group: Development/Libraries/Python -License: LGPLv3+ +Url: http://cthedot.de/cssutils/ +Summary: A CSS Cascading Style Sheets library for Python +License: LGPL-3.0+ +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/c/cssutils/cssutils-%{version}.zip BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} >= 1120 -BuildArch: noarch -%endif +BuildRequires: python-devel +BuildRequires: python-distribute BuildRequires: unzip -BuildRequires: dos2unix python-devel python-setuptools >= 0.6 -BuildRequires: python-xml -# Needed for unittests: -BuildRequires: python-chardet python-minimock +%if 0%{?suse_version} %py_requires -Recommends: %{name}-doc >= %{version} +%if 0%{?suse_version} > 1110 +BuildArch: noarch +%endif +%endif +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description -A Python package to parse and build CSS Cascading Style Sheets. -Currently a DOM only, no rendering options. - -%package doc -License: LGPLv3+ -Summary: Documentation and examples for cssutils -Group: Development/Libraries/Perl - -%description doc -HTML and TeX documentation for cssutils as well as examples of how to use them. +A Python package to parse and build CSS Cascading Style Sheets. DOM only, not any rendering facilities! %prep %setup -q -n cssutils-%{version} -find . -type f -print0 | xargs -0 dos2unix -find . -type f -name \*.py -print0 | xargs -0 sed -i -e 's,/usr/bin/env python,/usr/bin/python,' +sed -i "1d" src/cssutils/{parse,codec,sac,serialize,scripts/csscapture,_codec2,errorhandler,scripts/cssparse,_codec3,scripts/csscombine,tokenize2,__init__}.py # Fix non-executable scripts +sed -i "s/\r//" src/cssutils/{sac,scripts/csscombine,tokenize2}.py COPYING COPYING.LESSER examples/{website,minify,imports,cssencodings,style,testutil,codec}.py # Fix EOL encodings %build -export CFLAGS="%{optflags}" -python ./setup.py build +python setup.py build %install -python ./setup.py install \ - --prefix=%{_prefix} \ - --root=%{buildroot} \ - --record-rpm=%{name}.files - -# Remove any remaining files from sphinx: -rm -rf docs/html/.doctrees -rm -rf docs/html/.buildinfo - -mkdir -p %{buildroot}%{_defaultdocdir}/%{name} -cp -av docs/html %{buildroot}%{_defaultdocdir}/%{name} -cp -av CHANGELOG.txt COPYING COPYING.LESSER README.txt %{buildroot}%{_defaultdocdir}/%{name} - -%clean -rm -rf %{buildroot} - -%files -f %{name}.files -%defattr(-,root,root) -%dir %{_defaultdocdir}/%{name} -%doc %{_defaultdocdir}/%{name}/*.txt -%doc %{_defaultdocdir}/%{name}/COPYING* - -%files doc -%defattr(-,root,root) -%dir %{_defaultdocdir}/%{name}/html -%doc %{_defaultdocdir}/%{name}/html +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root,-) +%doc COPYING COPYING.LESSER README.txt examples +%{_bindir}/css* +%{python_sitelib}/* %changelog ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de