%{!?python_sitelib:%global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: marave Version: 0.7 Release: 4%{?dist} Summary: A Simple text editor License: BSD and GPLv2 Group: Applications/Editors URL: http://marave.googlecode.com/ Source0: http://marave.googlecode.com/files/marave-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch Source1: marave.desktop BuildRequires: desktop-file-utils BuildRequires: python-devel Requires: PyQt4 %description Marave is a text editor whose goal is to help you focus on writing. It's inspired by ommwriter, Darkroom and many other "simple" text editors, with a few twists. %prep %setup -q %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE1} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README LICENSE %doc marave/smartypants_license %{_bindir}/marave-editor %{_datadir}/applications/marave.desktop %{python_sitelib}/marave/ %{python_sitelib}/Marave-%{version}-*.egg-info %changelog * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.7-4 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Fri Feb 26 2010 Rex Dieter <rdieter@fedoraproject.org> 0.7-3 - License: +BSD (smartypants_license) - dfi: drop --vendor * Thu Feb 25 2010 Rex Dieter <rdieter@fedoraproject.org> 0.7-2 - fix whitespace - Group: Applications/Editors * Thu Feb 25 2010 Rex Dieter <rdieter@fedoraproject.org> 0.7-1 - marave-0.7 * Tue Feb 23 2010 Rex Dieter <rdieter@fedoraproject.org> 0.6-1 - marave-0.6