packages: python-pyquery/python-pyquery.spec (NEW) - init

shadzik shadzik at pld-linux.org
Tue Aug 4 10:29:51 CEST 2009


Author: shadzik                      Date: Tue Aug  4 08:29:51 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- init

---- Files affected:
packages/python-pyquery:
   python-pyquery.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-pyquery/python-pyquery.spec
diff -u /dev/null packages/python-pyquery/python-pyquery.spec:1.1
--- /dev/null	Tue Aug  4 10:29:51 2009
+++ packages/python-pyquery/python-pyquery.spec	Tue Aug  4 10:29:46 2009
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+%define 	module	pyquery
+Summary:	PyQuery - A jquery-like library for python
+Summary(pl.UTF-8):	PyQuery
+Name:		python-%{module}
+Version:	0.3.1
+Release:	1
+License:	BSD
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/p/pyquery/%{module}-%{version}.tar.gz
+# Source0-md5:	6fce9d759b44a9963eb39eda31aa10d7
+URL:		http://pypi.python.org/pypi/pyquery
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools-devel
+BuildRequires:	rpm-pythonprov
+# if py_postclean is used
+BuildRequires:	rpmbuild(macros) >= 1.219
+#Requires:		python-libs
+Requires:	python-modules
+#BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%description -l pl.UTF-8
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+mv $RPM_BUILD_ROOT%{_datadir} $RPM_BUILD_ROOT%{_libdir}
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{py_sitedir}/%{module}/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/pyquery-*.egg-info
+%endif
+
+%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  2009/08/04 08:29:46  shadzik
+- init
+
================================================================


More information about the pld-cvs-commit mailing list