Make sample executables doc files on F23

f38
Garrett Holmstrom 10 years ago
parent b8c186e9ca
commit 9f1200bc03

@ -6,6 +6,7 @@
%bcond_with unittests %bcond_with unittests
%endif %endif
# Boto's sample executables became doc files in F23
%if 0%{?fedora} >= 23 %if 0%{?fedora} >= 23
%bcond_with executables %bcond_with executables
%else %else
@ -132,7 +133,9 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/*
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
%if %{without executables} %if %{without executables}
rm -f $RPM_BUILD_ROOT/%{_bindir}/* # Make executables doc files instead
chmod -x $RPM_BUILD_ROOT/%{_bindir}/*
mv $RPM_BUILD_ROOT/%{_bindir} examples
%endif %endif
@ -151,28 +154,11 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/*
%license boto-mit-license.txt %license boto-mit-license.txt
%doc README.rst %doc README.rst
%{python2_sitelib}/boto* %{python2_sitelib}/boto*
%if %{with executables} %if %{with executables}
%{_bindir}/asadmin %{_bindir}/*
%{_bindir}/bundle_image %else
%{_bindir}/cfadmin %doc examples
%{_bindir}/cq
%{_bindir}/cwutil
%{_bindir}/dynamodb_dump
%{_bindir}/dynamodb_load
%{_bindir}/elbadmin
%{_bindir}/fetch_file
%{_bindir}/glacier
%{_bindir}/instance_events
%{_bindir}/kill_instance
%{_bindir}/launch_instance
%{_bindir}/list_instances
%{_bindir}/lss3
%{_bindir}/mturk
%{_bindir}/pyami_sendmail
%{_bindir}/route53
%{_bindir}/s3put
%{_bindir}/sdbadmin
%{_bindir}/taskadmin
%endif %endif
@ -187,6 +173,7 @@ rm -f $RPM_BUILD_ROOT/%{_bindir}/*
* Fri Apr 10 2015 Garrett Holmstrom <gholms@fedoraproject.org> - 2.38.0-1 * Fri Apr 10 2015 Garrett Holmstrom <gholms@fedoraproject.org> - 2.38.0-1
- Updated to 2.38.0 - Updated to 2.38.0
- Added BuildRequires for python-six - Added BuildRequires for python-six
- Made sample executables doc files in F23
* Wed Apr 8 2015 Garrett Holmstrom <gholms@fedoraproject.org> - 2.37.0-1 * Wed Apr 8 2015 Garrett Holmstrom <gholms@fedoraproject.org> - 2.37.0-1
- Updated to 2.37.0 (RH #1180861) - Updated to 2.37.0 (RH #1180861)

Loading…
Cancel
Save