forked from pool/python-cssutils
Accepting request 48084 from devel:languages:python
Copy from devel:languages:python/python-cssutils based on submit request 48084 from user coolo OBS-URL: https://build.opensuse.org/request/show/48084 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cssutils?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
eb04141b26
commit
fc3cbd6c61
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-cssutils (Version 0.9.7a4)
|
||||
# spec file for package python-cssutils (Version 0.9.7b3)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@@ -19,12 +19,10 @@
|
||||
|
||||
|
||||
Name: python-cssutils
|
||||
Version: 0.9.7a4
|
||||
Version: 0.9.7b3
|
||||
Release: 1
|
||||
Summary: Cascading Style Sheets (CSS) parser and library for Python
|
||||
# retreived from http://cssutils.googlecode.com/files/cssutils-0.9.7a4.zip
|
||||
Source: cssutils-%{version}.tar.bz2
|
||||
Patch0: %{name}-copy.py.patch
|
||||
Source: http://cssutils.googlecode.com/files/cssutils-%{version}.tar.bz2
|
||||
Url: http://cthedot.de/cssutils
|
||||
Group: Development/Libraries/Python
|
||||
License: LGPLv3+
|
||||
@@ -34,7 +32,7 @@ BuildArch: noarch
|
||||
%endif
|
||||
BuildRequires: dos2unix python-devel python-setuptools
|
||||
BuildRequires: dos2unix python-devel python-setuptools >= 0.6 unzip
|
||||
BuildRequires: python-sphinx python-xml
|
||||
BuildRequires: python-xml
|
||||
# Needed for unittests:
|
||||
BuildRequires: python-chardet python-minimock
|
||||
%py_requires
|
||||
@@ -54,19 +52,12 @@ HTML and TeX documentation for cssutils as well as examples of how to use them.
|
||||
|
||||
%prep
|
||||
%setup -q -n cssutils-%{version}
|
||||
%patch0
|
||||
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,'
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
python ./setup.py build
|
||||
## HINT:
|
||||
## python ./setup.py build_sphinx
|
||||
## Broken:
|
||||
## -> AttributeError: 'NoneType' object has no attribute 'startswith'
|
||||
## If necessary, build the HTML documentation directly:
|
||||
export PYTHONPATH=./src/
|
||||
sphinx-build -b html . docs/html
|
||||
|
||||
%install
|
||||
python ./setup.py install \
|
||||
|
||||
Reference in New Issue
Block a user