File sparkleshare.spec of Package sparkleshare

#
# spec file for package sparkleshare
#
# 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/
#


%define         pynautilusextdir %(pkg-config --variable=pythondir nautilus-python)

Name:           sparkleshare
Version:        0.2.5
Release:        1
License:        GPL-3.0
Summary:        A file sharing and collaboration tool
Url:            http://sparkleshare.org
Group:          Productivity/Archiving/Backup
Source:         https://github.com/downloads/hbons/SparkleShare/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gtk-sharp2
BuildRequires:  intltool
BuildRequires:  mono-devel
BuildRequires:  nant
BuildRequires:  ndesk-dbus
BuildRequires:  ndesk-dbus-glib-devel
BuildRequires:  notify-sharp
BuildRequires:  python-nautilus-devel
BuildRequires:  update-desktop-files
BuildRequires:  webkit-sharp
Requires:       git-core >= 1.7.1
Requires:       gtk-sharp2
Requires:       gvfs
Requires:       mono-core
Requires:       ndesk-dbus
Requires:       notify-sharp
Requires:       openssh
Requires:       webkit-sharp
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
SparkleShare is a file sharing and collaboration tool inspired by Dropbox.

SparkleShare isn't just a piece of software, it's part of your workflow.
It's designed to make sharing documents and collaboration easier,
and to make peers aware of what you are doing. It allows you to instantly
sync with any Git repository you have access to. The user interface and
features are made to support this goal.

Though SparkleShare is not made to be a graphical frontend for git or a
backup tool, it may be useful for other kinds of purposes as well, like
backing up small files or monitoring your favourite project.

%package -n nautilus-sparkleshare
License:        GPLv3
Summary:        A file sharing and collaboration tool -- Nautilus extension
Group:          Productivity/Archiving/Backup
Requires:       %{name} = %{version}
Requires:       python-nautilus
Supplements:    packageand(%{name}:nautilus)

%description -n nautilus-sparkleshare
SparkleShare is a file sharing and collaboration tool inspired by Dropbox.

SparkleShare isn't just a piece of software, it's part of your workflow.
It's designed to make sharing documents and collaboration easier,
and to make peers aware of what you are doing. It allows you to instantly
sync with any Git repository you have access to. The user interface and
features are made to support this goal.

Though SparkleShare is not made to be a graphical frontend for git or a
backup tool, it may be useful for other kinds of purposes as well, like
backing up small files or monitoring your favourite project.

This package provides a nautilus extension for sparkleshare.

%lang_package
%prep
%setup -q

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

%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file -G "Synchronization Tool" %{name} FileTransfer
%fdupes %{buildroot}%{_datadir}

%clean
rm -rf %{buildroot}

%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)
%doc AUTHORS README
%{_bindir}/sparkleshare
%{_datadir}/applications/sparkleshare.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/sparkleshare/
%{_libdir}/sparkleshare/
%{_mandir}/man1/sparkleshare.1*

%files -n nautilus-sparkleshare
%defattr(-,root,root)
%{pynautilusextdir}/sparkleshare-nautilus-extension.py

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by