commit 30f2d56a9ceb534c02e2e9ec1b03cc33ffb7c0439af9cc13def0939a7f7a4d9e Author: OBS User unknown Date: Thu Sep 18 02:45:36 2008 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cssutils?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cssutils-0.9.5b2.tar.bz2 b/cssutils-0.9.5b2.tar.bz2 new file mode 100644 index 0000000..78f2cce --- /dev/null +++ b/cssutils-0.9.5b2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c015149087af4589538c2b76b753118f2419e36dc2392b6cdfb7cc6b57ee39e9 +size 891762 diff --git a/python-cssutils.changes b/python-cssutils.changes new file mode 100644 index 0000000..ab1f405 --- /dev/null +++ b/python-cssutils.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Mon Apr 28 17:50:55 CEST 2008 - pth@suse.de + +- Initial package. + + diff --git a/python-cssutils.spec b/python-cssutils.spec new file mode 100644 index 0000000..6b01923 --- /dev/null +++ b/python-cssutils.spec @@ -0,0 +1,105 @@ +# +# 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. diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4