diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8b53fa6 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: straw +# $Id$ +NAME := straw +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/dead.package b/dead.package deleted file mode 100644 index 815fd29..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild diff --git a/sources b/sources new file mode 100644 index 0000000..6edafbc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +5c64c65158dab096e2077e4f91412b37 straw-0.27.tar.gz diff --git a/straw.spec b/straw.spec new file mode 100644 index 0000000..13787cf --- /dev/null +++ b/straw.spec @@ -0,0 +1,123 @@ +%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: 9%{?dist} +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-gnomevfs +Requires: gnome-python2-gtkhtml2 +Requires: gnome-python2-libegg +Requires: gnome-python2-gconf +Requires: pygtk2-libglade +Requires: mx +# Current python-adns makes double free problem (bug 292821) +Conflicts:python-adns +Requires: dbus-python + +Requires(pre): GConf2 +Requires(post):GConf2 +Requires(preun):GConf2 + +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}" + +# this is a fix for constants.py to lookup in install dir rather than buildroot +sed -i -e s@${RPM_BUILD_ROOT}@@ ${RPM_BUILD_ROOT}%{python_sitelib}/%{name}/constants.py + +%{__python} -Oc 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT%{python_sitelib}/%{name}'")' + +%find_lang %{name} + +%{__install} -Dp -m0644 data/%{name}.schemas %{buildroot}%{_sysconfdir}/gconf/schemas/%{name}.schemas + +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 \ + %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || : +fi +%post +export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)" +gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null + +%preun +if [ $1 -eq 0 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule \ + %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || : +fi + +%clean +%{__rm} -rf %{buildroot} + +%files -f %{name}.lang +%defattr(-, root, root, 0755) +%{_sysconfdir}/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 +* Sun Sep 23 2007 Subhodip Biswas <440volt.tux@gmail.com> - 0.27-9 +- Fixed dependecies related to pygtk +* Fri Sep 21 2007 Subhodip Biswas <440volt.tux@gmail.com> - 0.27-8 +- Fixed dependencies related to gnome-python2 +* Mon Sep 17 2007 Subhodip Biswas <440volt.tux@gmail.com> - 0.27-7 +- Fixed redundant dependencies +* Sun Sep 16 2007 Subhodip Biswas <440volt.tux@gmail.com> - 0.27-6 +- Fixed usage Gconf.Straw does not support python-adns anymore. +- So removed it. Fixed Spec file indentation warning. +* Thu Sep 14 2007 Subhodip Biswas <440volt.tux@gmail.com> - 0.27-5 +- Fixed few major errors and dependencies +* 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