%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: dexy Version: 0.2.7 Release: 1%{?dist} Summary: Dexy is an open source document automation tool Group: Development/Tools License: MIT URL: http://www.dexy.it/ Source0: https://bitbucket.org/ananelson/dexy/get/0.2.7.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-setuptools Requires: python-setuptools Requires: pexpect, python-jinja2, python-pygments # idiopidae, zapps need to packaged but upstream seems dead... %description Dexy is a tool for writing documents which relate to code. This might mean software documentation, journal articles relating to computational research, a code tutorial on your blog, writing up computer science class assignments, pretty much anything. You can think of Dexy as a very fancy ‘make’ tool with lots of document-related features and powerful filters. %prep %setup -q -n ananelson-dexy-6fced44755a3 %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README LICENSE examples %{_bindir}/* %{python_sitelib}/* %changelog * Thu Mar 10 2010 Kostas Georgiou 0.2.7-1 - Initial rpm