diff --git a/FreeFileSync.changes b/FreeFileSync.changes index 6f1a604..8022ae9 100644 --- a/FreeFileSync.changes +++ b/FreeFileSync.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 9 11:53:18 UTC 2015 - ecsos@opensuse.org + +- add build RealtimeSync + ------------------------------------------------------------------- Sat Jan 24 14:11:30 UTC 2015 - ecsos@opensuse.org diff --git a/FreeFileSync.spec b/FreeFileSync.spec index 3f3de32..c739c30 100644 --- a/FreeFileSync.spec +++ b/FreeFileSync.spec @@ -25,7 +25,9 @@ Url: http://freefilesync.sourceforge.net/ Source0: http://sourceforge.net/projects/freefilesync/files/%{name}/%{version}/%{name}_%{version}_Source.zip Source1: %{name}.desktop Source2: %{name}.png -Source3: zenXml_2.1-stripped.zip +Source3: RealtimeSync.desktop +Source4: RealtimeSync.png +Source5: zenXml_2.1-stripped.zip BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: unzip BuildRequires: gcc-c++ >= 4.8 @@ -38,23 +40,43 @@ FreeFileSync is a free Open Source software that helps you synchronize files and synchronize folders for Windows, Linux and Mac OS X. It is designed to save your time setting up and running backup jobs while having nice visual feedback along the way. +%package -n RealtimeSync +Summary: Free backup software to synchronize files and folders +Group: Productivity/Networking/System +Requires: %{name} = %{version}-{%release} + +%description -n RealtimeSync +The primary purpose of RealtimeSync is to execute a command line each time it detects changes +in one of the monitored directories or when a directory becomes available (e. g. insert of a USB-stick). +Usually this command line will trigger a FreeFileSync batch job. + %prep %setup -T -b 0 -c %{name}-%{version} -%setup -T -a 3 -c %{name}-%{version} -D +%setup -T -a 5 -c %{name}-%{version} -D %build -cd %{name}/Source +pushd %{name}/Source make %{?_smp_mflags} BUILD=FreeFileSync +popd +pushd %{name}/Source/RealtimeSync +make %{?_smp_mflags} BUILD=RealtimeSync +popd %install -cd %{name}/Source +pushd %{name}/Source %make_install +popd +pushd %{name}/Source/RealtimeSync +%make_install +popd # del unneeded changelog.gz rm -r ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name} # desktop mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps install -p %{SOURCE2} ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/ +install -p %{SOURCE4} ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/ %suse_update_desktop_file -i %name +%suse_update_desktop_file -i RealtimeSync %clean rm -rf %{buildroot} @@ -67,4 +89,11 @@ rm -rf %{buildroot} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png +%files -n RealtimeSync +%defattr(-,root,root,-) +%doc LICENSE +%{_bindir}/RealtimeSync +%{_datadir}/applications/RealtimeSync.desktop +%{_datadir}/pixmaps/RealtimeSync.png + %changelog diff --git a/RealtimeSync.desktop b/RealtimeSync.desktop new file mode 100644 index 0000000..86c3549 --- /dev/null +++ b/RealtimeSync.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=RealtimeSync +GenericName=Realtime Synchronization Tool +Comment=Realtime folder synchronization +Exec=RealtimeSync +Terminal=false +Icon=RealtimeSync +Type=Application +Categories=Utility;Archiving; +Version=1.0 + diff --git a/RealtimeSync.png b/RealtimeSync.png new file mode 100644 index 0000000..12d4279 --- /dev/null +++ b/RealtimeSync.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46ab2d44276f9299862db284780b3646d95230889cb2ac43e1667b53a588c783 +size 2604