1
0
Pavol Rusnak 2011-10-09 10:04:50 +00:00 committed by Git OBS Bridge
parent ea8c849463
commit 5bd60ba8f4
4 changed files with 39 additions and 49 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d42c48af4792531dc87c7e68a4080c1bb3f25201cdd51314615a745e1a600914
size 21405

3
pyquery-1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fb2345065647211507d23355b1026d995ded40e088d86fcae262562921d80408
size 17226

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Oct 9 09:57:45 UTC 2011 - prusnak@opensuse.org
- updated to version 1.0
-------------------------------------------------------------------
Sat Mar 05 07:02:11 CET 2011 - pascal.bleser@opensuse.org

View File

@ -1,59 +1,44 @@
# vim: set sw=4 ts=4 et:
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%global real_name pyquery
Name: python-pyquery
Version: 0.7
Release: 0
Summary: XML Querying Module for Python
Source: https://bitbucket.org/olauzanne/pyquery/get/34bdaa6c7908.tar.bz2
URL: https://bitbucket.org/olauzanne/pyquery/
Group: Development/Libraries/Python
License: BSD3c
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: python-devel
BuildRequires: python-setuptools
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%py_requires
Name: python-%{real_name}
Version: 1.0
Release: 1
License: BSD
Summary: A jQuery-like library for python
Url: http://pypi.python.org/pypi/pyquery
Group: Development/Libraries
Source: http://pypi.python.org/packages/source/p/%{real_name}/%{real_name}-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-lxml
BuildRequires: python-setuptools
Requires: python-lxml
BuildArch: noarch
%description
pyquery allows you to make jquery queries on xml documents. The API is as much
as possible the similar to jquery. pyquery uses lxml for fast xml and html
manipulation.
This is not (or at least not yet) a library to produce or interact with
javascript code. I just liked the jquery API and I missed it in python so I
told myself “Hey lets make jquery in python”. This is the result.
It can be used for many purposes, one idea that I might try in the future is to
use it for templating with pure http templates that you modify using pyquery. I
can also be used for web scrapping or for theming applications with
Deliverance.
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 -q -n olauzanne-pyquery-34bdaa6c7908
%setup -q -n %{real_name}-%{version}
%build
%__python ./setup.py build
python setup.py build
%install
%__python ./setup.py install \
--prefix="%{_prefix}" \
--root="%{buildroot}" \
--record-rpm=files.lst
python setup.py install -O1 --skip-build --root %{buildroot}
%__rm "%{buildroot}%{python_sitelib}/pyquery"/*.txt
%__perl -ni -e 'print unless m,\.txt$,' files.lst
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f files.lst
%defattr(-,root,root)
%doc LICENSE.txt
%doc docs/*.txt
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc CHANGES.txt README.txt
%{python_sitelib}/pyquery/
%{python_sitelib}/pyquery*.egg-info/
%changelog