[packaging] spec file tweaks
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 08 Apr 2013 17:11:26 +0200
changeset 704 47cce2221f93
parent 699 fce807ab709a
child 705 91188a83186e
child 708 0c6345ca92b1
[packaging] spec file tweaks make it look more like our other modules
python-rql.spec
--- a/python-rql.spec	Fri Nov 16 17:43:37 2012 +0100
+++ b/python-rql.spec	Mon Apr 08 17:11:26 2013 +0200
@@ -7,21 +7,21 @@
 %define __python /usr/bin/python
 %endif
 
-Name: %{python}-rql
-Version: 0.31.2
-Release: logilab.1%{?dist}
-Summary: relationship query language (RQL) utilities
+Name:           %{python}-rql
+Version:        0.31.2
+Release:        logilab.1%{?dist}
+Summary:        relationship query language (RQL) utilities
 
-Group: Development/Languages/Python
-License: LGPLv2+
-URL: http://www.logilab.org/project/rql
-Source0: http://download.logilab.org/pub/rql/rql-%{version}.tar.gz
-BuildArch: noarch
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Group:          Development/Languages/Python
+License:        LGPLv2+
+URL:            http://www.logilab.org/project/rql
+Source0:        http://download.logilab.org/pub/rql/rql-%{version}.tar.gz
+BuildArch:      noarch
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
-BuildRequires: %{python}-devel
-BuildRequires: gecode-devel
-Requires: %{python}, %{python}-logilab-common >= 0.47.0, %{python}-logilab-database >= 1.6.0, %{python}-yapps2 >= 2.1.1, %{python}-logilab-constraint >= 0.5.0
+BuildRequires:  %{python}-devel
+BuildRequires:  gecode-devel
+Requires:       %{python}, %{python}-logilab-common >= 0.47.0, %{python}-logilab-database >= 1.6.0, %{python}-yapps2 >= 2.1.1, %{python}-logilab-constraint >= 0.5.0
 
 
 %description
@@ -38,7 +38,7 @@
 %endif
 
 %install
-NO_SETUPTOOLS=1 %{__python} setup.py --quiet install --no-compile --prefix=%{_prefix} --root="$RPM_BUILD_ROOT" %{?python_scriptarch: --install-scripts=%{python_scriptarch}}
+NO_SETUPTOOLS=1 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %{?python_scriptarch: --install-scripts=%{python_scriptarch}}
 
 %clean
 rm -rf $RPM_BUILD_ROOT