SHA256
1
0
forked from pool/fuse3
fuse3/fuse3.spec
2018-10-09 13:09:44 +00:00

152 lines
4.3 KiB
RPMSpec

#
# spec file for package fuse3
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 https://bugs.opensuse.org/
#
Name: fuse3
Version: 3.2.6
Release: 0
Summary: User space File System
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: System/Filesystems
URL: https://github.com/libfuse/libfuse
Source: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.xz
Source2: fuse3.rpmlintrc
Source3: baselibs.conf
Source4: fuse.conf
Source5: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.xz.asc
Source6: fuse.keyring
Patch1: fuse-install-fix.patch
BuildRequires: fdupes
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(udev)
Requires: util-linux >= 2.18
Requires(pre): permissions
Supplements: filesystem(fuse)
Requires(pre): group(trusted)
%description
With FUSE, a user space program can export a file system through the
kernel-default (Linux kernel).
After installing fuse-devel, administrators can compile and install
other user space file systems which can be found at
https://github.com/libfuse/libfuse/wiki/
%package -n libfuse3-3
Summary: Library of FUSE, the User space File System for GNU/Linux and BSD
Group: System/Filesystems
%description -n libfuse3-3
With FUSE, a user space program can export a file system through the
kernel-default (Linux kernel).
After installing fuse-devel, administrators can compile and install
other user space file systems which can be found at
https://github.com/libfuse/libfuse/wiki/
%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).
%package devel
Summary: Development package for FUSE (userspace filesystem) modules
Group: Development/Languages/C and C++
Requires: fuse3 = %{version}
Requires: fuse3-doc = %{version}
Requires: glibc-devel
Requires: libfuse3-3 = %{version}
%description devel
This package contains all include files, libraries and configuration
files needed to develop programs that use the fuse (FUSE) library to
implement kernel-default (Linux) file systems in user space.
With fuse-devel, administrators can compile and install other user
space file systems which can be found at
https://github.com/libfuse/libfuse/wiki/
%prep
%setup -q -n fuse-%{version}
%patch1 -p1
%build
%meson
%meson_build
%install
%meson_install
rm -rf %{buildroot}/%{_sysconfdir}/init.d
install -m644 -D %{SOURCE4} %{buildroot}/%{_sysconfdir}/fuse.conf
find %{buildroot} -type f -name "*.la" -delete -print
#UsrMerge
mkdir %{buildroot}/sbin
mkdir %{buildroot}/%{_lib}
ln -s -v %{_sbindir}/mount.fuse3 %{buildroot}/sbin
pushd %{buildroot}/%{_libdir}
for libname in $(ls *.so.*);do
ln -s -v /%{_libdir}/$libname %{buildroot}/%{_lib}
done
popd
#EndUsrMerge
%fdupes -s doc
%post
%set_permissions %{_bindir}/fusermount3
%verifyscript
%verify_permissions -e %{_bindir}/fusermount3
%post -n libfuse3-3 -p /sbin/ldconfig
%postun -n libfuse3-3 -p /sbin/ldconfig
%files
%license COPYING*
%doc AUTHORS ChangeLog.rst
%verify(not mode) %attr(4750,root,trusted) %{_bindir}/fusermount3
#UsrMerge
/sbin/mount.fuse3
#EndUsrMerge
%{_sbindir}/mount.fuse3
%config %{_sysconfdir}/fuse.conf
%{_mandir}/man1/fusermount3.1%{?ext_man}
%{_mandir}/man8/mount.fuse3.8%{?ext_man}
%files -n libfuse3-3
#UsrMerge
/%{_lib}/libfuse3.so.3*
#EndUsrMerge
%{_libdir}/libfuse3.so.3*
%files doc
%doc example doc
%files devel
%{_libdir}/libfuse3.so
%{_includedir}/fuse3/*.h
%{_includedir}/fuse3
%{_libdir}/pkgconfig/*.pc
%changelog