File btfs.spec of Package btfs

# spec file for package btfs
# Copyright (c) 2024 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           btfs
Version:        2.24
Release:        0
Summary:        A BitTorrent file system based on FUSE
License:        GPL-3.0-or-later
URL:  {name}
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  c++_compiler
%if 0%{?suse_version} > 1500
BuildRequires:  libboost_system-devel
BuildRequires:  libboost_system1_75_0-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(fuse)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libtorrent-rasterbar) > 0.16

With BTFS, you can mount any .torrent file or magnet link and then use it as
any read-only directory in your file tree. The contents of the files will be
downloaded on-demand as they are read by applications. Tools like ls, cat and
cp work as expected. Applications like media players can also work without changes.

%autosetup -p1
sed -i 's,env python,python,' scripts/btplay

export CXXFLAGS="-std=c++14"
autoreconf -fi

%make_install V=1

%license LICENSE

openSUSE Build Service is sponsored by