From 487e638d03e4c1e4d4e07647e43ad1db09668d4d Mon Sep 17 00:00:00 2001 From: Garrett Holmstrom Date: Wed, 8 Apr 2015 18:17:01 -0700 Subject: [PATCH] Drop executables in F23 --- python-boto.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/python-boto.spec b/python-boto.spec index 839ed47..1875e7a 100644 --- a/python-boto.spec +++ b/python-boto.spec @@ -4,6 +4,12 @@ %bcond_with python3 %endif +%if 0%{?fedora} >= 23 +%bcond_with executables +%else +%bcond_without executables +%endif + %bcond_with unittests %{!?__python2: %global __python2 /usr/bin/python2} @@ -119,6 +125,10 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/* %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT +%if %{without executables} +rm -f $RPM_BUILD_ROOT/%{_bindir}/* +%endif + %check %if %{with unittests} @@ -136,6 +146,8 @@ popd %{!?_licensedir: %global license %%doc} %license boto-mit-license.txt %doc README.rst +%{python2_sitelib}/boto* +%if %{with executables} %{_bindir}/asadmin %{_bindir}/bundle_image %{_bindir}/cfadmin @@ -157,7 +169,7 @@ popd %{_bindir}/s3put %{_bindir}/sdbadmin %{_bindir}/taskadmin -%{python2_sitelib}/boto* +%endif %if %{with python3} @@ -170,6 +182,7 @@ popd %changelog * Wed Apr 8 2015 Garrett Holmstrom - 3.37.0-1 - Updated to 2.37.0 (RH #1180861) +- Dropped executables in F23 * Sun Nov 9 2014 Garrett Holmstrom - 2.34.0-4 - Fixed python3 requires