# sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: fontypython Version: 0.2.0 Release: 1%{?dist} Summary: Fonty Python - manage ttf fonts on Gnu/Linux Group: Amusements/Graphics License: GNU GPL URL: https://savannah.nongnu.org/projects/fontypython/ Source0: %{name}-%{version}.tar.gz Source3: %{name}.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, desktop-file-utils %description Manage your ttf fonts on Gnu/Linux with Fonty Python. You can collect any fonts together ( even ones not in your system font folders ) into 'pogs' and then install and remove the pogs as you need them. In this way you can control what fonts are in your user font folder - thus avoiding long lists of fonts in the font chooser dialogues of your apps. Copyright (C) 2006 Donn.C.Ingle donn.ingle@gmail.com %prep %setup -q %build python setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT desktop-file-install --vendor="fedora" \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ %{SOURCE3} mkdir ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/ cp fontypython/things/fplogo.png ${RPM_BUILD_ROOT}%{_datadir}/pixmaps %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) /usr/bin/fp %{_datadir}/applications/fedora-%{name}.desktop %{_datadir}/pixmaps/fplogo.png %doc README COPYING # For noarch packages: sitelib %{python_sitelib}/* %changelog * Sat Dec 09 2006 Chris Mohler 0.6-4 - Created spec file - Prepared RPM for Fedora Extras