File gourmet.spec of Package GRecipe-Manager
%{!?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)")}
# norootforbuild
# TODO (Make this better, or make above work)
%define python_sitearch /usr/%_lib/python2.5/site-packages
Summary: Recipe manager for GNOME 2
Name: gourmet
Version: 0.13.4
Release: 1
License: GPL
Group: Office/Productivity
Source0: %{name}-%{version}-2.tar.gz
Requires: libglade2 python-imaging python-gtk python-gnome python-gnome-extras python-sqlite2 python-ReportLab
BuildRequires: libglade2-devel
BuildRequires: python-imaging
BuildRequires: python >= 2.3
BuildRequires: python-devel >= 2.3
#BuildRequires: python-gtk-devel >= 2.4
#BuildRequires: python-gnome-devel python-gnome-extras
BuildRequires: python-devel python-sqlite2
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot-%(%{__id_u} -n)
# Can't mark this as noarch for now, because python_sitearch is either lib or lib64, and it gets thrown off
#BuildArch: noarch
%description
Gourmet Recipe manager
%prep
%setup -q
%build
python setup.py build
%install
%{__rm} -rf %{buildroot}
python setup.py install --prefix=/usr --root=$RPM_BUILD_ROOT
%suse_update_desktop_file -G "Recipe Manager" %name RecipeManager
%post
%preun
%postun
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
%doc README TODO
%{_bindir}/gourmet
%{python_sitearch}/gourmet
%{_datadir}/gourmet
%{_datadir}/locale/*/LC_MESSAGES/gourmet.mo
%{_datadir}/applications/gourmet.desktop
%{python_sitearch}/gourmet-%{version}-py2.5.egg-info
%{_datadir}/pixmaps/recbox.png
%changelog
* Tue Jul 02 2007 Wade Berrier <wberrier@gmail.com>
- Update to 0.13.4
* Tue Mar 07 2007 Wade Berrier <wberrier@gmail.com>
- Add python-ReportLab to requires (even though we don'th ave it yet,
have to get it from packman in the meantime)
* Tue Mar 06 2007 Wade Berrier <wberrier@gmail.com>
- Initial package