]>
Commit | Line | Data |
---|---|---|
1 | Summary: Filesystem in Userspace | |
2 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika | |
3 | Name: libfuse3 | |
4 | Version: 3.10.4 | |
5 | Release: 1 | |
6 | License: LGPL v2 (library), GPL v2 (tools) | |
7 | Group: Applications/System | |
8 | #Source0Download: https://github.com/libfuse/libfuse/releases | |
9 | Source0: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.xz | |
10 | # Source0-md5: 55b87e9ed691c2fa698e491241985b4a | |
11 | Patch0: %{name}-build.patch | |
12 | URL: https://github.com/libfuse/libfuse | |
13 | BuildRequires: meson >= 0.42 | |
14 | BuildRequires: ninja >= 1.5 | |
15 | BuildRequires: rpmbuild(macros) >= 1.736 | |
16 | BuildRequires: sed >= 4.0 | |
17 | BuildRequires: tar >= 1:1.22 | |
18 | BuildRequires: udev-devel | |
19 | BuildRequires: xz | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | FUSE (Filesystem in Userspace) is a simple interface for userspace | |
24 | programs to export a virtual filesystem to the Linux kernel. FUSE also | |
25 | aims to provide a secure method for non privileged users to create and | |
26 | mount their own filesystem implementations. | |
27 | ||
28 | This package contains a shared library. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | FUSE stanowi prosty interfejs dla programów działających w przestrzeni | |
32 | użytkownika eksportujący wirtualny system plików do jądra Linuksa. | |
33 | FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i | |
34 | montowania własnych implementacji systemów plików przez zwykłych | |
35 | (nieuprzywilejowanych) użytkowników. | |
36 | ||
37 | Ten pakiet zawiera bibliotekę współdzieloną. | |
38 | ||
39 | %package devel | |
40 | Summary: Filesystem in Userspace - Development header files | |
41 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe | |
42 | License: LGPL v2 | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | ||
46 | %description devel | |
47 | Libfuse3 library header files. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
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 | License: LGPL v2 | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static libfuse3 library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka libfuse3. | |
64 | ||
65 | %package apidocs | |
66 | Summary: API documentation for FUSE 3 library | |
67 | Summary(pl.UTF-8): Dokumentacja API biblioteki FUSE 3 | |
68 | Group: Documentation | |
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 | ||
107 | %prep | |
108 | %setup -q -n fuse-%{version} | |
109 | %patch0 -p1 | |
110 | ||
111 | %{__sed} -i '/FUSERMOUNT_PROG/s,fusermount3,%{_bindir}/fusermount3,' lib/mount.c | |
112 | ||
113 | # gold is missing base versioning | |
114 | install -d ld-dir | |
115 | [ ! -x /usr/bin/ld.bfd ] || ln -sf /usr/bin/ld.bfd ld-dir/ld | |
116 | ||
117 | %build | |
118 | PATH=$(pwd)/ld-dir:$PATH | |
119 | ||
120 | %meson build \ | |
121 | -Duseroot=false | |
122 | ||
123 | %ninja_build -C build | |
124 | ||
125 | %{?with_tests:%ninja_test -C build} | |
126 | ||
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir},/sbin} | |
130 | ||
131 | %ninja_install -C build | |
132 | ||
133 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libfuse3.so.* $RPM_BUILD_ROOT/%{_lib} | |
134 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfuse3.so | |
135 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libfuse3.so.*.*) \ | |
136 | $RPM_BUILD_ROOT%{_libdir}/libfuse3.so | |
137 | ||
138 | %{__mv} $RPM_BUILD_ROOT{%{_sbindir},/sbin}/mount.fuse3 | |
139 | ||
140 | # part of default udev rules nowdays | |
141 | %{__rm} $RPM_BUILD_ROOT/lib/udev/rules.d/99-fuse3.rules | |
142 | ||
143 | # not needed | |
144 | %{__rm} $RPM_BUILD_ROOT/etc/init.d/fuse3 | |
145 | ||
146 | %clean | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %post -p /sbin/ldconfig | |
150 | %postun -p /sbin/ldconfig | |
151 | ||
152 | %pre tools | |
153 | %groupadd -g 84 fuse | |
154 | ||
155 | %files | |
156 | %defattr(644,root,root,755) | |
157 | %doc README.md ChangeLog.rst AUTHORS doc/{README.NFS,fast17-vangoor.pdf,kernel.txt} | |
158 | %attr(755,root,root) /%{_lib}/libfuse3.so.*.*.* | |
159 | %attr(755,root,root) %ghost /%{_lib}/libfuse3.so.3 | |
160 | ||
161 | %files devel | |
162 | %defattr(644,root,root,755) | |
163 | %attr(755,root,root) %{_libdir}/libfuse3.so | |
164 | %{_includedir}/fuse3 | |
165 | %{_pkgconfigdir}/fuse3.pc | |
166 | ||
167 | %files static | |
168 | %defattr(644,root,root,755) | |
169 | %{_libdir}/libfuse3.a | |
170 | ||
171 | %files apidocs | |
172 | %defattr(644,root,root,755) | |
173 | %doc doc/html/* | |
174 | ||
175 | %files -n libfuse-common | |
176 | %defattr(644,root,root,755) | |
177 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf | |
178 | ||
179 | %files tools | |
180 | %defattr(644,root,root,755) | |
181 | %attr(4755,root,root) %{_bindir}/fusermount3 | |
182 | %attr(755,root,root) /sbin/mount.fuse3 | |
183 | %{_mandir}/man1/fusermount3.1* | |
184 | %{_mandir}/man8/mount.fuse3.8* |