File hubic.spec of Package hubic

#
# spec file for package hubic
#
# Copyright (c) 2015 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:           hubic
Version:        2.1.0.53
Release:        0
# Note: You can download Debian package to fill preamble.
Summary:        Synchronization Client for hubiC Cloud Service
License:        SUSE-NonFree
Group:          Productivity/File utilities
Url:            https://hubic.com/
Source:         http://mir7.ovh.net/ovh-applications/hubic/hubiC-Linux/2.1.0/hubiC-Linux-%{version}-linux.tar.gz
Source1:        %{name}.rpmlintrc
BuildRequires:  dbus-1
BuildRequires:  desktop-file-utils
BuildRequires:  hicolor-icon-theme
Requires:       dbus-1
Requires:       mono-core >= 2.10.1
Requires:       mono-data-sqlite >= 2.10.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Provides a DBus service and basic command lines tools to interact with
hubiC Cloud Service.

This is an unofficial package not supported by hubiC, but it is using
hubiC original binaries.

%prep
%setup -q -n hubic
sed -i 's:\$(PREFIX)/share/doc/hubic:%{buildroot}%{_docdir}/%{name}:g' Makefile

%build

%install
make %{?jobs:-j%{jobs}} install PREFIX=%{buildroot}%{_prefix} RUNTIME_PREFIX=%{_prefix} DBUSSERVICE_DIR=%{buildroot}%{_datadir}/dbus-1/services
gunzip %{buildroot}%{_docdir}/%{name}/*.gz

%pre
# FIXME: Restart user services before upgrade

%post
%icon_theme_cache_post
%desktop_database_post

%postun
%icon_theme_cache_postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_datadir}/dbus-1/services/*.service
%{_datadir}/icons/hicolor/*/*.*
%{_libexecdir}/hubic
%doc %{_mandir}/man?/*.*

%changelog
openSUSE Build Service is sponsored by