up to 3.9.2
[packages/libfuse3.git] / libfuse3.spec
CommitLineData
54a113e9
AM
1Summary: Filesystem in Userspace
2Summary(pl.UTF-8): System plików w przestrzeni użytkownika
3Name: libfuse3
c81151fe 4Version: 3.9.2
c5a9d209 5Release: 1
da32b10c 6License: LGPL v2 (library), GPL v2 (tools)
54a113e9
AM
7Group: Applications/System
8#Source0Download: https://github.com/libfuse/libfuse/releases
62bd8cd0 9Source0: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.xz
c81151fe 10# Source0-md5: beb65b13b87840fcafdaba170239b5f7
62bd8cd0 11Patch0: %{name}-build.patch
54a113e9 12URL: https://github.com/libfuse/libfuse
4b9ab1aa 13BuildRequires: meson >= 0.42
be96c985
JB
14# for --default_library=both
15BuildRequires: rpmbuild(macros) >= 1.732
54a113e9 16BuildRequires: sed >= 4.0
54a113e9
AM
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20FUSE (Filesystem in Userspace) is a simple interface for userspace
21programs to export a virtual filesystem to the Linux kernel. FUSE also
22aims to provide a secure method for non privileged users to create and
23mount their own filesystem implementations.
24
25This package contains a shared library.
26
27%description -l pl.UTF-8
28FUSE stanowi prosty interfejs dla programów działających w przestrzeni
29użytkownika eksportujący wirtualny system plików do jądra Linuksa.
30FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i
31montowania własnych implementacji systemów plików przez zwykłych
32(nieuprzywilejowanych) użytkowników.
33
34Ten pakiet zawiera bibliotekę współdzieloną.
35
36%package devel
be96c985 37Summary: Filesystem in Userspace - Development header files
54a113e9 38Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe
da32b10c 39License: LGPL v2
54a113e9
AM
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
42
43%description devel
be96c985 44Libfuse3 library header files.
54a113e9
AM
45
46%description devel -l pl.UTF-8
be96c985
JB
47Pliki nagłówkowe biblioteki libfuse3.
48
49%package static
50Summary: Filesystem in Userspace - static library
51Summary(pl.UTF-8): System plików w przestrzeni użytkownika - biblioteka statyczna
da32b10c 52License: LGPL v2
be96c985
JB
53Group: Development/Libraries
54Requires: %{name}-devel = %{version}-%{release}
55
56%description static
57Static libfuse3 library.
58
59%description static -l pl.UTF-8
60Statyczna biblioteka libfuse3.
54a113e9 61
da32b10c
JB
62%package apidocs
63Summary: API documentation for FUSE 3 library
64Summary(pl.UTF-8): Dokumentacja API biblioteki FUSE 3
65Group: Documentation
66
67%description apidocs
68API documentation for FUSE 3 library.
69
70%description apidocs -l pl.UTF-8
71Dokumentacja API biblioteki FUSE 3.
72
73%package -n libfuse-common
74Summary: Common package for FUSE 2 and FUSE 3
75Summary(pl.UTF-8): Pliki wspólne dla FUSE 2 i FUSE 3
76Group: Libraries
77Conflicts: libfuse < 2.9.7-3
78Conflicts: libfuse3 < 3.2.4-2
79
80%description -n libfuse-common
81Common package for FUSE 2 and FUSE 3.
82
83%description -n libfuse-common -l pl.UTF-8
84Pliki wspólne dla FUSE 2 i FUSE 3.
85
86%package tools
87Summary: Tools to mount FUSE 3 based filesystems
88Summary(pl.UTF-8): Narzędzia do montowania systemów plików opartych na FUSE 3
89License: GPL v2
90Group: Applications/System
91Requires(pre): /usr/bin/getgid
92Requires(pre): /usr/sbin/groupadd
93Requires: %{name} = %{version}-%{release}
94Requires: libfuse-common = %{version}-%{release}
95Requires: mount >= 2.18
96Provides: group(fuse)
97
98%description tools
99Tools to mount FUSE 3 based filesystems.
100
101%description tools -l pl.UTF-8
102Narzędzia do montowania systemów plików opartych na FUSE 3.
103
54a113e9
AM
104%prep
105%setup -q -n fuse-%{version}
106%patch0 -p1
107
da32b10c 108%{__sed} -i '/FUSERMOUNT_PROG/s,fusermount3,%{_bindir}/fusermount3,' lib/mount.c
54a113e9
AM
109
110# gold is missing base versioning
111install -d ld-dir
112[ ! -x /usr/bin/ld.bfd ] || ln -sf /usr/bin/ld.bfd ld-dir/ld
113
114%build
115PATH=$(pwd)/ld-dir:$PATH
62bd8cd0 116
5c3c00ab
JP
117%meson build \
118 -Duseroot=false
62bd8cd0
AM
119
120%meson_build -C build
121
122%{?with_tests:%meson_test -C build}
54a113e9
AM
123
124%install
125rm -rf $RPM_BUILD_ROOT
62bd8cd0 126install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir},/sbin}
54a113e9 127
62bd8cd0 128%meson_install -C build
54a113e9 129
be96c985 130%{__mv} $RPM_BUILD_ROOT%{_libdir}/libfuse3.so.* $RPM_BUILD_ROOT/%{_lib}
54a113e9 131%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfuse3.so
da32b10c 132ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libfuse3.so.*.*) \
54a113e9
AM
133 $RPM_BUILD_ROOT%{_libdir}/libfuse3.so
134
be96c985 135%{__mv} $RPM_BUILD_ROOT{%{_sbindir},/sbin}/mount.fuse3
54a113e9
AM
136
137# part of default udev rules nowdays
be96c985 138%{__rm} $RPM_BUILD_ROOT/lib/udev/rules.d/99-fuse3.rules
54a113e9
AM
139
140# not needed
be96c985 141%{__rm} $RPM_BUILD_ROOT/etc/init.d/fuse3
54a113e9
AM
142
143%clean
144rm -rf $RPM_BUILD_ROOT
145
54a113e9
AM
146%post -p /sbin/ldconfig
147%postun -p /sbin/ldconfig
148
da32b10c
JB
149%pre tools
150%groupadd -g 84 fuse
151
54a113e9
AM
152%files
153%defattr(644,root,root,755)
da32b10c 154%doc README.md ChangeLog.rst AUTHORS doc/{README.NFS,fast17-vangoor.pdf,kernel.txt}
54a113e9
AM
155%attr(755,root,root) /%{_lib}/libfuse3.so.*.*.*
156%attr(755,root,root) %ghost /%{_lib}/libfuse3.so.3
54a113e9
AM
157
158%files devel
159%defattr(644,root,root,755)
160%attr(755,root,root) %{_libdir}/libfuse3.so
54a113e9
AM
161%{_includedir}/fuse3
162%{_pkgconfigdir}/fuse3.pc
be96c985
JB
163
164%files static
165%defattr(644,root,root,755)
166%{_libdir}/libfuse3.a
da32b10c
JB
167
168%files apidocs
169%defattr(644,root,root,755)
170%doc doc/html/*
171
172%files -n libfuse-common
173%defattr(644,root,root,755)
174%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf
175
176%files tools
177%defattr(644,root,root,755)
178%attr(4755,root,root) %{_bindir}/fusermount3
179%attr(755,root,root) /sbin/mount.fuse3
180%{_mandir}/man1/fusermount3.1*
181%{_mandir}/man8/mount.fuse3.8*
This page took 1.225909 seconds and 4 git commands to generate.