File giver.spec of Package giver

#
# spec file for package giver
#
# 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:           giver
Url:            http://idea.opensuse.org/content/ideas/easy-file-sharing
BuildRequires:  avahi-mono fdupes gnome-sharp2 gtk-sharp2 gtk2-devel mono-devel monodoc ndesk-dbus ndesk-dbus-glib notify-sharp perl-XML-Parser pkg-config update-desktop-files
BuildArch:      noarch
Version:        0.1.8
Release:        215
License:        MIT License (or similar)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       ndesk-dbus ndesk-dbus-glib notify-sharp avahi-mono
Recommends:     %{name}-lang
Source:         %{name}-%{version}.tar.bz2
Patch:          bnc-326064.txt
# PATCH-FIX-UPSTREAM giver-change-photo.patch bnc#328531 vuntz@opensuse.org -- Make it possible to change the photo, patch taken from http://code.google.com/p/giver/issues/detail?id=4
Patch1:         giver-change-photo.patch
Group:          Productivity/Networking/File-Sharing
Summary:        A simple file sharing desktop application

%description
Giver is a simple desktop file sharing application based that uses
Avahi and http to advertise and transfer files.

%lang_package
%prep
%setup
%patch -p1
%patch1 -p1

%build
%configure --libdir=%{_prefix}/lib
make %{?jobs:-j%jobs}

%install
%make_install
%suse_update_desktop_file -N "Giver" %name System Network
%find_lang giver %{?no_lang_C}
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif

%clean
rm -rf "$RPM_BUILD_ROOT"

%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)
%{_prefix}/lib/giver/
%{_bindir}/giver
%{_datadir}/giver/
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/pixmaps/*
%{_datadir}/applications/*

%files lang -f giver.lang

%changelog
openSUSE Build Service is sponsored by