File gigolo.spec of Package gigolo

#
# spec file for package gigolo
#
# Copyright (c) 2014 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:           gigolo
Version:        0.4.2
Release:        0
Summary:        Frontend to Easily Manage Connections to Remote Filesystems
License:        GPL-2.0+
Group:          System/Filesystems
Url:            http://www.uvena.de/gigolo/
Source0:        http://archive.xfce.org/src/apps/gigolo/0.4/%{name}-%{version}.tar.bz2
Source1:        %{name}.png
BuildRequires:  ed
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
Requires:       gvfs
# uses xdg-open
Requires:       xdg-utils
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:     %{name}-lang = %{version}

%description
Gigolo is a frontend to easily manage connections to remote filesystems using
GIO/GVFS. It allows you to quickly connect/mount a remote filesystem and manage
bookmarks of such.

%lang_package

%prep
%setup -q
ed -s gigolo.desktop.in <<'EOF'
,s/^Icon=gtk-network/Icon=gigolo/
w
EOF

%build
%configure
make %{?_smp_mflags} V=1

%install
%make_install

install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png

# remove documentation/license files included below
rm -rf %{buildroot}%{_datadir}/doc

%suse_update_desktop_file -i %{name} System GTK Filesystem

%find_lang %{name}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%doc %{_mandir}/man1/gigolo.1*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by