File twitux.spec of Package twitux

#
# spec file for package twitux
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           twitux
Version:        0.69
Release:        10
License:        GPLv2+
Summary:        A twitter client for GNOME
Url:            http://twitux.sf.net/
Group:          Productivity/Networking/Other
Source:         %{name}-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch:          twitux-desktop.patch
BuildRequires:  dbus-1-devel
BuildRequires:  enchant-devel
BuildRequires:  gconf2-devel
BuildRequires:  glib2-devel >= 2.15
BuildRequires:  gnome-common
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  iso-codes-devel
BuildRequires:  libcanberra-devel
%if 0%{?suse_version} >= 1130
BuildRequires:  libgnome-keyring-devel
%else
BuildRequires:  gnome-keyring-devel
%endif
BuildRequires:  libnotify-devel
BuildRequires:  libsexy-devel
BuildRequires:  libsoup-devel
BuildRequires:  libxml2-devel
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
Twitux allow you to view your twitter timelines, and to post new
messages without using your web browser.

%lang_package
%prep
%setup -q
%patch -p1

%build
autoreconf -f -i
%configure --enable-gnome-keyring=yes --enable-dbus=yes \
	--disable-scrollkeeper
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file -i -G "Twitter client" twitux Network News
%find_gconf_schemas
%find_lang %{name} %{?no_lang_C}

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%icon_theme_cache_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/48x48/apps/twitux.png
%{_datadir}/icons/hicolor/scalable/apps/twitux.svg
%{_datadir}/twitux/

%files lang -f %{name}.lang

%changelog