%global pkgname landslide %global commit a0078400c8e8f2fe19a754c0dbd55e7a3dbb796d %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: python-landslide Version: 1.1.1 Release: 1%{?dist} Summary: Lightweight markup language-based html5 slideshow generator Group: Applications/Productivity License: ASL 2.0 URL: https://pypi.python.org/pypi/landslide Source0: https://github.com/adamzap/%{pkgname}/archive/%{commit}/%{pkgname}-%{version}-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-sphinx Requires: python-jinja2 Requires: python-markdown Requires: python-pygments Requires: python-docutils Requires: python-textile %description Takes your Markdown, ReST, or Textile file(s) and generates fancy HTML5 slideshows %prep %setup -qn %{pkgname}-%{commit} # Remove bundled egg-info rm -rf src/landslide.egg-info %build %{__python} setup.py build PYTHONPATH=$(pwd) make -C docs html rm -f docs/_build/html/.buildinfo %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} find %{buildroot} -name 'main.py' | xargs chmod 0755 %files %doc LICENSE CHANGELOG.md MANIFEST.in README.md docs/_build/html %{_bindir}/landslide %{python_sitelib}/landslide %{python_sitelib}/landslide-*.egg-info %changelog * Sun Jul 07 2013 Eduardo Echeverria - 1.1.1-1 - Initial packaging