File cronopete.spec of Package cronopete

#
# spec file for package cronopete
#
# Copyright (c) 2016-2025 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:           cronopete
Version:        4.18.0
Release:        0
Summary:        An Apple's TimeMachine clone for Linux
License:        GPL-3.0
Url:            http://www.rastersoft.com
Source0:        https://gitlab.com/rastersoft/cronopete/-/archive/4.14/cronopete-4.18.0.tar.gz#/%{name}-%{version}.tar.gz
#PATCH-FIX-OPENSUSE cronopete-cmake-libexec.patch malcolmlewis@opensuse.org -- Add option to set libexec directory.
Patch0:         cronopete-cmake-libexec.patch
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  rsync
BuildRequires:  vala
BuildRequires:  pkgconfig(ayatana-appindicator3-0.1)
BuildRequires:  pkgconfig(gee-0.8)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(appindicator3-0.1)
BuildRequires:  pkgconfig(udisks2)

%description
A backup utility for Linux, modeled after Apple's TimeMachine. It aims to
simplify the creation of periodic backups.

%lang_package
%prep
%autosetup -p1

%build
%cmake \
       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
       %if 0%{?suse_version} > 1500
       -DCMAKE_INSTALL_LIBDIR=/usr/libexec
       %else
       -DCMAKE_INSTALL_LIBDIR=/usr/lib
       %endif
%make_jobs

%install
%cmake_install
# Remove installed docs as we install as %%doc
rm -rf %{buildroot}%{_datadir}/doc
%find_lang %{name} %{?no_lang_C}
%fdupes -s %{buildroot}

%check
%ctest

%files
%doc HISTORY.md doc/*
%license COPYING
%config %{_sysconfdir}/xdg/autostart/cronopete.desktop
%{_bindir}/%{name}*
%dir %{_libexecdir}/plugs
%dir %{_libexecdir}/plugs/cronopete
%dir %{_libexecdir}/plugs/cronopete/cronopete
%{_libexecdir}/plugs/cronopete/cronopete/cronopete.plug
%{_datadir}/applications/cronopete_preferences.desktop
%{_datadir}/applications/cronopete_restore.desktop
%{_datadir}/%{name}
%{_datadir}/dbus-1/services/com.rastersoft.cronopete.service
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/hicolor/*/status/*
%{_datadir}/glib-2.0/schemas/org.rastersoft.cronopete.gschema.xml

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by