File gigolo.spec of Package gigolo

#
# spec file for package gigolo
#
# Copyright (c) 2018 SUSE LINUX 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:        @SERVICE@
Release:        0
Summary:        Frontend to Easily Manage Connections to Remote Filesystems
License:        GPL-2.0-or-later
Group:          System/Filesystems
URL:            http://www.uvena.de/gigolo/
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}.png
BuildRequires:  automake
BuildRequires:  ed
BuildRequires:  exo-tools
BuildRequires:  intltool
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  xfce4-dev-tools
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
Requires:       gvfs
# uses xdg-open
Requires:       xdg-utils
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
NOCONFIGURE=1 ./autogen.sh
%configure \
    --enable-maintainer-mode
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
%doc AUTHORS COPYING NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man?/gigolo.?%{ext_man}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by