diff options
author | Jamie Nguyen <j@jamielinux.com> | 2016-05-11 09:58:29 +0100 |
---|---|---|
committer | Jamie Nguyen <j@jamielinux.com> | 2016-05-11 09:58:29 +0100 |
commit | 1c660fb1f712ead94bf80fb1ccb1a5d0d50198cd (patch) | |
tree | 1d67e528fa6a99e5734c8c1091e3c81797bd1090 /rpmbuild/byteback.spec | |
parent | 89c2b36aaa3478fc0ad3742cddf66c2abae01b7c (diff) |
Add rpm spec file
Diffstat (limited to 'rpmbuild/byteback.spec')
-rw-r--r-- | rpmbuild/byteback.spec | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/rpmbuild/byteback.spec b/rpmbuild/byteback.spec new file mode 100644 index 0000000..f422c1d --- /dev/null +++ b/rpmbuild/byteback.spec @@ -0,0 +1,66 @@ +Name: byteback +Version: 0.4.2 +Release: 1%{?dist} +Summary: Maintenance-free client & server backup scripts for Linux + +Group: Applications/System +License: Ruby and GPLv2+ and ASL 2.0 and Artistic 2.0 +URL: https://github.com/BytemarkHosting/byteback +Source0: byteback.tar.gz + +BuildArch: noarch +BuildRequires: txt2man +Requires: openssh-clients +Requires: ruby +Requires: rubygem-ffi +Requires: rsync + +%description +byteback encapsulates Bytemark's "best practice" for maintenance-free backups +with easy client and server setup. + +"Maintenance-free" means that we'd rather make full use of a fixed amount of +disc space. Management of disc space must be completely automatic, so the +process never grinds to a halt for reasons that could be automatically +resolved. Failed backups can be restarted in case of network problems. + +We use the standard OpenSSH on the server for encrypted transport & access +control, btrfs for simple snapshots and rsync for efficient data transfer +across the network. + +Backups should require as little configuration as possible to be safe - just +the server address should be enough. + + +%prep +%setup -q -n byteback +# No binary files, so should go in /usr/share. +sed -i -e 's|/usr/lib/byteback|/usr/share/byteback|g' bin/* +# Required to load system gems. +sed -i -e "2irequire 'rubygems'" bin/* + + +%build +make docs + + +%install +mkdir -p %{buildroot}%{_bindir} +cp -a bin/* %{buildroot}%{_bindir}/ + +mkdir -p %{buildroot}%{_datadir}/byteback +cp -a lib/* %{buildroot}%{_datadir}/byteback/ + +mkdir -p %{buildroot}%{_mandir}/man1 +for i in man/*.man; do + mv $i ${i%%.man}.1 +done; +cp -a man/*.1 %{buildroot}%{_mandir}/man1/ + + +%files +%doc README.md +%{_bindir}/* +%{_datadir}/byteback +%{_mandir}/man1/*.1* + |