File fwbackups.spec of Package fwbackups

#
# spec file for package fwbackups
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2010-2016 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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:           fwbackups
Version:        1.43.7
Release:        0
Summary:        A feature-rich user backup program
License:        GPL-2.0+
Group:          Productivity/Archiving/Backup
Url:            http://www.diffingo.com/oss/fwbackups/
Source0:        http://downloads.diffingo.com/fwbackups/fwbackups-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  python2-devel
BuildRequires:  update-desktop-files
Requires:       python2-notify
Requires:       python2-paramiko
Requires:       python2-pycrypto
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
fwbackups is a feature-rich user backup program that allows users (including
but not limited to root) to backup their files on demand or periodically via
backup sets. Each set may have different settings meaning users can backup
groups of files and folders to different destinations at different times.
Restores can be performed at any time using an existing backup from fwbackups
or from the contents of an external folder or archive.

%lang_package
%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%suse_update_desktop_file -r %{name} Utility Archiving
%suse_update_desktop_file %{buildroot}%{_datadir}/%{name}/%{name}-autostart.desktop
%find_lang %{name} %{?no_lang_C}
%fdupes -s %{buildroot}

%if 0%{?suse_version} < 1500
%post
%desktop_database_post
%icon_theme_cache_post
%endif

%if 0%{?suse_version} < 1500
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README.md TODO
%{_bindir}/*
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/applications/%{name}.desktop
%{python2_sitelib}/%{name}/

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by