File mirall.spec of Package mirall

#
# spec file for package mirall
#
# 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:           mirall
Version:        0.1.2
Release:        0
License:        GPL-2.0+
Summary:        Opensource Dropbox-like program
Url:            http://www.github.com/dmacvicar/mirall
Group:          Productivity/Networking/Other
Source0:        %{name}-%{version}.tar.bz2
Source1:        mirall.desktop
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libcsync-devel
BuildRequires:  libqt4 >= 4.7
BuildRequires:  libqt4-devel >= 4.7
BuildRequires:  oxygen-icon-theme
BuildRequires:  update-desktop-files
Requires:       iproute2
Requires:       libcsync-plugin-sftp
Requires:       libcsync-plugin-smb
Requires:       net-tools
Requires:       oxygen-icon-theme
Requires:       rubygem-owncloud-admin
Requires:       sitecopy
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Mirall keeps computer folders synchronized with your network hard disk, shared folder, etc

Authors
=======
Duncan Mac-Vicar P. <duncan@kde.org>
Klaas Freitag <freitag@kde.org>

%prep
%setup -q

%build
mkdir build
pushd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
popd

%install
pushd build
%make_install
popd

%suse_update_desktop_file -i %{name} Utility SyncUtility

%files
%defattr(-,root,root,-)
%doc README.md COPYING
%{_bindir}/mirall
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/mirall.png

%changelog