Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > ece2c40586a804fd960d0fc0f61f6d5b > files > 3

straw-0.25.1-2mdk.src.rpm

%define	name	straw
%define version 0.25.1
%define release 2mdk
%define fname %name-%{version}
%define	Summary	RSS feed agregator for Gnome

Summary:	%Summary
Name:		%name
Version:	%version
Release:	%release
License:	GPL
Group:		Networking/Other
URL:		http://www.nongnu.org/straw/
Source0:	http://savannah.nongnu.org/download/straw/%{fname}.tar.bz2
Source1:	%name-icons.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

BuildRequires:	libpython-devel >= 2.3
BuildRequires:	pygtk2.0-libglade >= 2.3
BuildRequires:	pygtk2.0-devel >= 2.3
BuildRequires:	gnome-python-canvas
BuildRequires:	gnome-python-gtkhtml2
BuildRequires:	gnome-python-gnomevfs
BuildRequires:	gnome-python-gconf
BuildRequires:	adns-python 
BuildRequires:	intltool
Requires:	pygtk2.0-libglade >= 2.3 
Requires:	gnome-python-canvas
Requires:	gnome-python-gtkhtml2
Requires:	gnome-python-gnomevfs
Requires:	gnome-python-gconf
Requires:	adns-python 
#gw we only need this for backward compatibility
Requires:	egenix-mx-base

%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 -n %fname -a1

%build
python setup.py build

%install
rm -rf ${RPM_BUILD_ROOT}
python setup.py install --prefix=%_prefix --root=%buildroot
install -D -m 644 data/%name.schemas %buildroot%_sysconfdir/gconf/schemas/%name.schemas
%find_lang %name

chmod 0644 NEWS LICENSE README TODO

mkdir -p %buildroot/%_menudir
cat > %buildroot/%_menudir/%name << EOF

?package(%name): \
        command="%_bindir/%name" \
        needs="X11" \
        section="Networking/Other" \
        icon="%name.png" \
        title="Straw" \
        longtitle="%Summary"
EOF

%__install -D -m 644 %{name}48.png %buildroot/%_liconsdir/%name.png
%__install -D -m 644 %{name}32.png %buildroot/%_iconsdir/%name.png
%__install -D -m 644 %{name}16.png %buildroot/%_miconsdir/%name.png

%post
%update_menus
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%name.schemas > /dev/null

%preun
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%name.schemas > /dev/null

%postun
%clean_menus

%clean
rm -rf %buildroot

%files -f straw.lang
%defattr(-,root,root)
%doc NEWS LICENSE README TODO

%{_bindir}/*
%_sysconfdir/gconf/schemas/%name.schemas
%{_datadir}/applications/%name.desktop
%{_datadir}/%name
%{_libdir}/python%{pyver}/site-packages/%name
%{_menudir}/%name
%{_iconsdir}/*/%name.png
%{_iconsdir}/%name.png
%{_datadir}/pixmaps/%name.png

%changelog
* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.25.1-2mdk
- Rebuild for new python

* Fri Jul 16 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.25.1-1mdk
- New release 0.25.1

* Thu Jul 15 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.25-1mdk
- New release 0.25

* Wed Jul  7 2004 Götz Waschk <waschk@linux-mandrake.com> 0.24-2mdk
- readd gconf dependancy
- fix buildrequires

* Wed Jul  7 2004 Götz Waschk <waschk@linux-mandrake.com> 0.24-1mdk
- drop gconf dep
- it's now architecture dependant for the notification area applet
- fix source URL
- New release 0.24

* Sat May  1 2004 Götz Waschk <waschk@linux-mandrake.com> 0.23-2mdk
- drop py_ver macro
- fix buildrequires

* Wed Apr 28 2004 Götz Waschk <waschk@linux-mandrake.com> 0.23-1mdk
- fix installation
- new version

* Fri Feb 20 2004 Götz Waschk <waschk@linux-mandrake.com> 0.22.1-1mdk
- fix buildrequires
- fix download URL
- new version

* Wed Feb 18 2004 Götz Waschk <waschk@linux-mandrake.com> 0.22-1mdk
- fix buildrequires
- new version

* Fri Feb 13 2004 Götz Waschk <waschk@linux-mandrake.com> 0.22-0.patch46.1mdk
- remove redundant dependancies
- remove bsddb3 dependancy and require python >= 2.3
- fix build 
- update to straw--mainline--0.22--patch-46

* Fri Feb  6 2004 Götz Waschk <waschk@linux-mandrake.com> 0.21.2-3mdk
- fix menu again

* Tue Jan 27 2004 Götz Waschk <waschk@linux-mandrake.com> 0.21.2-2mdk
- fix buildrequires

* Mon Jan 26 2004 Götz Waschk <waschk@linux-mandrake.com> 0.21.2-1mdk
- fix menu
- add schemas installation
- fix installation
- fix source location
- new version

* Fri Nov 14 2003 Pascal Terjan <CMoi@tuxfamily.org> 0.21.1-2mdk
- PyXML not anymore needed

* Fri Nov 14 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.21.1-1mdk
- 0.21.1

* Mon Sep 08 2003 Pascal Terjan <CMoi@tuxfamily.org> 0.19.2-2mdk
- Locales now work fine
- Fixed rights on docs

* Mon Sep 08 2003 Pascal Terjan <CMoi@tuxfamily.org> 0.19.2-1mdk
- 0.19.2

* Sun Aug 31 2003 Pascal Terjan <CMoi@tuxfamily.org> 0.19.1-2mdk
- require gnome-python-gnomevfs

* Tue Aug 26 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.19.1-1mdk
- 0.19.1
- fix hardcoded python version in binary

* Tue Aug 12 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.18.1-4mdk
- rebuild for new python
- make a %%py_ver macro and use it in stead of hardcoding version
- cosmetics

* Tue Apr 29 2003 Pascal Terjan <CMoi@tuxfamily.org> 0.18.1-3mdk
- Add require on python-bsddb3

* Tue Apr 29 2003 Pascal Terjan <CMoi@tuxfamily.org> 0.18.1-2mdk
- Oops, sh is in /bin not %_bindir

* Thu Apr 23 2003 Pascal Terjan <CMoi@tuxfamily.org> 0.18.1-1mdk
- First Package
- Run with LC_ALL=C in menu. Accent problem with gnome stock items make
  menus unusable. I guess the fix will be in gnome-python.