From b808cb8b6f14fe4122c4463bd5581a9301abf7e0 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoitel Date: Sat, 9 Oct 2021 02:30:35 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ distribyted.spec | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .abf.yml create mode 100644 distribyted.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..9129be3 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + distribyted-0.5.0.tar.gz: d8a354dfd2831034f16ca4b957bc3d8bf8325e1e diff --git a/distribyted.spec b/distribyted.spec new file mode 100644 index 0000000..155a878 --- /dev/null +++ b/distribyted.spec @@ -0,0 +1,49 @@ +%define debug %nil +%define debug_package %nil +%define _optdir /opt + +Name: distribyted +Version: 0.5.0 +Release: 1 +Summary: Torrent client with on-demand file downloading as a filesystem +URL: https://distribyted.com +Source0: https://github.com/distribyted/distribyted/archive/v%{version}/%{name}-%{version}.tar.gz +License: GPLv3 +Group: Development/Other +BuildRequires: go +BuildRequires: git-core +BuildRequires: upx +BuildRequires: pkgconfig(fuse) + +%description +Distribyted is an alternative torrent client. It can +expose torrent files as a standard FUSE mount or webDAV +endpoint and download them on demand, allowing random +reads using a fixed amount of disk space. + +Distribyted tries to make easier integrations with other +applications using torrent files, presenting them as a +standard filesystem. + +%prep +%setup -q + +%build +go build -o bin/%{name} cmd/distribyted/main.go +upx bin/%{name} + +%install +install -d %{buildroot}%{_optdir}/%{name} +install -Dm0755 bin/%{name} %{buildroot}%{_optdir}/%{name}/%{name} +cp -a assets templates %{buildroot}%{_optdir}/%{name}/ + +#### +### +# patch /etc/fuse.conf +# uncomment #user_allow_other + + +%files +%doc README.md LICENSE +%{_optdir}/%{name} +