forked from pool/python-pyquery
- updated to version 1.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyquery?expand=0&rev=2
This commit is contained in:
parent
ea8c849463
commit
5bd60ba8f4
@ -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
3
pyquery-1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fb2345065647211507d23355b1026d995ded40e088d86fcae262562921d80408
|
||||||
|
size 17226
|
@ -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
|
Sat Mar 05 07:02:11 CET 2011 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
@ -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())")}
|
%global real_name pyquery
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
||||||
|
|
||||||
Name: python-pyquery
|
Name: python-%{real_name}
|
||||||
Version: 0.7
|
Version: 1.0
|
||||||
Release: 0
|
Release: 1
|
||||||
Summary: XML Querying Module for Python
|
License: BSD
|
||||||
Source: https://bitbucket.org/olauzanne/pyquery/get/34bdaa6c7908.tar.bz2
|
Summary: A jQuery-like library for python
|
||||||
URL: https://bitbucket.org/olauzanne/pyquery/
|
Url: http://pypi.python.org/pypi/pyquery
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries
|
||||||
License: BSD3c
|
Source: http://pypi.python.org/packages/source/p/%{real_name}/%{real_name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-lxml
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
%if 0%{?suse_version} >= 1120
|
Requires: python-lxml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
%py_requires
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pyquery allows you to make jquery queries on xml documents. The API is as much
|
python-pyquery allows you to make jQuery queries on XML documents. The API is
|
||||||
as possible the similar to jquery. pyquery uses lxml for fast xml and html
|
as much as possible the similar to jQuery. python-pyquery uses lxml for fast
|
||||||
manipulation.
|
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 let’s 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.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n olauzanne-pyquery-34bdaa6c7908
|
%setup -q -n %{real_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__python ./setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%__python ./setup.py install \
|
python setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
--prefix="%{_prefix}" \
|
|
||||||
--root="%{buildroot}" \
|
|
||||||
--record-rpm=files.lst
|
|
||||||
|
|
||||||
%__rm "%{buildroot}%{python_sitelib}/pyquery"/*.txt
|
%check
|
||||||
%__perl -ni -e 'print unless m,\.txt$,' files.lst
|
python setup.py test
|
||||||
|
|
||||||
%clean
|
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
||||||
|
|
||||||
%files -f files.lst
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc LICENSE.txt
|
|
||||||
%doc docs/*.txt
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc CHANGES.txt README.txt
|
||||||
|
%{python_sitelib}/pyquery/
|
||||||
|
%{python_sitelib}/pyquery*.egg-info/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user