2015-02-02 18:29:52 +01:00
|
|
|
#
|
|
|
|
# spec file for package FreeFileSync
|
|
|
|
#
|
2021-03-05 19:34:25 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2015-02-02 18:29:52 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-08-06 13:13:05 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-02-02 18:29:52 +01:00
|
|
|
#
|
|
|
|
|
2020-08-06 13:13:05 +02:00
|
|
|
|
2015-02-02 18:29:52 +01:00
|
|
|
Name: FreeFileSync
|
2021-08-23 19:49:18 +02:00
|
|
|
Version: 11.13
|
2020-08-06 13:13:05 +02:00
|
|
|
Release: 0
|
2021-08-24 07:42:04 +02:00
|
|
|
Summary: Backup software to synchronize files and folders
|
2020-08-06 13:13:05 +02:00
|
|
|
License: GPL-3.0-or-later
|
2015-02-02 18:29:52 +01:00
|
|
|
Group: Productivity/Networking/System
|
2020-08-06 13:13:05 +02:00
|
|
|
URL: https://www.freefilesync.org/
|
2020-08-11 18:38:03 +02:00
|
|
|
Source0: %{name}_%{version}_Source.zip
|
2015-02-02 18:29:52 +01:00
|
|
|
Source1: %{name}.desktop
|
|
|
|
Source2: %{name}.png
|
2016-02-13 16:13:05 +01:00
|
|
|
Source3: RealTimeSync.desktop
|
|
|
|
Source4: RealTimeSync.png
|
2020-08-06 13:13:05 +02:00
|
|
|
Patch0: FreeFileSync-Build.patch
|
|
|
|
Patch1: FreeFileSync-Resources.patch
|
2021-05-22 11:27:27 +02:00
|
|
|
Patch2: FreeFileSync-icon_loader.patch
|
2015-02-02 18:29:52 +01:00
|
|
|
BuildRequires: boost-devel >= 1.54
|
2018-02-26 18:02:13 +01:00
|
|
|
BuildRequires: gcc-c++
|
2020-08-06 13:13:05 +02:00
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libssh2-devel
|
2020-10-04 15:56:49 +02:00
|
|
|
BuildRequires: libstdc++6 >= 10.0.0
|
2020-08-06 13:13:05 +02:00
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: update-desktop-files
|
2020-10-04 15:56:49 +02:00
|
|
|
BuildRequires: wxGTK3-3_2-devel >= 3.1.4
|
2015-02-02 18:29:52 +01:00
|
|
|
|
|
|
|
%description
|
2021-08-24 07:42:04 +02:00
|
|
|
FreeFileSync is a software that helps synchronizing files
|
|
|
|
and folders. It runs backup jobs while having visual
|
|
|
|
feedback along the way.
|
2015-02-02 18:29:52 +01:00
|
|
|
|
2016-03-19 18:00:16 +01:00
|
|
|
%package -n RealtimeSync
|
2021-08-24 07:42:04 +02:00
|
|
|
Summary: Backup software to synchronize files and folders
|
2015-02-09 17:46:50 +01:00
|
|
|
Group: Productivity/Networking/System
|
2020-08-06 13:13:05 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-02-09 17:46:50 +01:00
|
|
|
|
2016-03-19 18:00:16 +01:00
|
|
|
%description -n RealtimeSync
|
2021-08-24 07:42:04 +02:00
|
|
|
RealtimeSync executes a command each time it detects changes
|
|
|
|
in one of the monitored directories, or when a directory becomes
|
|
|
|
available (e.g. insertion of a USB drive).
|
|
|
|
This command will usually trigger a FreeFileSync batch job.
|
2015-02-09 17:46:50 +01:00
|
|
|
|
2015-02-02 18:29:52 +01:00
|
|
|
%prep
|
2020-12-12 22:30:56 +01:00
|
|
|
%autosetup -p1 -c %{name}-%{version}
|
2017-04-23 16:24:32 +02:00
|
|
|
sed -i 's/\r$//' License.txt
|
2019-01-03 01:47:56 +01:00
|
|
|
mkdir FreeFileSync/Build/Bin
|
2015-02-02 18:29:52 +01:00
|
|
|
|
|
|
|
%build
|
2020-08-06 13:13:05 +02:00
|
|
|
export TMPDIR=/tmp # necessary since 11.0
|
2016-01-24 15:14:39 +01:00
|
|
|
export CXXFLAGS="%{optflags} -fabi-version=2 -fabi-compat-version=2"
|
2018-02-26 18:02:13 +01:00
|
|
|
export CC="gcc"
|
|
|
|
export CXX="g++"
|
2018-05-10 10:32:51 +02:00
|
|
|
|
2020-08-06 13:13:05 +02:00
|
|
|
%make_build -C %{name}/Source exeName=FreeFileSync
|
|
|
|
%make_build -C %{name}/Source/RealTimeSync exeName=RealTimeSync
|
2018-05-10 10:32:51 +02:00
|
|
|
|
2020-08-06 13:13:05 +02:00
|
|
|
%install
|
|
|
|
# FreeFileSync
|
|
|
|
pushd %{name}/Build
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -t %{buildroot}%{_bindir} Bin/%{name}
|
2018-05-10 10:32:51 +02:00
|
|
|
|
2020-08-06 13:13:05 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
|
|
cp -rT Resources %{buildroot}%{_datadir}/%{name}
|
2015-02-02 18:29:52 +01:00
|
|
|
|
2020-08-06 13:13:05 +02:00
|
|
|
find "%{buildroot}%{_datadir}/%{name}" -type f -print0 | xargs -0 chmod 644
|
|
|
|
#%%make_install
|
|
|
|
|
|
|
|
# RealTimeSync
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -t %{buildroot}%{_bindir} Bin/RealTimeSync
|
|
|
|
#%%make_install
|
2015-02-09 17:46:50 +01:00
|
|
|
popd
|
2017-04-23 16:24:32 +02:00
|
|
|
|
2015-02-02 18:29:52 +01:00
|
|
|
# desktop
|
2020-08-06 13:13:05 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
|
|
install -p %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
|
|
|
|
install -p %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/
|
|
|
|
%suse_update_desktop_file -i %{name}
|
2016-02-13 16:13:05 +01:00
|
|
|
%suse_update_desktop_file -i RealTimeSync
|
2015-02-02 18:29:52 +01:00
|
|
|
|
2020-12-12 22:30:56 +01:00
|
|
|
%filetriggerin -- %{_datadir}/applications
|
|
|
|
%{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true
|
2016-07-09 23:42:06 +02:00
|
|
|
|
2020-12-12 22:30:56 +01:00
|
|
|
%filetriggerpostun -- %{_datadir}/applications
|
|
|
|
%{_bindir}/update-desktop-database --quiet %{_datadir}/applications || true
|
2016-07-09 23:42:06 +02:00
|
|
|
|
2015-02-02 18:29:52 +01:00
|
|
|
%files
|
2021-08-24 07:42:04 +02:00
|
|
|
%license License.txt
|
|
|
|
%doc Changelog.txt
|
2015-02-02 18:29:52 +01:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
2020-08-06 13:13:05 +02:00
|
|
|
%{_datadir}/%{name}/*
|
|
|
|
%dir %{_datadir}/%{name}
|
2015-02-02 18:29:52 +01:00
|
|
|
|
2016-03-19 18:00:16 +01:00
|
|
|
%files -n RealtimeSync
|
2021-08-24 07:42:04 +02:00
|
|
|
%license License.txt
|
|
|
|
%doc Changelog.txt
|
2016-02-13 16:13:05 +01:00
|
|
|
%{_bindir}/RealTimeSync
|
|
|
|
%{_datadir}/applications/RealTimeSync.desktop
|
|
|
|
%{_datadir}/pixmaps/RealTimeSync.png
|
2015-02-09 17:46:50 +01:00
|
|
|
|
2015-02-02 18:29:52 +01:00
|
|
|
%changelog
|