straw/straw.spec

Name: straw
Summary: Desktop news aggregator
Version: 0.27
Release: 1
License: GPL
Group: Applications/Internet
URL: http://www.gnome.org/projects/straw/
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.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Juri Pakaste <juri$iki,fi>

%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')

%define desktop_vendor rpmforge

Summary: Desktop news aggregator
Name: straw
Version: 0.27
Release: 1%{?dist}
License: GPL
Group: Applications/Internet
URL: http://www.gnome.org/projects/straw/

Source: http://download.gnome.org/sources/straw/%{version}/straw-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: python >= 2.4, gtk2 >= 2.4, libglade2 >= 2.3
BuildRequires: python-adns, python-bsddb3, libxml2-python >= 1.99.13
BuildRequires: pyorbit, pygtk2 >= 1.99.13, pygtk2-libglade
BuildRequires: gnome-python2-gtkhtml2, gnome-python2-gconf, gnome-python2-gnomevfs
Requires: python >= 2.4, gtk2 >= 2.4, libglade2 >= 2.3
Requires: python-adns, python-bsddb3, libxml2-python >= 1.99.13, mx
Requires: pyorbit, pygtk2 >= 1.99.13, pygtk2-libglade
Requires: gnome-python2-gtkhtml2, gnome-python2-gconf, gnome-python2-gnomevfs

%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

%{__cat} <<EOF >straw.desktop.in
[Desktop Entry]
Name=Straw Desktop News Aggregator
Comment=Aggregates newsfeeds and blogs
TryExec=straw
Exec=straw %U
Terminal=false
Type=Application
Icon=straw.png
Encoding=UTF-8
Categories=GNOME;Application;Network;
EOF

%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}"
%find_lang %{name}

%{__install} -Dp -m0644 data/straw.schemas %{buildroot}%{_sysconfdir}/gconf/schemas/straw.schemas

desktop-file-install --vendor %{desktop_vendor} --delete-original \
	--add-category X-Red-Hat-Base                 \
	--dir %{buildroot}%{_datadir}/applications    \
	%{buildroot}%{_datadir}/applications/*.desktop

%post
export GCONF_CONFIG_SOURCE="$(gconftool-2 --get-default-source)"
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null

%clean
%{__rm} -rf %{buildroot}

%files -f %{name}.lang
%defattr(-, root, root, 0755)
%config %{_sysconfdir}/gconf/schemas/straw.schemas
%{_bindir}/straw
%{python_sitelib}/straw/
%{_datadir}/straw/
%{_datadir}/applications/%{desktop_vendor}-straw.desktop
%{_datadir}/pixmaps/straw.png

%changelog
* Wed Jun 06 2007 Dag Wieers <dag@wieers.com> - 0.27-1
- Updated to release 0.27.

* Sun Mar 12 2006 Dag Wieers <dag@wieers.com> - 0.26-1
- Updated to release 0.26.

* Thu Jul 22 2004 Dag Wieers <dag@wieers.com> - 0.25.1-1
- Updated to release 0.25.1.

* Wed Jul 07 2004 Dag Wieers <dag@wieers.com> - 0.24-1
- Updated to release 0.24.

* Thu Apr 29 2004 Dag Wieers <dag@wieers.com> - 0.23-1
- Updated to release 0.23.

* Sat Feb 28 2004 Dag Wieers <dag@wieers.com> - 0.22.1-1
- RH9 and RHFC1 ship with mx, change dependency. (Gary Peck)

* Wed Feb 25 2004 Dag Wieers <dag@wieers.com> - 0.22.1-0
- Updated to release 0.22.1.

* Wed Feb 18 2004 Dag Wieers <dag@wieers.com> - 0.22-0
- Updated to release 0.22.

* Sat Dec 20 2003 Dag Wieers <dag@wieers.com> - 0.21.1-1
- Added missing python dependencies. (Pavels)

* Sun Nov 23 2003 Dag Wieers <dag@wieers.com> - 0.21.1-0
- Updated to release 0.21.1.

* Sat Nov 01 2003 Dag Wieers <dag@wieers.com> - 0.19.2-0
- Updated to release 0.19.2.

* Thu Aug 21 2003 Dag Wieers <dag@wieers.com> - 0.19.1-0
- Updated to release 0.19.1.

* Sun Aug 17 2003 Dag Wieers <dag@wieers.com> - 0.19-0
- Updated to release 0.19.

* Sun Aug 03 2003 Dag Wieers <dag@wieers.com> - 0.18.1-0
- Updated to release 0.18.1.
- Added warning for threaded pygtk2.

* Thu Feb 20 2003 Dag Wieers <dag@wieers.com> - 0.16-0
- Initial package. (using DAR)