mirror of
https://abf.rosa.ru/djam/distribyted.git
synced 2025-02-23 22:32:54 +00:00
49 lines
1.2 KiB
RPMSpec
49 lines
1.2 KiB
RPMSpec
%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}
|
|
|