File pino.spec of Package pino

#
# spec file for package pino
#
# 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/
#

# norootforbuild


Name:           pino
Version:        0.2.11
Release:        6.<RELEASE3>
# FIXME: The %setup line needed to be tweaked for 0.2.11... it's only the tarball, internally it's 0.2.10 (again)
# FIXME: decide if we really want to remove the ubuntu indicators file, or keep it
Summary:        Twitter and Identi.ca client
License:        GPLv3+
Url:            http://pino-app.appspot.com/
Group:          Productivity/Networking/Other
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM pino-construct-only-properties.patch vuntz@opensuse.org -- Fix build with vala >= 0.9.6. Sent upstream: http://code.google.com/p/pino-twitter/issues/detail?id=309
Patch0:         pino-construct-only-properties.patch
# PATCH-FIX-UPSTREAM pino-get_style_property-fix.patch vuntz@opensuse.org -- Fix build with vala >= 0.10.2. Sent upstream: http://code.google.com/p/pino-twitter/issues/detail?id=309
Patch1:         pino-get_style_property-fix.patch
BuildRequires:  gtk2-devel
BuildRequires:  gtkspell-devel
BuildRequires:  intltool
BuildRequires:  libgee-devel
BuildRequires:  libnotify-devel
BuildRequires:  libsoup-devel
BuildRequires:  libxml2-devel
BuildRequires:  libunique-devel
BuildRequires:  libwebkit-devel
BuildRequires:  vala
BuildRequires:  update-desktop-files
# Code uses xdg-open to open links
Requires:       xdg-utils
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Pino is Twitter and Identi.ca client for Linux desktop. It's simple
and fast.

%lang_package
%prep
%setup -q -n %{name}-0.2.10
%patch0 -p1
%if 0%{?suse_version} > 1130
%patch1 -p1
%endif

%build
CFLAGS="%{optflags}" waf configure --prefix=%{_prefix}
waf build -v %{?_smp_mflags}

%install
waf install --destdir=%{buildroot} -p
%{__rm} %{buildroot}%{_datadir}/locale/ko_KR/LC_MESSAGES/*
# remove docs we install with %doc + useless INSTALL
%{__rm} %{buildroot}%{_datadir}/doc/pino/{AUTHORS,COPYING,README,INSTALL}
# remove ubuntu indicator file
%{__rm} %{buildroot}%{_datadir}/indicators/messages/applications/pino
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file pino

%clean
rm -rf %{buildroot}

%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
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_bindir}/pino
%{_datadir}/applications/pino.desktop
%{_datadir}/icons/hicolor/scalable/apps/pino*.svg
%{_datadir}/pino/

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by