gholms pushed to python-boto (el6). "Updated to latest python packaging guidelines"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Apr 9 02:18:38 UTC 2015
>From b2223ba97227b90c072c66489275665d0a249fc9 Mon Sep 17 00:00:00 2001
From: Garrett Holmstrom <gholms at devzero.com>
Date: Wed, 8 Apr 2015 18:27:01 -0700
Subject: Updated to latest python packaging guidelines
diff --git a/python-boto.spec b/python-boto.spec
index 1875e7a..c448cdb 100644
--- a/python-boto.spec
+++ b/python-boto.spec
@@ -98,28 +98,18 @@ cp -p %{SOURCE1} .
rm -r boto.egg-info
-%if %{with python3}
-rm -rf %{py3dir}
-cp -a . %{py3dir}
-%endif
-
%build
%{__python2} setup.py build
-
%if %{with python3}
-pushd %{py3dir}
%{__python3} setup.py build
-popd
%endif # with python3
%install
%if %{with python3}
# Scripts only work with python2
-pushd %{py3dir}
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
-popd
rm -f $RPM_BUILD_ROOT/%{_bindir}/*
%endif # with python3
@@ -134,9 +124,7 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/*
%if %{with unittests}
%{__python2} tests/test.py default
%if %{with python3}
-pushd %{py3dir}
%{__python3} tests/test.py default
-popd
%endif # with python3
%endif # with unittests
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-boto.git/commit/?h=el6&id=b2223ba97227b90c072c66489275665d0a249fc9
More information about the scm-commits
mailing list