diff --git a/python-landslide.spec b/python-landslide.spec index 0a197a1..4196f71 100644 --- a/python-landslide.spec +++ b/python-landslide.spec @@ -3,7 +3,7 @@ %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: python-landslide Version: 1.1.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Lightweight markup language-based html5 slideshow generator Group: Applications/Productivity License: ASL 2.0 @@ -15,7 +15,7 @@ BuildArch: noarch %description Takes your Markdown, ReST, or Textile file(s) and generates -fancy HTML5 slideshows +fancy HTML5 slideshows. %package -n python3-%{pkgname} Summary: %{summary} @@ -33,13 +33,13 @@ Requires: python3-textile %description -n python3-%{pkgname} Takes your Markdown, ReST, or Textile file(s) and generates -fancy HTML5 slideshows +fancy HTML5 slideshows. %prep %autosetup -n %{pkgname}-%{commit} # Change shebang to recognized the default interpreter installed # from system-wide -sed -i 's|/usr/bin/env python|/usr/bin/python|g' src/landslide/main.py +sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' src/landslide/main.py # Remove bundled egg-info rm -rf src/landslide.egg-info @@ -53,7 +53,7 @@ rm -f docs/_build/html/.buildinfo %py3_install find %{buildroot} -name 'main.py' | xargs chmod 0755 -%files +%files -n python3-%{pkgname} %doc CHANGELOG.md README.md docs/_build/html %license LICENSE %{_bindir}/landslide @@ -62,6 +62,10 @@ find %{buildroot} -name 'main.py' | xargs chmod 0755 %changelog +* Mon Feb 27 2017 Iryna Shcherbina - 1.1.3-6 +- Fix shebang to avoid depending on both Python 2 and Python 3 +- Package python3- subpackage + * Wed Feb 22 2017 Jan Beran - 1.1.3-5 - Provides Python 3 package