%bcond_without zstd %global soversion 1 %define name avfs %define version 1.3.0 %define release 0%{?dist}.1sunshine Summary: Enables programs to look inside archived/compressed files, access remote files Name: %{name} Version: %{version} Release: %{release} License: GPL-2.0-only and LGPL-2.1-only Group: Applications/Archiving URL: http://sourceforge.net/projects/avf Source0: http://downloads.sourceforge.net/avf/%{name}-%{version}.tar.bz2 # https://sourceforge.net/p/avf/git/ci/21fe2520b54a970d4b5bf8ae7a6a7cb4f89cd633/ Patch0: 0001-add-version-requirement-for-using-fuse-3.patch Patch1: 0001-santize-fuse3-check.patch Patch2: 0001-lower-required-autoconf-version-to-2.69.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildrequires: gcc # for patched configure.ac Buildrequires: autoconf automake libtool Buildrequires: make Buildrequires: pkg-config %if 0%{?fedora} >= 44 Buildrequires: pkgconfig(fuse3) >= 3.17 %else Buildrequires: pkgconfig(fuse) >= 2.6.0 %endif Buildrequires: perl-devel Buildrequires: pkgconfig(zlib) >= 1.2.3 Buildrequires: bzip2-devel Buildrequires: pkgconfig(liblzma) Buildrequires: pkgconfig(neon) >= 0.27.0 %{?with_zstd:BuildRequires: pkgconfig(libzstd)} %description AVFS is a system, which enables all programs to look inside archived or compressed files, or access remote files without recompiling the programs or changing the kernel. At the moment it supports floppies, tar and gzip files, zip, bzip2, ar and rar files, ftp sessions, http, webdav, rsh/rcp, ssh/scp. Quite a few other handlers are implemented with the Midnight Commander's external FS. %package libs Summary: Libraries for applications using %{name} License: LGPL-2.1-only Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description libs Libraries for applications using %{name} %package devel Summary: Development libraries and header files for %{name} License: LGPL-2.1-only Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description devel Development libraries and header files for %{name} %prep %setup -q %patch -P 0 -p1 -b.fuse %patch -P 1 -p1 -b.fuse2 %patch -P 2 -p1 -b.autoconf %build aclocal -I macros autoheader libtoolize -c -f automake -a -c autoconf %configure --enable-fuse --with-system-zlib --with-system-bzlib --with-xz \ %{?with_zstd:--with-zstd} make %install make install DESTDIR=%{buildroot} rm -rf %{buildroot}%{_libdir}/*.*a rm -rf doc/Makefil* %clean rm -rf %{buildroot} %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %{!?_licensedir:%global license %%doc} %files %license COPYING %doc AUTHORS ChangeLog NEWS README TODO doc/ %{_bindir}/avfsd %{_bindir}/davpass %{_bindir}/ftppass %{_bindir}/mountavfs %{_bindir}/umountavfs %files libs %license COPYING.LIB %{_libdir}/%{name}/ %{_libdir}/*.so.%{soversion}* %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}.pc %{_bindir}/avfs-config %changelog * Fri May 15 2026 Moritz Barsnick 1.3.0-0.1sunshine - update to 1.3.0 - add a upstream patch for proper detection of fuse3 - add a patch for sane fallback from fuse3 to fuse2 - add a patch to relax the required version of autoconf - use SPDX license tags - change BRs to pkgconfig() - BR fuse3 where available * Thu May 01 2025 Moritz Barsnick 1.2.0-0.1sunshine - update to 1.2.0 - use SO version (which has now been bumped to 1.0.0) in lib file name wildcard * Wed Jun 07 2023 Moritz Barsnick 1.1.5-0.1sunshine - update to 1.1.5 * Tue Apr 13 2021 Moritz Barsnick 1.1.4-0.2sunshine - BR: gcc, make - drop Requires: perl - use the %%license macro, and provide a fallback - more explicit about licenses (only the library is LGPL) * Tue Apr 13 2021 Moritz Barsnick 1.1.4-0.1sunshine - update to 1.1.4 - list binaries explicitly - place avfs-config in devel package - BR: neon-devel for DAV support - BR: libzstd-devel (unless disabled) * Mon Aug 31 2020 Moritz Barsnick 1.1.3-0.1sunshine - update to 1.1.3 * Tue Apr 28 2020 Moritz Barsnick 1.1.2-0.1sunshine - update to 1.1.2 - fix Source0 URI - drop %%defattr - package libs in a separate package * Wed Feb 12 2020 Moritz Barsnick 1.1.1-0.1sunshine - update to 1.1.1 - clean up SPEC slightly - simplify Source URL - package .pc file * Wed Jan 06 2016 Moritz Barsnick 1.0.3-0.1sunshine - update to 1.0.3 - drop Requires: fuse - make BR: fuse-devel versioned - force build with liblzma (xz) * Tue Apr 08 2014 Moritz Barsnick 1.0.1-0.2sunshine - build with system zlib and bzip2, and add BRs for their -devel packages - BR xz-devel for liblzma - fix duplicate packaging of headers - don't own include dir - don't package static libraries (bz #436612) * Thu Jun 14 2012 Moritz Barsnick 1.0.1-0.1sunshine - update to 1.0.1 - use bz2 compressed source - drop glibs related BR/Requires, it's default on Fedora * Tue Jul 19 2011 J. Krebs - 1.0.0-1 - New version. * Fri Oct 08 2008 J. Krebs - 0.9.9-1 - New version. * Wed Aug 06 2008 J. Krebs - 0.9.8-2 - Added libdir to configure for build under x86_64. * Sat Nov 10 2007 J. Krebs - 0.9.8-1 - Initial build.