File giver.spec of Package giver
#
# spec file for package giver
#
# Copyright (c) 2013 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: giver
Version: 0.1.8
Release: 0
Summary: A simple file sharing desktop application
License: MIT
Group: Productivity/Networking/File-Sharing
Source: %{name}-%{version}.tar.bz2
Url: http://idea.opensuse.org/content/ideas/easy-file-sharing
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
BuildRequires: fdupes
BuildRequires: mono-devel
BuildRequires: perl-XML-Parser
BuildRequires: pkg-config
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(avahi-sharp)
BuildRequires: pkgconfig(glib-sharp-2.0)
BuildRequires: pkgconfig(gnome-sharp-2.0)
BuildRequires: pkgconfig(gtk-dotnet-2.0)
BuildRequires: pkgconfig(notify-sharp)
Requires: avahi-mono
Requires: ndesk-dbus
Requires: ndesk-dbus-glib
Requires: notify-sharp
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%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
# Prefer dmcs over gmcs, bnc#812529
sed -i "s:gmcs:dmcs:g" configure* src/Makefile*
%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