rpms/python-cssutils/F-9 cssutils-0.9.5.1-nohashbang.patch, NONE, 1.1 python-cssutils.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Matthias Saou thias at fedoraproject.org
Mon Oct 13 09:07:21 UTC 2008


Author: thias

Update of /cvs/extras/rpms/python-cssutils/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8331/F-9

Modified Files:
	.cvsignore sources 
Added Files:
	cssutils-0.9.5.1-nohashbang.patch python-cssutils.spec 
Log Message:
Initial import.


cssutils-0.9.5.1-nohashbang.patch:

--- NEW FILE cssutils-0.9.5.1-nohashbang.patch ---
diff -Naupr cssutils-0.9.5.1.orig/src/cssutils/codec.py cssutils-0.9.5.1/src/cssutils/codec.py
--- cssutils-0.9.5.1.orig/src/cssutils/codec.py	2008-08-09 21:17:48.000000000 +0200
+++ cssutils-0.9.5.1/src/cssutils/codec.py	2008-08-19 15:28:25.000000000 +0200
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 """Python codec for CSS."""
 __docformat__ = 'restructuredtext'
 __author__ = 'Walter Doerwald'
diff -Naupr cssutils-0.9.5.1.orig/src/cssutils/errorhandler.py cssutils-0.9.5.1/src/cssutils/errorhandler.py
--- cssutils-0.9.5.1.orig/src/cssutils/errorhandler.py	2008-07-29 21:36:26.000000000 +0200
+++ cssutils-0.9.5.1/src/cssutils/errorhandler.py	2008-08-19 15:28:33.000000000 +0200
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 """cssutils ErrorHandler
 
 ErrorHandler
diff -Naupr cssutils-0.9.5.1.orig/src/cssutils/__init__.py cssutils-0.9.5.1/src/cssutils/__init__.py
--- cssutils-0.9.5.1.orig/src/cssutils/__init__.py	2008-08-11 20:11:24.000000000 +0200
+++ cssutils-0.9.5.1/src/cssutils/__init__.py	2008-08-19 15:28:43.000000000 +0200
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 """cssutils - CSS Cascading Style Sheets library for Python
 
     Copyright (C) 2004-2008 Christof Hoeke
diff -Naupr cssutils-0.9.5.1.orig/src/cssutils/parse.py cssutils-0.9.5.1/src/cssutils/parse.py
--- cssutils-0.9.5.1.orig/src/cssutils/parse.py	2008-08-09 21:27:52.000000000 +0200
+++ cssutils-0.9.5.1/src/cssutils/parse.py	2008-08-19 15:28:49.000000000 +0200
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 """a validating CSSParser
 """
 __all__ = ['CSSParser']
diff -Naupr cssutils-0.9.5.1.orig/src/cssutils/scripts/csscapture.py cssutils-0.9.5.1/src/cssutils/scripts/csscapture.py
--- cssutils-0.9.5.1.orig/src/cssutils/scripts/csscapture.py	2008-07-09 15:12:56.000000000 +0200
+++ cssutils-0.9.5.1/src/cssutils/scripts/csscapture.py	2008-08-19 15:29:04.000000000 +0200
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 """Retrieve all CSS stylesheets including embedded for a given URL.
 Retrieve as StyleSheetList or save to disk - raw, parsed or minified version.
 
diff -Naupr cssutils-0.9.5.1.orig/src/cssutils/scripts/csscombine.py cssutils-0.9.5.1/src/cssutils/scripts/csscombine.py
--- cssutils-0.9.5.1.orig/src/cssutils/scripts/csscombine.py	2008-07-09 15:12:56.000000000 +0200
+++ cssutils-0.9.5.1/src/cssutils/scripts/csscombine.py	2008-08-19 15:29:12.000000000 +0200
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 """Combine sheets referred to by @import rules in a given CSS proxy sheet
 into a single new sheet.
 
@@ -87,4 +86,4 @@ def main(args=None):
 
 
 if __name__ == '__main__':
-    sys.exit(main())
\ No newline at end of file
+    sys.exit(main())
diff -Naupr cssutils-0.9.5.1.orig/src/cssutils/scripts/cssparse.py cssutils-0.9.5.1/src/cssutils/scripts/cssparse.py
--- cssutils-0.9.5.1.orig/src/cssutils/scripts/cssparse.py	2008-07-08 23:17:10.000000000 +0200
+++ cssutils-0.9.5.1/src/cssutils/scripts/cssparse.py	2008-08-19 15:29:22.000000000 +0200
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 """utility script to parse given filenames or string
 """
 __docformat__ = 'restructuredtext'
diff -Naupr cssutils-0.9.5.1.orig/src/cssutils/serialize.py cssutils-0.9.5.1/src/cssutils/serialize.py
--- cssutils-0.9.5.1.orig/src/cssutils/serialize.py	2008-08-09 21:28:06.000000000 +0200
+++ cssutils-0.9.5.1/src/cssutils/serialize.py	2008-08-19 15:29:28.000000000 +0200
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 """serializer classes for CSS classes
 
diff -Naupr cssutils-0.9.5.1.orig/src/cssutils/tokenize2.py cssutils-0.9.5.1/src/cssutils/tokenize2.py
--- cssutils-0.9.5.1.orig/src/cssutils/tokenize2.py	2008-08-09 21:28:36.000000000 +0200
+++ cssutils-0.9.5.1/src/cssutils/tokenize2.py	2008-08-19 15:29:36.000000000 +0200
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 """New CSS Tokenizer (a generator)
 """
diff -Naupr cssutils-0.9.5.1.orig/src/encutils/__init__.py cssutils-0.9.5.1/src/encutils/__init__.py
--- cssutils-0.9.5.1.orig/src/encutils/__init__.py	2008-03-19 21:18:06.000000000 +0100
+++ cssutils-0.9.5.1/src/encutils/__init__.py	2008-08-19 15:29:47.000000000 +0200
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 """encutils - encoding detection collection for Python
 
 encutils
@@ -652,4 +651,4 @@ def getEncodingInfo(response=None, text=
 
 if __name__ == '__main__':
     import pydoc
-    pydoc.help(__name__)
\ No newline at end of file
+    pydoc.help(__name__)


--- NEW FILE python-cssutils.spec ---
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")

Summary: CSS Cascading Style Sheets library for Python
Name: python-cssutils
Version: 0.9.5.1
Release: 3%{?dist}
License: LGPLv3+
Group: Development/Libraries
URL: http://cthedot.de/cssutils/
Source: http://cssutils.googlecode.com/files/cssutils-%{version}.zip
Patch0: cssutils-0.9.5.1-nohashbang.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
# Required at runtime for the css* executables
Requires: python-setuptools
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildArch: noarch

%description
A Python package to parse and build CSS Cascading Style Sheets. DOM only, not
any rendering facilities.


%package doc
Summary: Documentation for the CSS Cascading Style Sheets library for Python
Group: Documentation

%description doc
This is the documentation for python-cssutils, a Python package to parse and
build CSS Cascading Style Sheets.


%prep
%setup -q -n cssutils-%{version}
%patch0 -p1
# Convert all CRLF files, keeping original timestamps
for FILE in `find . -type f -exec grep -Pl '\r\n' {} \;`; do
    tr -d '\r' < ${FILE} > ${FILE}.tmp
    touch -r ${FILE} ${FILE}.timestamp
    cat ${FILE}.tmp > ${FILE}
    touch -r ${FILE}.timestamp ${FILE}
    rm -f ${FILE}.timestamp ${FILE}.tmp
done


%build
%{__python} setup.py build


%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install \
    --single-version-externally-managed \
    -O1 --skip-build --root %{buildroot}


%clean
%{__rm} -rf %{buildroot}


%files
# The sources have some 2755 mode directories (as of 0.9.5.1), fix here
%defattr(-,root,root,0755)
%doc CHANGELOG.txt COPYING* docs/ README.txt
%{_bindir}/csscapture
%{_bindir}/csscombine
%{_bindir}/cssparse
%{python_sitelib}/cssutils-*.egg-info/
%{python_sitelib}/cssutils/
%{python_sitelib}/encutils/
# This is a way too generic name!
%exclude %{python_sitelib}/tests/

%files doc
%defattr(-,root,root,-)
%doc doc/*

%changelog
* Fri Oct 10 2008 Matthias Saou <http://freshrpms.net/> 0.9.5.1-3
- Add missing python-setuptools BR, split off doc sub-package (mschwendt).

* Thu Oct  9 2008 Matthias Saou <http://freshrpms.net/> 0.9.5.1-2
- Update license, group, add python-setuptools requirement (mschwendt).

* Tue Aug 19 2008 Matthias Saou <http://freshrpms.net/> 0.9.5.1-1
- Update to 0.9.5.1.

* Fri Aug  8 2008 Matthias Saou <http://freshrpms.net/> 0.9.5-1
- Update to 0.9.5 final.

* Tue Jul 15 2008 Matthias Saou <http://freshrpms.net/> 0.9.5b2-0.2.rc2
- Convert CRLF end of lines.
- Patch out #!/... magic from python files meant to be included and not run.

* Tue Jul 15 2008 Matthias Saou <http://freshrpms.net/> 0.9.5b2-0.1.rc2
- Initial RPM release.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-cssutils/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	10 Oct 2008 23:06:46 -0000	1.1
+++ .cvsignore	13 Oct 2008 09:06:50 -0000	1.2
@@ -0,0 +1 @@
+cssutils-0.9.5.1.zip


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-cssutils/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	10 Oct 2008 23:06:46 -0000	1.1
+++ sources	13 Oct 2008 09:06:51 -0000	1.2
@@ -0,0 +1 @@
+b5ee33892918c6589017cfb318db8190  cssutils-0.9.5.1.zip




More information about the scm-commits mailing list