From: Jan Rękorajski Date: Sat, 7 May 2016 07:29:57 +0000 (+0200) Subject: - use rpm python macros X-Git-Tag: auto/th/python3-py-postgresql-1.0.4-8 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=5a4f434a6ca968cc7994ec0bfd37ea1393e4e7fd;p=packages%2Fpython3-py-postgresql.git - use rpm python macros - rel 8 --- diff --git a/python3-py-postgresql.spec b/python3-py-postgresql.spec index f923c77..fe52420 100644 --- a/python3-py-postgresql.spec +++ b/python3-py-postgresql.spec @@ -1,7 +1,7 @@ Summary: PostgreSQL driver and tools library Name: python3-py-postgresql Version: 1.0.4 -Release: 7 +Release: 8 License: BSD Group: Development/Languages/Python Source0: http://python.projects.postgresql.org/files/py-postgresql-%{version}.tar.gz @@ -23,13 +23,11 @@ various parts of PostgreSQL. Notably, it provides a pure-Python driver %setup -q -n py-postgresql-%{version} %build -python3 -- setup.py build +%py3_build %install rm -rf $RPM_BUILD_ROOT -python3 -- setup.py install \ - --optimize=2 \ - --root=$RPM_BUILD_ROOT +%py3_install %clean rm -rf $RPM_BUILD_ROOT