forked from pool/python-cssutils
106 lines
3.0 KiB
RPMSpec
106 lines
3.0 KiB
RPMSpec
|
|
#
|
||
|
|
# spec file for package python-cssutils (Version 0.9.5b2)
|
||
|
|
#
|
||
|
|
# Copyright (c) 2008 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
|
||
|
|
# upon. The license for this file, and modifications and additions to the
|
||
|
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
|
# license for the pristine package is not an Open Source License, in which
|
||
|
|
# 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
|
||
|
|
BuildRequires: dos2unix python-devel python-setuptools
|
||
|
|
Version: 0.9.5b2
|
||
|
|
Release: 2
|
||
|
|
Summary: Cascading Style Sheets (CSS) parser and library for Python
|
||
|
|
Source: cssutils-%{version}.tar.bz2
|
||
|
|
Url: http://cthedot.de/cssutils
|
||
|
|
Group: Development/Libraries/Perl
|
||
|
|
License: LGPL v3 or later
|
||
|
|
Recommends: %{name}-doc >= %{version}
|
||
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
%py_requires
|
||
|
|
|
||
|
|
%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
|
||
|
|
|
||
|
|
%package doc
|
||
|
|
License: LGPL v3 or later
|
||
|
|
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
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n cssutils-%{version}
|
||
|
|
find . -type f -print0| xargs -0 dos2unix
|
||
|
|
|
||
|
|
%build
|
||
|
|
export CFLAGS="%{optflags}"
|
||
|
|
python ./setup.py build
|
||
|
|
|
||
|
|
%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
|
||
|
|
|
||
|
|
%clean
|
||
|
|
rm -rf %{buildroot}
|
||
|
|
|
||
|
|
%files -f INSTALLED_FILES
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%doc CHANGELOG.txt docs/ LICENSE.txt README.txt COPYING.LESSER
|
||
|
|
|
||
|
|
%files doc
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%doc doc/ examples/
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Apr 28 2008 pth@suse.de
|
||
|
|
- Initial package.
|