[packages/python-MySQLdb] - use rpm python macros - updated files - rel 9
baggins
baggins at pld-linux.org
Sat May 7 21:36:21 CEST 2016
commit 447154b9233a6d1c1dcfd25906e6e4d2bd172cbe
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat May 7 21:35:59 2016 +0200
- 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-MySQLdb.git/commitdiff/447154b9233a6d1c1dcfd25906e6e4d2bd172cbe
More information about the pld-cvs-commit
mailing list