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