diff --git a/README.md b/README.md index a9b5e11..e8eee39 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # freefilesync +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. + diff --git a/ffsicon.png b/ffsicon.png new file mode 100644 index 0000000..7fbc975 Binary files /dev/null and b/ffsicon.png differ diff --git a/freefilesync-7.5-Makefile.patch b/freefilesync-7.5-Makefile.patch new file mode 100644 index 0000000..f38d012 --- /dev/null +++ b/freefilesync-7.5-Makefile.patch @@ -0,0 +1,34 @@ +--- freefilesync-7.5/FreeFileSync/Source/Makefile 2015-10-02 14:59:20.000000000 +0200 ++++ FreeFileSync_-7.5/FreeFileSync/Source/Makefile 2015-10-25 12:27:19.487259334 +0100 +@@ -8,11 +8,11 @@ + CXXFLAGS = -std=c++14 -pipe -DWXINTL_NO_GETTEXT_MACRO -I../.. -I../../zenXml -include "zen/i18n.h" -include "zen/warn_static.h" -Wall \ + -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -DZEN_LINUX -pthread + +-LINKFLAGS = -s `wx-config --libs std, aui --debug=no` -lboost_thread -lboost_chrono -lboost_system -lz -pthread ++LINKFLAGS = -s `wx-config --libs std, aui --debug=no` `wx-config --libs` -lz -pthread + + #Gtk - support recycler/icon loading/no button border/grid scrolling +-CXXFLAGS += `pkg-config --cflags gtk+-2.0` +-LINKFLAGS += `pkg-config --libs gtk+-2.0` ++CXXFLAGS += `pkg-config --cflags gtk+-3.0` ++LINKFLAGS += `pkg-config --libs gtk+-3.0` + + #support for SELinux (optional) + SELINUX_EXISTING=$(shell pkg-config --exists libselinux && echo YES) +--- freefilesync-7.5/FreeFileSync/Source/RealtimeSync/Makefile.orig 2015-10-25 12:38:41.648664477 +0100 ++++ freefilesync-7.5/FreeFileSync/Source/RealtimeSync/Makefile 2015-10-25 12:39:01.622499777 +0100 +@@ -5,11 +5,11 @@ + CXXFLAGS = -std=c++14 -pipe -DWXINTL_NO_GETTEXT_MACRO -I../../.. -I../../../zenXml -include "zen/i18n.h" -include "zen/warn_static.h" -Wall \ + -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -DZEN_LINUX -pthread + +-LINKFLAGS = -s `wx-config --libs std, aui --debug=no` -lboost_thread -lboost_chrono -lboost_system -lz -pthread ++LINKFLAGS = -s `wx-config --libs std, aui --debug=no` -lz -pthread + + #Gtk - support "no button border" +-CXXFLAGS += `pkg-config --cflags gtk+-2.0` +-LINKFLAGS += `pkg-config --libs gtk+-2.0` ++CXXFLAGS += `pkg-config --cflags gtk+-3.0` ++LINKFLAGS += `pkg-config --libs gtk+-3.0` + + CPP_LIST= + CPP_LIST+=application.cpp diff --git a/freefilesync-7.5-version_check_32bit.patch b/freefilesync-7.5-version_check_32bit.patch new file mode 100644 index 0000000..2c76a83 --- /dev/null +++ b/freefilesync-7.5-version_check_32bit.patch @@ -0,0 +1,11 @@ +--- freefilesync-7.5/FreeFileSync/Source/ui/version_check.cpp.orig 2015-10-25 17:30:38.221440957 +0100 ++++ freefilesync-7.5/FreeFileSync/Source/ui/version_check.cpp 2015-10-25 17:30:50.654429151 +0100 +@@ -410,7 +410,7 @@ + { + if (updateCheckActive(lastUpdateCheck)) + { +- static_assert(sizeof(time_t) >= 8, "Still using 32-bit time_t? WTF!!"); ++ //static_assert(sizeof(time_t) >= 8, "Still using 32-bit time_t? WTF!!"); + const time_t now = std::time(nullptr); + return numeric::dist(now, lastUpdateCheck) >= 7 * 24 * 3600; //check weekly + } diff --git a/freefilesync.desktop b/freefilesync.desktop new file mode 100644 index 0000000..216d0c1 --- /dev/null +++ b/freefilesync.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Comment= +Exec=FreeFileSync +GenericName=Folder Comparison and Synchronization +Icon=/usr/share/pixmaps/ffsicon.png +Name=FreeFileSync +NoDisplay=false +StartupNotify=true +Categories=GTK;Application;Utility; +Terminal=0 +TerminalOptions= +Type=Application +X-KDE-SubstituteUID=false +X-KDE-Username= + diff --git a/freefilesync.spec b/freefilesync.spec new file mode 100644 index 0000000..4396d13 --- /dev/null +++ b/freefilesync.spec @@ -0,0 +1,93 @@ +Name: freefilesync +Version: 7.5 +Release: 1mamba +Summary: A software that helps you synchronize files and synchronize folders +Group: Graphical Desktop/Applications/Utilities +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.freefilesync.org/ +# FIXME: needs manual download +Source: http://www.freefilesync.org/download/5qlb1c8ltns7obk/FreeFileSync_%{version}_Source.zip +Source1: freefilesync.desktop +Source2: ffsicon.png +Source3: realtimesync.desktop +Source4: rtsicon.png +Patch0: freefilesync-7.5-Makefile.patch +Patch1: freefilesync-7.5-version_check_32bit.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libatk-devel +BuildRequires: libcairo-devel +BuildRequires: libgcc +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libgtk-devel +BuildRequires: libpango-devel +BuildRequires: libpcre-devel +BuildRequires: libselinux-devel +BuildRequires: libsepol-devel +BuildRequires: libstdc++6-devel +BuildRequires: libwx_baseu-devel +BuildRequires: libwx_gtk3u-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: libzenxml-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +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. + +%debug_package + +%prep +%setup -q -c +%patch0 -p1 +%ifarch %{ix86} +%patch1 -p1 +%endif + +%build +%make -C FreeFileSync/Source +%make -C FreeFileSync/Source/RealtimeSync + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C FreeFileSync/Source +%makeinstall -C FreeFileSync/Source/RealtimeSync + +install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/freefilesync.desktop +install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/ffsicon.png +install -Dm644 %{SOURCE3} %{buildroot}%{_datadir}/applications/RealtimeSync.desktop +install -Dm644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/rtsicon.png + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/FreeFileSync +%{_bindir}/RealtimeSync +%dir %{_datadir}/FreeFileSync +%dir %{_datadir}/FreeFileSync/Help +%{_datadir}/FreeFileSync/Help/FreeFileSync.hh* +%dir %{_datadir}/FreeFileSync/Help/html +%{_datadir}/FreeFileSync/Help/html/* +%dir %{_datadir}/FreeFileSync/Help/images +%{_datadir}/FreeFileSync/Help/images/* +%dir %{_datadir}/FreeFileSync/Languages +%{_datadir}/FreeFileSync/Languages/* +%{_datadir}/FreeFileSync/Resources.zip +%{_datadir}/FreeFileSync/Sync_Complete.wav +%{_datadir}/FreeFileSync/styles.gtk_rc +%{_datadir}/applications/RealtimeSync.desktop +%{_datadir}/applications/freefilesync.desktop +%{_datadir}/doc/FreeFileSync/changelog.gz +%{_datadir}/pixmaps/ffsicon.png +%{_datadir}/pixmaps/rtsicon.png +%doc LICENSE + +%changelog +* Sat Oct 24 2015 Silvan Calarco 7.5-1mamba +- package created by autospec diff --git a/realtimesync.desktop b/realtimesync.desktop new file mode 100644 index 0000000..b427595 --- /dev/null +++ b/realtimesync.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Comment= +Exec=RealtimeSync +GenericName=Automated Synchronization +Icon=/usr/share/pixmaps/rtsicon.png +Name=RealtimeSync +NoDisplay=false +StartupNotify=true +Categories=GTK;Application;Utility; +Terminal=0 +TerminalOptions= +Type=Application +X-KDE-SubstituteUID=false +X-KDE-Username= + diff --git a/rtsicon.png b/rtsicon.png new file mode 100644 index 0000000..f76e745 Binary files /dev/null and b/rtsicon.png differ