rendered paste body%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')
%define desktop_vendor fedora
Summary: Desktop news aggregator
Name: straw
Version: 0.27
Release: 4
License: GPLv2+
Group: Applications/Internet
URL: http://www.gnome.org/projects/straw/
Source: http://download.gnome.org/sources/straw/%{version}/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: python >= 2.4
# fix for python >= 2.5
%if "%{?fedora}" > "6"
BuildRequires: python-devel
%endif
Requires: gnome-python2
Requires: gnome-python2-gconf
Requires: gnome-python2-gnomevfs
Requires: gnome-python2-gtkhtml2
Requires: libxml2-python >= 1.99.13
Requires: pyorbit
Requires: pygtk2-libglade
Requires: mx
conflicts: python-adns
#Requires: python-gnome2-extras
Requires: pygtk2-devel
Requires: gtk2 >= 2.4
Requires: libglade2
BuildRequires: dbus-python
BuildRequires: pygtk2-libglade
BuildRequires: pygtk2 >= 2.8.0
BuildRequires: desktop-file-utils
BuildRequires: gnome-python2-gconf
BuildRequires: intltool
BuildArch: noarch
%description
Straw is a desktop news aggregator for the GNOME environment. Its aim
is to be a faster, easier and more accessible way to read news and
blogs than the traditional browser.
%prep
%setup -q
%build
%{__python} setup.py build
%install
%{__rm} -rf %{buildroot}
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" --sysconfdir="%{_sysconfdir}"
%{__python} -Oc 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT%{python_sitelib}/%{name}'")'
%find_lang %{name}
%{__install} -Dp -m0644 data/%{name}.schemas %{buildroot}%{_datadir}/gconf/schemas/%{name}.schemas
#sed -i -e "s@${RPM_BUILD_ROOT}@@" constants.py
desktop-file-install --vendor %{desktop_vendor} --delete-original \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/%{name}.desktop
%pre
if [ $1 -gt 1 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_datadir}/gconf/schemas/[NAME].schemas >/dev/null
killall -HUP gconfd-2 || :
fi
%post
export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)"
gconftool-2 --makefile-install-rule %{_datadir}/gconf/schemas/%{name}.schemas &>/dev/null
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.lang
%defattr(-, root, root, 0755)
%config %{_datadir}/gconf/schemas/straw.schemas
%doc LICENSE NEWS README TODO ChangeLog AUTHORS
%{_bindir}/%{name}
%{python_sitelib}/straw/
%{_datadir}/straw/
%{_datadir}/applications/%{desktop_vendor}-%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog
* Tue Sep 11 2007 Subhodip Biswas <440volt.tux@gmail.com> - 0.27-4
- Fixed failed dependencies
* Mon Sep 10 2007 Subhodip Biswas <440volt.tux@gmail.com> - 0.27-3
- Fixed few errors
* Sun Sep 9 2007 Subhodip Biswas <440volt.tux@gmail.com> - 0.27-2
- Some dependencies fixed
* Tue Aug 27 2007 Subhodip Biswas <440volt.tux@gmail.com> - 0.27-1
- Updated to 0.27