diff --git a/README.md b/README.md index 1e0c108..1f8f79e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-cssutils +A Python package to parse and build CSS Cascading Style Sheets. Currently a DOM only, no rendering options. + diff --git a/python-cssutils.spec b/python-cssutils.spec new file mode 100644 index 0000000..a6615c0 --- /dev/null +++ b/python-cssutils.spec @@ -0,0 +1,79 @@ +Name: python-cssutils +Version: 1.0 +Release: 1mamba +Summary: A Python package to parse and build CSS Cascading Style Sheets. +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Ercole 'ercolinux' Carpanetto +URL: http://cthedot.de/cssutils/ +Source: https://bitbucket.org/cthedot/cssutils/downloads/cssutils-%{version}.zip +License: LGPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: libpython-devel +Requires: python >= %python_version +Provides: cssutils +Obsoletes: cssutils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A Python package to parse and build CSS Cascading Style Sheets. Currently a DOM only, no rendering options. + +%prep +%setup -q -n cssutils-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --single-version-externally-managed + +rm -rf %{buildroot}%{python_sitearch}/tests + +%files +%defattr(-,root,root) +%{_bindir}/csscapture +%{_bindir}/csscombine +%{_bindir}/cssparse +%dir %{python_sitearch}/cssutils-%{version}-py%{python_version}.egg-info +%{python_sitearch}/cssutils-%{version}-py%{python_version}.egg-info/PKG-INFO +%{python_sitearch}/cssutils-%{version}-py%{python_version}.egg-info/*.txt +%dir %{python_sitearch}/cssutils +%{python_sitearch}/cssutils/*.py* +%dir %{python_sitearch}/cssutils/css +%{python_sitearch}/cssutils/css/*.py* +%dir %{python_sitearch}/cssutils/scripts +%{python_sitearch}/cssutils/scripts/*.py* +%dir %{python_sitearch}/cssutils/stylesheets +%{python_sitearch}/cssutils/stylesheets/*.py* +%dir %{python_sitearch}/cssutils/tests +%{python_sitearch}/cssutils/tests/* +%dir %{python_sitearch}/encutils +%{python_sitearch}/encutils/*.py +%{python_sitearch}/encutils/*.pyc +%{python_sitearch}/encutils/*.pyo + +%changelog +* Mon Mar 03 2014 Automatic Build System 1.0-1mamba +- automatic version update by autodist + +* Sun Nov 24 2013 Silvan Calarco 0.9.10b1-2mamba +- remove conflicting tests files +- renamed to python-cssutils +- added build requirements + +* Wed Nov 06 2013 Ercole 'ercolinux' Carpanetto 0.9.10b1-1mamba +- update to 0.9.10b1 + +* Sun Jun 02 2013 Silvan Calarco 0.9.7-2mamba +- python 2.7 mass rebuild + +* Mon Dec 27 2010 Ercole 'ercolinux' Carpanetto 0.9.7-1mamba +- package created by autospec