[packages/unknown-horizons] update python macros
glen
glen at pld-linux.org
Sun Jun 26 18:27:37 CEST 2016
commit 4cb59dfeeb600cce405718041a7b6f09376145d3
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jun 26 19:27:32 2016 +0300
update python macros
unknown-horizons.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/unknown-horizons.spec b/unknown-horizons.spec
index e7061e2..6dc1f3c 100644
--- a/unknown-horizons.spec
+++ b/unknown-horizons.spec
@@ -17,8 +17,9 @@ Group: Applications/Games
Source0: %{name}-%{name}-%{version}-0-g%{ver_hash1}.zip
# Source0-md5: 522c5a6c7a583d98a9ecb686b085f7d6
URL: http://www.unknown-horizons.org/
-BuildRequires: python-distribute
+BuildRequires: python-setuptools
BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: unzip
Requires: python-PyYAML
Requires: python-fife
@@ -38,14 +39,13 @@ with strategic trade and diplomacy.
%{__sed} -i -e '1s,^#!.*python,#!%{__python},' run_uh.py
%build
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{py_sitedir}
-%{__python} setup.py install \
- --root=$RPM_BUILD_ROOT
+%py_install
# contains binary code
mv $RPM_BUILD_ROOT%{py_sitescriptdir}/* $RPM_BUILD_ROOT%{py_sitedir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/unknown-horizons.git/commitdiff/4cb59dfeeb600cce405718041a7b6f09376145d3
More information about the pld-cvs-commit
mailing list