]>
Commit | Line | Data |
---|---|---|
54a113e9 AM |
1 | Summary: Filesystem in Userspace |
2 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika | |
3 | Name: libfuse3 | |
4a12e978 | 4 | Version: 3.2.4 |
54a113e9 AM |
5 | Release: 1 |
6 | License: GPL v2 | |
7 | Group: Applications/System | |
8 | #Source0Download: https://github.com/libfuse/libfuse/releases | |
62bd8cd0 | 9 | Source0: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.xz |
4a12e978 | 10 | # Source0-md5: 19cb175ebd2d9cfa78a857e0129d9b0a |
62bd8cd0 | 11 | Patch0: %{name}-build.patch |
54a113e9 | 12 | URL: https://github.com/libfuse/libfuse |
62bd8cd0 | 13 | BuildRequires: meson |
be96c985 JB |
14 | # for --default_library=both |
15 | BuildRequires: rpmbuild(macros) >= 1.732 | |
54a113e9 AM |
16 | BuildRequires: sed >= 4.0 |
17 | Requires(pre): /usr/bin/getgid | |
18 | Requires(pre): /usr/sbin/groupadd | |
19 | Suggests: mount >= 2.18 | |
20 | Provides: group(fuse) | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | FUSE (Filesystem in Userspace) is a simple interface for userspace | |
25 | programs to export a virtual filesystem to the Linux kernel. FUSE also | |
26 | aims to provide a secure method for non privileged users to create and | |
27 | mount their own filesystem implementations. | |
28 | ||
29 | This package contains a shared library. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | FUSE stanowi prosty interfejs dla programów działających w przestrzeni | |
33 | użytkownika eksportujący wirtualny system plików do jądra Linuksa. | |
34 | FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i | |
35 | montowania własnych implementacji systemów plików przez zwykłych | |
36 | (nieuprzywilejowanych) użytkowników. | |
37 | ||
38 | Ten pakiet zawiera bibliotekę współdzieloną. | |
39 | ||
40 | %package devel | |
be96c985 | 41 | Summary: Filesystem in Userspace - Development header files |
54a113e9 AM |
42 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | ||
46 | %description devel | |
be96c985 | 47 | Libfuse3 library header files. |
54a113e9 AM |
48 | |
49 | %description devel -l pl.UTF-8 | |
be96c985 JB |
50 | Pliki nagłówkowe biblioteki libfuse3. |
51 | ||
52 | %package static | |
53 | Summary: Filesystem in Userspace - static library | |
54 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - biblioteka statyczna | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static libfuse3 library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka libfuse3. | |
54a113e9 | 63 | |
54a113e9 AM |
64 | %prep |
65 | %setup -q -n fuse-%{version} | |
66 | %patch0 -p1 | |
67 | ||
68 | sed -i '/FUSERMOUNT_PROG/s,fusermount3,%{_bindir}/fusermount3,' lib/mount.c | |
69 | ||
70 | # gold is missing base versioning | |
71 | install -d ld-dir | |
72 | [ ! -x /usr/bin/ld.bfd ] || ln -sf /usr/bin/ld.bfd ld-dir/ld | |
73 | ||
74 | %build | |
75 | PATH=$(pwd)/ld-dir:$PATH | |
62bd8cd0 AM |
76 | |
77 | %meson build | |
78 | ||
79 | %meson_build -C build | |
80 | ||
81 | %{?with_tests:%meson_test -C build} | |
54a113e9 AM |
82 | |
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
62bd8cd0 | 85 | install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir},/sbin} |
54a113e9 | 86 | |
62bd8cd0 | 87 | %meson_install -C build |
54a113e9 | 88 | |
be96c985 | 89 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libfuse3.so.* $RPM_BUILD_ROOT/%{_lib} |
54a113e9 AM |
90 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfuse3.so |
91 | ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libfuse3.so.*.*) \ | |
92 | $RPM_BUILD_ROOT%{_libdir}/libfuse3.so | |
93 | ||
be96c985 | 94 | %{__mv} $RPM_BUILD_ROOT{%{_sbindir},/sbin}/mount.fuse3 |
54a113e9 AM |
95 | |
96 | # part of default udev rules nowdays | |
be96c985 | 97 | %{__rm} $RPM_BUILD_ROOT/lib/udev/rules.d/99-fuse3.rules |
54a113e9 AM |
98 | |
99 | # not needed | |
be96c985 | 100 | %{__rm} $RPM_BUILD_ROOT/etc/init.d/fuse3 |
54a113e9 AM |
101 | |
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %pre | |
106 | %groupadd -g 84 fuse | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
113 | %doc README.md ChangeLog.rst AUTHORS doc/* | |
114 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf | |
115 | %attr(4755,root,root) %{_bindir}/fusermount3 | |
116 | %attr(755,root,root) /sbin/mount.fuse3 | |
117 | %attr(755,root,root) /%{_lib}/libfuse3.so.*.*.* | |
118 | %attr(755,root,root) %ghost /%{_lib}/libfuse3.so.3 | |
119 | %{_mandir}/man1/fusermount3.1* | |
120 | %{_mandir}/man8/mount.fuse3.8* | |
121 | ||
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_libdir}/libfuse3.so | |
54a113e9 AM |
125 | %{_includedir}/fuse3 |
126 | %{_pkgconfigdir}/fuse3.pc | |
be96c985 JB |
127 | |
128 | %files static | |
129 | %defattr(644,root,root,755) | |
130 | %{_libdir}/libfuse3.a |