File gigolo.spec of Package gigolo
#
# spec file for package gigolo
#
# 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: gigolo
Version: 0.4.1
Release: 11
License: GPLv2+
Summary: Frontend to easily manage connections to remote filesystems
Url: http://www.uvena.de/gigolo/
Group: System/Filesystems
Source: http://files.uvena.de/gigolo/%{name}-%{version}.tar.bz2
Source1: %{name}.png
Patch0: %{name}-desktop.patch
BuildRequires: gvfs-devel
BuildRequires: intltool
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: python
BuildRequires: update-desktop-files
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
%patch0
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
sh autogen.sh
./waf configure \
--nocache \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--localstatedir=%{_localstatedir} \
--libdir=%{_libdir} \
--mandir=%{_mandir}
./waf build -v --nocache %{?_smp_mflags}
%install
./waf install --nocache --destdir=%{buildroot}
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
rm -rf %{buildroot}%{_datadir}/doc
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,ur_PK}
%suse_update_desktop_file -i %{name} System GTK Filesystem
%find_lang %{name}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%doc %{_mandir}/man1/*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%files lang -f %{name}.lang
%changelog