WIP: added osync.spec file for RPM builds

This commit is contained in:
deajan 2016-11-12 00:35:57 +01:00
parent 8756c3f871
commit 48a1c80024
1 changed files with 39 additions and 0 deletions

39
packaging/RHEL/osync.spec Normal file
View File

@ -0,0 +1,39 @@
Name: osync
Version: 1.2
Release: beta.1%{?dist}
Summary: robust file synchronization tool
Group: Applications/File
License: BSD
URL: https://www.netpower.fr/osync
Source0: https://github.com/deajan/osync/archive/master.zip
Requires: rsync openssh-server
BuildArch: noarch
%description
%prep
%setup -q
%build
%configure
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/usr/bin
install -m 755 osync.sh ${RPM_BUILD_ROOT}%{_bindir}
install -m 755 osync-batch.sh ${RPM_BUILD_ROOT}%{_bindir}
%files
%defattr(-,root,root)
%attr(755,root,root) %{_bindir}/osync.sh
%doc
%changelog
* 30 Aug 2016 Orsiris de Jong <ozy@netpower.fr>
- Initial spec file