freefilesync/freefilesync.spec

100 lines
3.5 KiB
RPMSpec

Name: freefilesync
Version: 13.6
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 <silvan.calarco@mambasoft.it>
URL: https://freefilesync.org/
Source: https://github.com/hkneptune/FreeFileSync.git/v%{version}/FreeFileSync-%{version}.tar.bz2
Source1: freefilesync.desktop
Source2: ffsicon.png
Source3: realtimesync.desktop
Source4: rtsicon.png
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libat-spi2-core-devel
BuildRequires: libcairo-devel
BuildRequires: libcurl-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk3-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libopenssl-devel
BuildRequires: libpango-devel
BuildRequires: libselinux-devel
BuildRequires: libssh2-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: wxwidgets-devel
BuildRequires: wxwidgets-gtk3-devel
## AUTOBUILDREQ-END
BuildRequires: libzenxml-devel
%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 -n FreeFileSync-%{version}
bsdunzip FreeFileSync/Build/Resources/Icons.zip {FreeFileSync,RealTimeSync}.png
sed -i 's|-2|-3|' FreeFileSync/Source/{Makefile,RealTimeSync/Makefile}
sed -i 's| -s | |' FreeFileSync/Source/{Makefile,RealTimeSync/Makefile}
sed -i 's|#error|//#error|' FreeFileSync/Source/{application.cpp,RealTimeSync/application.cpp} zen/{string_tools.h,globals.h}
sed -i 's|::g_object_ref|g_object_ref|' FreeFileSync/Source/base/icon_loader.cpp
%build
export CXXFLAGS="%{optflags} -DMAX_SFTP_READ_SIZE=30000 -DMAX_SFTP_OUTGOING_SIZE=30000"
export LDFLAGS="%{optflags} `pkg-config --libs gtk+-3.0` -lz"
%make -C FreeFileSync/Source
%make -C FreeFileSync/Source/RealTimeSync
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}%{_datadir}/FreeFileSync
cp -a FreeFileSync/Build/{Bin,Resources} %{buildroot}%{_datadir}/FreeFileSync/
install -d -m0755 %{buildroot}%{_bindir}
ln -s ../share/FreeFileSync/Bin/{FreeFileSync,RealTimeSync} %{buildroot}%{_bindir}/
install -d -m0755 %{buildroot}%{_datadir}/pixmaps
install -Dm644 -t "%{buildroot}%{_datadir}/pixmaps" FreeFileSync.png RealTimeSync.png
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/FreeFileSync.desktop
install -Dm644 %{SOURCE3} %{buildroot}%{_datadir}/applications/RealTimeSync.desktop
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/FreeFileSync
%{_bindir}/RealTimeSync
%{_datadir}/applications/RealTimeSync.desktop
%{_datadir}/applications/FreeFileSync.desktop
%dir %{_datadir}/FreeFileSync
%{_datadir}/FreeFileSync/*
#%{_docdir}/FreeFileSync/changelog.gz
%{_datadir}/pixmaps/*.png
%doc License.txt
%changelog
* Mon May 13 2024 Automatic Build System <autodist@openmamba.org> 13.6-1mamba
- automatic version update by autodist
* Wed Apr 10 2024 Automatic Build System <autodist@openmamba.org> 13.5-1mamba
- automatic version update by autodist
* Mon Feb 26 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 13.4-1mamba
- update to 13.4
* Sat Oct 24 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 7.5-1mamba
- package created by autospec