Accepting request 40387 from devel:languages:python
Copy from devel:languages:python/python-cssutils based on submit request 40387 from user prusnak OBS-URL: https://build.opensuse.org/request/show/40387 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cssutils?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
fa4fb0742b
commit
eb04141b26
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c015149087af4589538c2b76b753118f2419e36dc2392b6cdfb7cc6b57ee39e9
|
||||
size 891762
|
||||
3
cssutils-0.9.7a4.tar.bz2
Normal file
3
cssutils-0.9.7a4.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f7ab2547a6cb5d14031cbada71eab8ad72b5d929eb8de68c1d29c7ae566f3ed3
|
||||
size 341717
|
||||
26
python-cssutils-copy.py.patch
Normal file
26
python-cssutils-copy.py.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
conf.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
Index: conf.py
|
||||
===================================================================
|
||||
--- conf.py.orig
|
||||
+++ conf.py
|
||||
@@ -124,7 +124,7 @@ html_static_path = ['_static']
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
-#html_use_smartypants = True
|
||||
+html_use_smartypants = False
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#html_sidebars = {}
|
||||
@@ -143,7 +143,7 @@ html_static_path = ['_static']
|
||||
#html_split_index = False
|
||||
|
||||
# If true, the reST sources are included in the HTML build as _sources/<name>.
|
||||
-#html_copy_source = True
|
||||
+html_copy_source = False
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
@@ -1,6 +1,31 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 18 14:53:05 CEST 2010 - prusnak@suse.cz
|
||||
|
||||
- Update to 0.9.7a4
|
||||
- cleanup spec file
|
||||
- api changes:
|
||||
* CSSRule values changed: NAMESPACE_RULE, COMMENT, VARIABLES_RULE
|
||||
* CSSStyleSheet.setSerializer and CSSStyleSheet.setSerializerPref DEPRECATED
|
||||
- compliance to http://dev.w3.org/csswg/cssom improved.
|
||||
- new features:
|
||||
* Started CSS Variables <http://disruptive-innovations.com/zoo/cssvariables/>
|
||||
* added cssutils.css.CSSStyleSheet.variables
|
||||
* cssutils.ser.prefs.resolveVariables switchable
|
||||
* cssutils.ser.prefs.normalizedVarNames switchable
|
||||
* Added new options to cssutils.script.csscombine: cssText=None, href=None
|
||||
* Added CSSRuleList.rulesOfType(type)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 17 13:47:09 UTC 2010 - toms@suse.de
|
||||
|
||||
- Update to 0.9.7a3 as needed for FATE#309541
|
||||
- Added build requirement for python-sphinx
|
||||
- Added patch for copy.py (sphinx documentation)
|
||||
- Rebuild HTML documentation with sphinx
|
||||
- Better separate documentation package from main package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 28 17:50:55 CEST 2008 - pth@suse.de
|
||||
|
||||
- Initial package.
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-cssutils (Version 0.9.5b2)
|
||||
# spec file for package python-cssutils (Version 0.9.7a4)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2010 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
|
||||
@@ -19,87 +19,80 @@
|
||||
|
||||
|
||||
Name: python-cssutils
|
||||
BuildRequires: dos2unix python-devel python-setuptools
|
||||
Version: 0.9.5b2
|
||||
Release: 2
|
||||
Version: 0.9.7a4
|
||||
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
|
||||
Url: http://cthedot.de/cssutils
|
||||
Group: Development/Libraries/Perl
|
||||
License: LGPL v3 or later
|
||||
Recommends: %{name}-doc >= %{version}
|
||||
Group: Development/Libraries/Python
|
||||
License: LGPLv3+
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} >= 1120
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
BuildRequires: dos2unix python-devel python-setuptools
|
||||
BuildRequires: dos2unix python-devel python-setuptools >= 0.6 unzip
|
||||
BuildRequires: python-sphinx python-xml
|
||||
# Needed for unittests:
|
||||
BuildRequires: python-chardet python-minimock
|
||||
%py_requires
|
||||
Recommends: %{name}-doc >= %{version}
|
||||
|
||||
%description
|
||||
Cssutils are based upon and partly implement the following
|
||||
specifications (DOM only, not any rendering facilities):
|
||||
|
||||
CSS 2.1 Rules and properties are defined here
|
||||
|
||||
CSS 2.1 Errata A few erratas, mainly the definition of CHARSET_SYM
|
||||
tokens
|
||||
|
||||
MediaQueries MediaQueries are part of stylesheets.MediaList since
|
||||
v0.9.4, used in @import and @media rules.
|
||||
|
||||
Namespaces Added in v0.9.1 and updated to definition in CSSOM in v0.9.4
|
||||
|
||||
Selectors The selector syntax defined here (and not in CSS 2.1) should
|
||||
be parsable with cssutils (should mind though ;) )
|
||||
|
||||
DOM Level 2 Style CSS DOM for package css
|
||||
|
||||
DOM Level 2 Style Stylesheets DOM for package stylesheets
|
||||
|
||||
CSSOM A few details (mainly the NamespaceRule DOM) is taken from here.
|
||||
Plan is to move implementation to the stuff defined here which is newer
|
||||
but still no REC so might change in the future
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Christof Hoeke
|
||||
A Python package to parse and build CSS Cascading Style Sheets.
|
||||
Currently a DOM only, no rendering options.
|
||||
|
||||
%package doc
|
||||
License: LGPL v3 or later
|
||||
License: LGPLv3+
|
||||
Summary: Documentation and examples for cssutils
|
||||
Group: Development/Libraries/Perl
|
||||
|
||||
%description doc
|
||||
This package contains the HTML and TeX documentation for cssutils as
|
||||
well as examples of how to use them.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Christof Hoeke
|
||||
HTML and TeX documentation for cssutils as well as examples of how to use them.
|
||||
|
||||
%prep
|
||||
%setup -q -n cssutils-%{version}
|
||||
find . -type f -print0| xargs -0 dos2unix
|
||||
%patch0
|
||||
find . -type f -print0 | xargs -0 dos2unix
|
||||
|
||||
%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 --prefix=%{_prefix} --root="%{buildroot}" --record-rpm=INSTALLED_FILES
|
||||
sed -i -e 's@/usr/share/man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@%doc /usr/share/man/man\1/\2.gz@g' INSTALLED_FILES
|
||||
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 INSTALLED_FILES
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGELOG.txt docs/ LICENSE.txt README.txt COPYING.LESSER
|
||||
%{_defaultdocdir}/%{name}/*.txt
|
||||
%{_defaultdocdir}/%{name}/COPYING*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc doc/ examples/
|
||||
%dir %{_defaultdocdir}/%{name}/html
|
||||
%{_defaultdocdir}/%{name}/html/*
|
||||
|
||||
%changelog
|
||||
* Mon Apr 28 2008 pth@suse.de
|
||||
- Initial package.
|
||||
|
||||
Reference in New Issue
Block a user