From 447154b9233a6d1c1dcfd25906e6e4d2bd172cbe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sat, 7 May 2016 21:35:59 +0200 Subject: [PATCH] - use rpm python macros - updated files - rel 9 --- python-MySQLdb.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/python-MySQLdb.spec b/python-MySQLdb.spec index 44e4cef..8661e70 100644 --- a/python-MySQLdb.spec +++ b/python-MySQLdb.spec @@ -2,7 +2,7 @@ Summary: A Python interface to MySQL Summary(pl.UTF-8): Interfejs Pythona do MySQL Name: python-MySQLdb Version: 1.2.3 -Release: 8 +Release: 9 License: GPL Group: Libraries/Python Source0: http://dl.sourceforge.net/mysql-python/MySQL-python-%{version}.tar.gz @@ -36,15 +36,15 @@ języka Python. Projekt jest tworzony z myślą o: %setup -q -n MySQL-python-%{version} %build -env CFLAGS="%{rpmcflags} -DHAVE_OPENSSL=1" %{_bindir}/%py_build +CFLAGS="%{rpmcflags} -DHAVE_OPENSSL=1" +%py_build %install rm -rf $RPM_BUILD_ROOT -python -- setup.py install \ - --root=$RPM_BUILD_ROOT \ - --optimize=2 -rm -f $RPM_BUILD_ROOT%{py_sitedir}/{MySQLdb/{constants/,},}*.py +%py_install + +%py_postclean %clean rm -rf $RPM_BUILD_ROOT @@ -53,9 +53,9 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc README doc/* %attr(755,root,root) %{py_sitedir}/*.so -%{py_sitedir}/*.py? +%{py_sitedir}/*.py[co] %dir %{py_sitedir}/MySQLdb -%{py_sitedir}/MySQLdb/*.py? +%{py_sitedir}/MySQLdb/*.py[co] %dir %{py_sitedir}/MySQLdb/constants -%{py_sitedir}/MySQLdb/constants/*.py? +%{py_sitedir}/MySQLdb/constants/*.py[co] %{py_sitedir}/*.egg-info -- 2.44.0