[packages/python-cssselect] Release 1. noarch, cleaning.

matkor matkor at pld-linux.org
Wed Oct 10 13:04:16 CEST 2012


commit b64e7701551583dbb0b32bde8395238df15525ac
Author: Mateusz Korniak <matkor at pld-linux.org>
Date:   Wed Oct 10 13:03:38 2012 +0200

    Release 1. noarch, cleaning.

 python-cssselect.spec | 31 ++-----------------------------
 1 file changed, 2 insertions(+), 29 deletions(-)
---
diff --git a/python-cssselect.spec b/python-cssselect.spec
index 9e94144..9585da4 100644
--- a/python-cssselect.spec
+++ b/python-cssselect.spec
@@ -1,29 +1,18 @@
-#
-# Conditional build:
-%bcond_without	tests	# do not perform "make test"
-
 %define 	module	cssselect
 Summary:	Python moudle for parsing CSS3 Selectors and translating them to XPath 1.0 expressions
 Summary(pl.UTF-8):	Moduł pythona interpretujący selektory CSS i tłumaczący je na wyrażenia XPath 1.0
-# Name must match the python module/package name (as in 'import' statement)
-######		/home/users/matkor/rpm/packages/../rpm-build-tools/rpm.groups: no such file
 Name:		python-%{module}
 Version:	0.7.1
-Release:	0.1
+Release:	1
 License:	BSD
 Group:		Development/Languages/Python
 Source0:	http://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
 # Source0-md5:	c6c5e9a2e7ca226ce03f6f67a771379c
 URL:		http://packages.python.org/cssselect/
-BuildRequires:	python-devel
 BuildRequires:	python-distribute
 BuildRequires:	rpm-pythonprov
-# remove BR: python-devel for 'noarch' packages.
-# if py_postclean is used
-BuildRequires:	rpmbuild(macros) >= 1.219
-#Requires:		python-libs
 Requires:	python-modules
-#BuildArch:	noarch
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -43,17 +32,9 @@ jako osobny projekt.
 %prep
 %setup -q -n %{module}-%{version}
 
-# fix #!%{_bindir}/env python -> #!%{_bindir}/python:
-# %{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{name}.py
-
 %build
-# CC/CFLAGS is only for arch packages - remove on noarch packages
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
 %{__python} setup.py build
 
-%{?with_tests:%{__python} setup.py test}
-
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install \
@@ -61,13 +42,8 @@ rm -rf $RPM_BUILD_ROOT
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
-# install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-# cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-
-# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
-%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -75,10 +51,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 # %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
-# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
-# %{py_sitescriptdir}/*.py[co]
 %if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/%{module}-*.egg-info
 %endif
-# %{py_sitescriptdir}/%{name}-%{version}
 %{py_sitescriptdir}/%{module}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-cssselect.git/commitdiff/b64e7701551583dbb0b32bde8395238df15525ac



More information about the pld-cvs-commit mailing list