[python-pyquery/f15/master] Initial import (#680020).

Brendan Jones bsjones at fedoraproject.org
Sat Feb 26 13:50:48 UTC 2011


commit 0b9a31ea9c445d16c38f77fa5927cf90234aa698
Author: Brendan Jones <brendan.jones.it at gmail.com>
Date:   Sat Feb 26 23:50:35 2011 +1000

    Initial import (#680020).

 .gitignore          |    1 +
 python-pyquery.spec |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c458970 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyquery-0.6.1.tar.gz
diff --git a/python-pyquery.spec b/python-pyquery.spec
new file mode 100644
index 0000000..fc0f73f
--- /dev/null
+++ b/python-pyquery.spec
@@ -0,0 +1,55 @@
+%global real_name pyquery
+ 
+Name:           python-%{real_name}
+Version:        0.6.1
+Release:        3%{?dist}
+Summary:        A jQuery-like library for python
+Group:          Development/Libraries
+License:        BSD
+URL:            http://pypi.python.org/pypi/pyquery
+Source0:        http://pypi.python.org/packages/source/p/%{real_name}/%{real_name}-%{version}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  python-devel, python-setuptools, python-lxml
+Requires:       python-lxml
+
+%description
+python-pyquery allows you to make jQuery queries on XML documents. The API is 
+as much as possible the similar to jQuery. python-pyquery uses lxml for fast 
+XML and HTML manipulation.
+
+%prep
+%setup -qn %{real_name}-%{version}
+# Fix encoding issues
+for file in CHANGES.txt README.txt ; do
+   sed 's|\r||' $file > $file.tmp
+   iconv -f ISO-8859-1 -t UTF8 $file.tmp > $file.tmp2
+   touch -r $file $file.tmp2
+   mv -f $file.tmp2 $file
+done
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build  --root %{buildroot}
+
+%check
+%{__python} setup.py test
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGES.txt README.txt
+%{python_sitelib}/pyquery/
+%{python_sitelib}/pyquery*.egg-info/
+
+%changelog
+* Fri Feb 25 2011 Brendan Jones <brendan DOT jones DOT it AT gmail DOT com> 0.6.1-3
+- Dropped BuildRoot and corrected spelling
+
+* Thu Feb 24 2011 Brendan Jones <brendan DOT jones DOT it AT gmail DOT com> 0.6.1-2
+- Add missing build requires, further qualify file ownership, remove unnecessary
+cleaning
+
+* Tue Feb 6 2011 Brendan Jones <brendan DOT jones DOT it AT gmail DOT com> 0.6.1-1
+- initial spec
diff --git a/sources b/sources
index e69de29..20f3275 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2a677d7c52b1aa89f5aaa70427e36b70  pyquery-0.6.1.tar.gz


More information about the scm-commits mailing list