packages: python3-lxml/2to3.patch (NEW), python3-lxml/python3-lxml.spec (NE...
wiget
wiget at pld-linux.org
Thu Mar 11 18:09:52 CET 2010
Author: wiget Date: Thu Mar 11 17:09:52 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- python3 version
---- Files affected:
packages/python3-lxml:
2to3.patch (NONE -> 1.1) (NEW), python3-lxml.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python3-lxml/2to3.patch
diff -u /dev/null packages/python3-lxml/2to3.patch:1.1
--- /dev/null Thu Mar 11 18:09:52 2010
+++ packages/python3-lxml/2to3.patch Thu Mar 11 18:09:47 2010
@@ -0,0 +1,30 @@
+--- src/lxml/html/_diffcommand.py (original)
++++ src/lxml/html/_diffcommand.py (refactored)
+@@ -34,7 +34,7 @@
+ if options.annotation:
+ return annotate(options, args)
+ if len(args) != 2:
+- print 'Error: you must give two files'
++ print('Error: you must give two files')
+ parser.print_help()
+ sys.exit(1)
+ file1, file2 = args
+@@ -82,6 +82,6 @@
+ return pre, html, post
+
+ def annotate(options, args):
+- print "Not yet implemented"
++ print("Not yet implemented")
+ sys.exit(1)
+
+--- src/lxml/html/_html5builder.py (original)
++++ src/lxml/html/_html5builder.py (refactored)
+@@ -77,7 +77,7 @@
+ self.doctype.systemId))
+ buf.append('>')
+ buf.append('<html></html>')
+- root = html.fromstring(u''.join(buf))
++ root = html.fromstring(''.join(buf))
+
+ # Append the initial comments:
+ for comment in self.initialComments:
================================================================
Index: packages/python3-lxml/python3-lxml.spec
diff -u /dev/null packages/python3-lxml/python3-lxml.spec:1.1
--- /dev/null Thu Mar 11 18:09:52 2010
+++ packages/python3-lxml/python3-lxml.spec Thu Mar 11 18:09:47 2010
@@ -0,0 +1,70 @@
+# $Revision$, $Date$
+#
+%define module lxml
+#
+Summary: A Pythonic binding for the libxml2 and libxslt libraries
+Summary(pl.UTF-8): Pythonowe wiązanie do bibliotek libxml2 i libxslt
+Name: python3-%{module}
+Version: 2.2.6
+Release: 1
+License: BSD
+Group: Libraries/Python
+Source0: http://codespeak.net/lxml/%{module}-%{version}.tgz
+# Source0-md5: b1f700fb22d7ee9b977ee3eceb65b20c
+Patch0: 2to3.patch
+URL: http://codespeak.net/lxml/
+BuildRequires: libxml2-devel
+BuildRequires: libxslt-devel
+BuildRequires: python3-Cython
+BuildRequires: python3-devel
+BuildRequires: python3-modules
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: unzip
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+lxml is a Pythonic binding for the libxml2 and libxslt libraries.
+
+%description -l pl.UTF-8
+lxml to pythonowe wiązanie do bibliotek libxml2 i libxslt.
+
+%prep
+%setup -q -n %{module}-%{version}
+%patch0 -p0
+
+%build
+%{__python3} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__python3} setup.py install \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
+
+%py3_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc doc/* CHANGES.txt CREDITS.txt TODO.txt
+%dir %{py3_sitedir}/lxml
+%{py3_sitedir}/lxml/*.py[co]
+%dir %{py3_sitedir}/lxml/html
+%{py3_sitedir}/lxml/html/*.py[co]
+%attr(755,root,root) %{py3_sitedir}/lxml/etree.so
+%attr(755,root,root) %{py3_sitedir}/lxml/objectify.so
+%{py3_sitedir}/lxml-*.egg-info
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/03/11 17:09:47 wiget
+- python3 version
+
================================================================
More information about the pld-cvs-commit
mailing list