2006-12-19 16:59:25 +01:00
|
|
|
#
|
2011-02-22 14:08:18 +01:00
|
|
|
# spec file for package fuse
|
2006-12-19 16:59:25 +01:00
|
|
|
#
|
2023-01-04 12:10:07 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2006-12-19 16:59:25 +01:00
|
|
|
#
|
2008-12-01 18:27:52 +01:00
|
|
|
# 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.
|
|
|
|
|
2019-03-19 13:28:36 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 16:59:25 +01:00
|
|
|
#
|
|
|
|
|
2008-12-01 18:27:52 +01:00
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
Name: fuse
|
2020-08-16 17:17:09 +02:00
|
|
|
Version: 2.9.9
|
2016-01-22 13:58:04 +01:00
|
|
|
Release: 0
|
2020-12-13 15:18:50 +01:00
|
|
|
Summary: Reference implementation of the "Filesystem in Userspace"
|
2018-08-06 11:38:56 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2006-12-19 16:59:25 +01:00
|
|
|
Group: System/Filesystems
|
2018-08-06 11:38:56 +02:00
|
|
|
URL: https://github.com/libfuse/libfuse
|
2017-10-16 21:35:15 +02:00
|
|
|
Source: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz
|
2007-09-02 09:43:30 +02:00
|
|
|
Source2: fuse.rpmlintrc
|
2010-01-14 16:36:44 +01:00
|
|
|
Source3: baselibs.conf
|
2014-12-11 13:17:44 +01:00
|
|
|
Source4: fuse.conf
|
2017-10-16 21:35:15 +02:00
|
|
|
Source5: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz.asc
|
2016-01-22 15:25:48 +01:00
|
|
|
Source6: fuse.keyring
|
2021-08-23 14:49:39 +02:00
|
|
|
Patch1: fuse-install-fix.diff
|
|
|
|
Patch2: fusermount-compile-as-pie.patch
|
|
|
|
Patch3: aarch64-build-fix.patch
|
|
|
|
Patch4: closefrom.patch
|
2016-01-22 13:58:04 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
2020-12-13 15:18:50 +01:00
|
|
|
Requires(post): permissions
|
2017-08-14 15:36:16 +02:00
|
|
|
Requires(pre): group(trusted)
|
2010-12-13 05:39:18 +01:00
|
|
|
Requires: util-linux >= 2.18
|
2007-08-10 17:01:38 +02:00
|
|
|
Supplements: filesystem(fuse)
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
%description
|
2020-12-13 15:18:50 +01:00
|
|
|
FUSE (Filesystem in Userspace) is an interface by the Linux kernel
|
|
|
|
for userspace programs to export a filesystem to the kernel.
|
2007-07-13 20:26:29 +02:00
|
|
|
|
2020-12-13 15:18:50 +01:00
|
|
|
This package contains helper programs for using FUSE mounts.
|
2007-07-13 20:26:29 +02:00
|
|
|
|
2020-12-13 15:18:50 +01:00
|
|
|
FUSE file systems are typically implemented as a standalone
|
|
|
|
applications in their own right and are packaged separately.
|
2007-08-10 17:01:38 +02:00
|
|
|
|
2011-10-18 11:30:50 +02:00
|
|
|
%package -n libulockmgr1
|
|
|
|
Summary: Library of FUSE, the User space File System for GNU/Linux and BSD
|
|
|
|
Group: System/Filesystems
|
|
|
|
|
|
|
|
%description -n libulockmgr1
|
|
|
|
With FUSE, a user space program can export a file system through the
|
|
|
|
kernel-default (Linux kernel).
|
|
|
|
|
2007-08-10 17:01:38 +02:00
|
|
|
%package -n libfuse2
|
|
|
|
Summary: Library of FUSE, the User space File System for GNU/Linux and BSD
|
|
|
|
Group: System/Filesystems
|
|
|
|
|
|
|
|
%description -n libfuse2
|
2020-12-13 15:18:50 +01:00
|
|
|
FUSE (Filesystem in Userspace) is an interface by the Linux kernel
|
|
|
|
for userspace programs to export a filesystem to the kernel.
|
2007-08-10 17:01:38 +02:00
|
|
|
|
2020-12-13 15:18:50 +01:00
|
|
|
A FUSE file system is typically implemented as a standalone
|
|
|
|
application that links with libfuse. libfuse provides a C API over
|
|
|
|
the raw kernel interface.
|
2006-12-19 16:59:25 +01:00
|
|
|
|
2017-10-06 21:09:34 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Document package for FUSE (userspace filesystem)
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the documentation for FUSE (userspace filesystem).
|
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
%package devel
|
2007-07-06 08:40:58 +02:00
|
|
|
Summary: Development package for FUSE (userspace filesystem) modules
|
2007-07-04 23:14:08 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2012-04-23 17:02:46 +02:00
|
|
|
Requires: fuse = %{version}
|
2017-10-06 21:09:34 +02:00
|
|
|
Requires: fuse-doc = %{version}
|
2012-04-23 17:02:46 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libfuse2 = %{version}
|
2011-10-18 11:30:50 +02:00
|
|
|
Requires: libulockmgr1 = %{version}
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
%description devel
|
2007-07-04 23:14:08 +02:00
|
|
|
This package contains all include files, libraries and configuration
|
2007-07-13 20:26:29 +02:00
|
|
|
files needed to develop programs that use the fuse (FUSE) library to
|
2020-12-13 15:18:50 +01:00
|
|
|
implement file systems in user space.
|
2007-07-13 20:26:29 +02:00
|
|
|
|
2020-12-13 15:18:50 +01:00
|
|
|
With fuse-devel, users can compile and install other user space file
|
|
|
|
systems.
|
2006-12-19 16:59:25 +01:00
|
|
|
|
2009-04-23 23:46:48 +02:00
|
|
|
%package devel-static
|
|
|
|
Summary: Development package for FUSE (userspace filesystem) modules
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: fuse-devel = %{version}
|
|
|
|
Provides: fuse-devel:%{_libdir}/libfuse.a
|
|
|
|
|
|
|
|
%description devel-static
|
2020-12-13 15:18:50 +01:00
|
|
|
This package contains the static library variants of libfuse.
|
2009-04-23 23:46:48 +02:00
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
%prep
|
2020-12-13 15:18:50 +01:00
|
|
|
%autosetup -p1
|
2011-08-31 10:43:06 +02:00
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
%build
|
2020-12-16 23:54:21 +01:00
|
|
|
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
|
2016-01-22 13:58:04 +01:00
|
|
|
export CFLAGS="%{optflags} -g -fno-strict-aliasing"
|
2012-05-16 21:21:18 +02:00
|
|
|
export MOUNT_FUSE_PATH=%{_sbindir}
|
2013-03-08 14:36:47 +01:00
|
|
|
autoreconf -fi
|
2020-12-13 15:18:50 +01:00
|
|
|
%configure \
|
2009-04-23 23:46:48 +02:00
|
|
|
--with-pkgconfigdir=%{_libdir}/pkgconfig \
|
2006-12-19 16:59:25 +01:00
|
|
|
--enable-lib \
|
|
|
|
--enable-util \
|
|
|
|
--enable-example
|
2019-03-19 13:28:36 +01:00
|
|
|
%make_build
|
2006-12-19 16:59:25 +01:00
|
|
|
|
|
|
|
%install
|
2018-08-06 11:38:56 +02:00
|
|
|
%make_install
|
2016-01-22 13:58:04 +01:00
|
|
|
rm -rf %{buildroot}/%{_sysconfdir}/init.d
|
|
|
|
install -m644 -D %{SOURCE4} %{buildroot}/%{_sysconfdir}/fuse.conf
|
2007-07-13 20:26:29 +02:00
|
|
|
# Needed for OpenSUSE buildservice
|
2016-01-22 13:58:04 +01:00
|
|
|
%if 0%{?suse_version} <= 1020
|
|
|
|
install -m644 -D util/udev.rules %{buildroot}/%{_sysconfdir}/udev/rules.d/99-fuse.rules
|
2007-07-13 20:26:29 +02:00
|
|
|
%endif
|
2016-01-22 13:58:04 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2009-08-03 16:44:30 +02:00
|
|
|
# not needed for fuse, might reappar in separate package:
|
2016-01-22 13:58:04 +01:00
|
|
|
rm -f %{buildroot}/%{_libdir}/libulockmgr.a
|
2023-01-04 12:10:07 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2016-01-22 13:58:04 +01:00
|
|
|
mkdir %{buildroot}/sbin
|
|
|
|
mkdir %{buildroot}/%{_lib}
|
|
|
|
ln -s -v %{_sbindir}/mount.fuse %{buildroot}/sbin
|
|
|
|
pushd %{buildroot}/%{_libdir}
|
2012-05-16 21:21:18 +02:00
|
|
|
for libname in $(ls *.so.*);do
|
2016-01-22 13:58:04 +01:00
|
|
|
ln -s -v /%{_libdir}/$libname %{buildroot}/%{_lib}
|
2012-05-16 21:21:18 +02:00
|
|
|
done
|
|
|
|
popd
|
2020-11-26 11:09:19 +01:00
|
|
|
%endif
|
2006-12-19 16:59:25 +01:00
|
|
|
|
2016-01-22 13:58:04 +01:00
|
|
|
(cd example && make clean)
|
|
|
|
rm -rf example/.deps example/Makefile.am example/Makefile.in
|
|
|
|
rm -rf doc/Makefile.am doc/Makefile.in doc/Makefile
|
2010-10-28 10:49:26 +02:00
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
%post
|
2012-01-25 21:09:26 +01:00
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
%set_permissions %{_bindir}/fusermount
|
|
|
|
%else
|
2006-12-19 16:59:25 +01:00
|
|
|
%run_permissions
|
2012-01-25 21:09:26 +01:00
|
|
|
%endif
|
2016-01-22 13:58:04 +01:00
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
%verifyscript
|
2010-10-28 10:49:26 +02:00
|
|
|
%verify_permissions -e %{_bindir}/fusermount
|
2006-12-19 16:59:25 +01:00
|
|
|
|
2009-04-23 23:46:48 +02:00
|
|
|
%post -n libfuse2 -p /sbin/ldconfig
|
|
|
|
%postun -n libfuse2 -p /sbin/ldconfig
|
2011-10-18 11:30:50 +02:00
|
|
|
%post -n libulockmgr1 -p /sbin/ldconfig
|
|
|
|
%postun -n libulockmgr1 -p /sbin/ldconfig
|
|
|
|
|
2006-12-19 16:59:25 +01:00
|
|
|
%files
|
2018-08-06 11:38:56 +02:00
|
|
|
%license COPYING*
|
|
|
|
%doc AUTHORS ChangeLog NEWS README*
|
2016-01-22 13:58:04 +01:00
|
|
|
%if 0%{?suse_version} <= 1020
|
2007-07-13 20:26:29 +02:00
|
|
|
%dir %{_sysconfdir}/udev
|
|
|
|
%dir %{_sysconfdir}/udev/rules.d
|
|
|
|
%{_sysconfdir}/udev/rules.d/99-fuse.rules
|
|
|
|
%endif
|
2009-04-23 23:46:48 +02:00
|
|
|
%verify(not mode) %attr(4750,root,trusted) %{_bindir}/fusermount
|
2023-01-04 12:10:07 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2006-12-19 16:59:25 +01:00
|
|
|
/sbin/mount.fuse
|
2020-11-26 11:09:19 +01:00
|
|
|
%endif
|
2012-05-16 21:21:18 +02:00
|
|
|
%{_sbindir}/mount.fuse
|
2014-12-11 13:17:44 +01:00
|
|
|
%config %{_sysconfdir}/fuse.conf
|
2011-10-18 11:30:50 +02:00
|
|
|
%{_bindir}/ulockmgr_server
|
2018-08-06 11:38:56 +02:00
|
|
|
%{_mandir}/man1/fusermount.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/ulockmgr_server.1%{?ext_man}
|
|
|
|
%{_mandir}/man8/mount.fuse.8%{?ext_man}
|
2007-08-10 17:01:38 +02:00
|
|
|
|
|
|
|
%files -n libfuse2
|
2023-01-04 12:10:07 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2009-04-23 23:46:48 +02:00
|
|
|
/%{_lib}/libfuse.so.2*
|
2020-11-26 11:09:19 +01:00
|
|
|
%endif
|
2012-05-16 21:21:18 +02:00
|
|
|
%{_libdir}/libfuse.so.2*
|
2006-12-19 16:59:25 +01:00
|
|
|
|
2011-10-18 11:30:50 +02:00
|
|
|
%files -n libulockmgr1
|
2023-01-04 12:10:07 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2011-10-18 11:30:50 +02:00
|
|
|
/%{_lib}/libulockmgr.so.*
|
2020-11-26 11:09:19 +01:00
|
|
|
%endif
|
2012-05-16 21:21:18 +02:00
|
|
|
%{_libdir}/libulockmgr.so.*
|
2011-10-18 11:30:50 +02:00
|
|
|
|
2017-10-06 21:09:34 +02:00
|
|
|
%files doc
|
2010-10-28 10:49:26 +02:00
|
|
|
%doc example doc
|
2017-10-06 21:09:34 +02:00
|
|
|
|
|
|
|
%files devel
|
2009-04-23 23:46:48 +02:00
|
|
|
%{_libdir}/libfuse.so
|
2011-10-18 11:30:50 +02:00
|
|
|
%{_libdir}/libulockmgr.so
|
2006-12-19 16:59:25 +01:00
|
|
|
%{_includedir}/fuse.h
|
|
|
|
%{_includedir}/fuse
|
2009-04-23 23:46:48 +02:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2011-10-18 11:30:50 +02:00
|
|
|
%{_includedir}/ulockmgr.h
|
2009-04-23 23:46:48 +02:00
|
|
|
|
|
|
|
%files devel-static
|
|
|
|
%{_libdir}/libfuse.a
|
2006-12-19 16:59:25 +01:00
|
|
|
|
2007-05-04 00:28:46 +02:00
|
|
|
%changelog
|