diff --git a/cssutils-0.9.8a1.zip b/cssutils-0.9.8a1.zip deleted file mode 100644 index 796e6d3..0000000 --- a/cssutils-0.9.8a1.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:861f797558fe2062a72a90fb31d93dcc2272e644ee2ba5651fe9565d477dabc5 -size 580579 diff --git a/cssutils-0.9.8a3.zip b/cssutils-0.9.8a3.zip new file mode 100644 index 0000000..ee4519d --- /dev/null +++ b/cssutils-0.9.8a3.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47e668358c456451bd9f2b276b936d331a390e46f3926a825f88e52b0ccf82d2 +size 309221 diff --git a/python-cssutils.changes b/python-cssutils.changes index 97a08c9..a7dfd5b 100644 --- a/python-cssutils.changes +++ b/python-cssutils.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Sep 2 09:33:05 UTC 2011 - saschpe@suse.de + +- Update to version 0.9.8a3: + * No HTML docs anymore +- Spec file cleanup + ------------------------------------------------------------------- Thu Jan 6 19:41:00 UTC 2011 - rwobben@hotmail.com diff --git a/python-cssutils.spec b/python-cssutils.spec index 38d80f4..051f02c 100644 --- a/python-cssutils.spec +++ b/python-cssutils.spec @@ -1,7 +1,7 @@ # # spec file for package python-cssutils # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -11,80 +11,48 @@ # 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/ # -# norootforbuild - - Name: python-cssutils -Version: 0.9.8a1 -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+ +Version: 0.9.8a3 +Release: 0 +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 +BuildRequires: python-devel +BuildRequires: python-distribute +BuildRequires: unzip +%if 0%{?suse_version} +%py_requires +%if 0%{?suse_version} > 1110 BuildArch: noarch %endif -BuildRequires: unzip -BuildRequires: dos2unix python-devel python-setuptools >= 0.6 -BuildRequires: python-xml -# Needed for unittests: -BuildRequires: python-chardet python-minimock -%py_requires -Recommends: %{name}-doc >= %{version} +%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 +python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# 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 +%files +%defattr(-,root,root,-) +%doc COPYING COPYING.LESSER README.txt examples +%{_bindir}/css* +%{python_sitelib}/* %changelog