SHA256
1
0
forked from pool/FreeFileSync

Accepting request 284898 from home:ecsos

add build RealtimeSync

OBS-URL: https://build.opensuse.org/request/show/284898
OBS-URL: https://build.opensuse.org/package/show/network/FreeFileSync?expand=0&rev=2
This commit is contained in:
Eric Schirra 2015-02-09 16:46:50 +00:00 committed by Git OBS Bridge
parent 9080bc5b58
commit 9204ee4ce8
4 changed files with 52 additions and 4 deletions

View File

@ -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

View File

@ -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

11
RealtimeSync.desktop Normal file
View File

@ -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

3
RealtimeSync.png Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:46ab2d44276f9299862db284780b3646d95230889cb2ac43e1667b53a588c783
size 2604