]>
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 | |
3bb7f3bb | 4 | Version: 3.15.0 |
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 | |
62bd8cd0 | 9 | Source0: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.xz |
3bb7f3bb | 10 | # Source0-md5: 2abc81e1e75c872ecbbb97eb945c408d |
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 |
3876689f | 18 | BuildRequires: tar >= 1:1.22 |
015a3091 | 19 | BuildRequires: udev-devel |
3876689f | 20 | BuildRequires: xz |
54a113e9 AM |
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 | 42 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe |
da32b10c | 43 | License: LGPL v2 |
54a113e9 AM |
44 | Group: Development/Libraries |
45 | Requires: %{name} = %{version}-%{release} | |
46 | ||
47 | %description devel | |
be96c985 | 48 | Libfuse3 library header files. |
54a113e9 AM |
49 | |
50 | %description devel -l pl.UTF-8 | |
be96c985 JB |
51 | Pliki nagłówkowe biblioteki libfuse3. |
52 | ||
53 | %package static | |
54 | Summary: Filesystem in Userspace - static library | |
55 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - biblioteka statyczna | |
da32b10c | 56 | License: LGPL v2 |
be96c985 JB |
57 | Group: Development/Libraries |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static libfuse3 library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka libfuse3. | |
54a113e9 | 65 | |
da32b10c JB |
66 | %package apidocs |
67 | Summary: API documentation for FUSE 3 library | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki FUSE 3 | |
69 | Group: Documentation | |
6f10cecd | 70 | BuildArch: noarch |
da32b10c JB |
71 | |
72 | %description apidocs | |
73 | API documentation for FUSE 3 library. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API biblioteki FUSE 3. | |
77 | ||
78 | %package -n libfuse-common | |
79 | Summary: Common package for FUSE 2 and FUSE 3 | |
80 | Summary(pl.UTF-8): Pliki wspólne dla FUSE 2 i FUSE 3 | |
81 | Group: Libraries | |
82 | Conflicts: libfuse < 2.9.7-3 | |
83 | Conflicts: libfuse3 < 3.2.4-2 | |
84 | ||
85 | %description -n libfuse-common | |
86 | Common package for FUSE 2 and FUSE 3. | |
87 | ||
88 | %description -n libfuse-common -l pl.UTF-8 | |
89 | Pliki wspólne dla FUSE 2 i FUSE 3. | |
90 | ||
91 | %package tools | |
92 | Summary: Tools to mount FUSE 3 based filesystems | |
93 | Summary(pl.UTF-8): Narzędzia do montowania systemów plików opartych na FUSE 3 | |
94 | License: GPL v2 | |
95 | Group: Applications/System | |
96 | Requires(pre): /usr/bin/getgid | |
97 | Requires(pre): /usr/sbin/groupadd | |
98 | Requires: %{name} = %{version}-%{release} | |
99 | Requires: libfuse-common = %{version}-%{release} | |
100 | Requires: mount >= 2.18 | |
101 | Provides: group(fuse) | |
102 | ||
103 | %description tools | |
104 | Tools to mount FUSE 3 based filesystems. | |
105 | ||
106 | %description tools -l pl.UTF-8 | |
107 | Narzędzia do montowania systemów plików opartych na FUSE 3. | |
108 | ||
54a113e9 AM |
109 | %prep |
110 | %setup -q -n fuse-%{version} | |
54a113e9 | 111 | |
da32b10c | 112 | %{__sed} -i '/FUSERMOUNT_PROG/s,fusermount3,%{_bindir}/fusermount3,' lib/mount.c |
54a113e9 | 113 | |
54a113e9 | 114 | %build |
5c3c00ab | 115 | %meson build \ |
f34549ab | 116 | -Dinitscriptdir= \ |
5c3c00ab | 117 | -Duseroot=false |
62bd8cd0 | 118 | |
3876689f | 119 | %ninja_build -C build |
62bd8cd0 | 120 | |
4e758e12 | 121 | %{?with_tests:%ninja_test -C build} |
54a113e9 AM |
122 | |
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
62bd8cd0 | 125 | install -d $RPM_BUILD_ROOT{/%{_lib},%{_sysconfdir},/sbin} |
54a113e9 | 126 | |
3876689f | 127 | %ninja_install -C build |
54a113e9 | 128 | |
be96c985 | 129 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libfuse3.so.* $RPM_BUILD_ROOT/%{_lib} |
54a113e9 | 130 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfuse3.so |
da32b10c | 131 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libfuse3.so.*.*) \ |
54a113e9 AM |
132 | $RPM_BUILD_ROOT%{_libdir}/libfuse3.so |
133 | ||
be96c985 | 134 | %{__mv} $RPM_BUILD_ROOT{%{_sbindir},/sbin}/mount.fuse3 |
54a113e9 AM |
135 | |
136 | # part of default udev rules nowdays | |
be96c985 | 137 | %{__rm} $RPM_BUILD_ROOT/lib/udev/rules.d/99-fuse3.rules |
54a113e9 | 138 | |
54a113e9 AM |
139 | %clean |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
54a113e9 AM |
142 | %post -p /sbin/ldconfig |
143 | %postun -p /sbin/ldconfig | |
144 | ||
da32b10c JB |
145 | %pre tools |
146 | %groupadd -g 84 fuse | |
147 | ||
54a113e9 AM |
148 | %files |
149 | %defattr(644,root,root,755) | |
da32b10c | 150 | %doc README.md ChangeLog.rst AUTHORS doc/{README.NFS,fast17-vangoor.pdf,kernel.txt} |
54a113e9 AM |
151 | %attr(755,root,root) /%{_lib}/libfuse3.so.*.*.* |
152 | %attr(755,root,root) %ghost /%{_lib}/libfuse3.so.3 | |
54a113e9 AM |
153 | |
154 | %files devel | |
155 | %defattr(644,root,root,755) | |
156 | %attr(755,root,root) %{_libdir}/libfuse3.so | |
54a113e9 AM |
157 | %{_includedir}/fuse3 |
158 | %{_pkgconfigdir}/fuse3.pc | |
be96c985 JB |
159 | |
160 | %files static | |
161 | %defattr(644,root,root,755) | |
162 | %{_libdir}/libfuse3.a | |
da32b10c JB |
163 | |
164 | %files apidocs | |
165 | %defattr(644,root,root,755) | |
166 | %doc doc/html/* | |
167 | ||
168 | %files -n libfuse-common | |
169 | %defattr(644,root,root,755) | |
170 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf | |
171 | ||
172 | %files tools | |
173 | %defattr(644,root,root,755) | |
174 | %attr(4755,root,root) %{_bindir}/fusermount3 | |
175 | %attr(755,root,root) /sbin/mount.fuse3 | |
176 | %{_mandir}/man1/fusermount3.1* | |
177 | %{_mandir}/man8/mount.fuse3.8* |