]>
Commit | Line | Data |
---|---|---|
9c73f04f | 1 | Summary: Filesystem in Userspace |
8bb117ff | 2 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika |
e4d64625 | 3 | Name: libfuse |
7f2ac30a | 4 | Version: 2.9.9 |
fa0f08e9 | 5 | Release: 3 |
336124d2 | 6 | License: LGPL v2 (library), GPL v2 (tools) |
fb76d4f3 | 7 | Group: Applications/System |
de44e63c JB |
8 | #Source0Download: https://github.com/libfuse/libfuse/releases |
9 | Source0: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz | |
7f2ac30a | 10 | # Source0-md5: 8000410aadc9231fd48495f7642f3312 |
d6263038 | 11 | Patch0: kernel-misc-fuse-Makefile.am.patch |
af5085d4 | 12 | Patch1: %{name}-arm64.patch |
fa0f08e9 | 13 | Patch2: fuse-2.9.9-closefrom-glibc-2-34.patch |
a3b538f8 | 14 | URL: https://github.com/libfuse/libfuse |
e459071a | 15 | BuildRequires: autoconf >= 2.60 |
5bf8c553 | 16 | BuildRequires: automake |
e868be44 | 17 | BuildRequires: libtool |
4d1cfd58 | 18 | BuildRequires: sed >= 4.0 |
10eda4b7 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c28e4405 | 20 | |
9c73f04f | 21 | %description |
22 | FUSE (Filesystem in Userspace) is a simple interface for userspace | |
544fbe9d | 23 | programs to export a virtual filesystem to the Linux kernel. FUSE also |
9c73f04f | 24 | aims to provide a secure method for non privileged users to create and |
25 | mount their own filesystem implementations. | |
26 | ||
d6263038 JB |
27 | This package contains a shared library. |
28 | ||
fa7f9ca7 JR |
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. | |
9c73f04f | 35 | |
fa7f9ca7 | 36 | Ten pakiet zawiera bibliotekę współdzieloną. |
d6263038 JB |
37 | |
38 | %package devel | |
0f68f768 | 39 | Summary: Filesystem in Userspace - development header files |
8bb117ff | 40 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe |
336124d2 | 41 | License: LGPL v2 |
d6263038 | 42 | Group: Development/Libraries |
0d76d811 | 43 | Requires: %{name} = %{version}-%{release} |
d6263038 JB |
44 | |
45 | %description devel | |
0f68f768 | 46 | FUSE libraries header files. |
d6263038 | 47 | |
fa7f9ca7 | 48 | %description devel -l pl.UTF-8 |
0f68f768 | 49 | Pliki nagłówkowe bibliotek FUSE. |
d6263038 JB |
50 | |
51 | %package static | |
0f68f768 JB |
52 | Summary: Filesystem in Userspace - static libraries |
53 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - biblioteki statyczne | |
336124d2 | 54 | License: LGPL v2 |
2d1d7461 | 55 | Group: Development/Libraries |
0d76d811 | 56 | Requires: %{name}-devel = %{version}-%{release} |
d6263038 JB |
57 | |
58 | %description static | |
0f68f768 | 59 | Static FUSE libraries. |
d6263038 | 60 | |
fa7f9ca7 | 61 | %description static -l pl.UTF-8 |
0f68f768 | 62 | Statyczne biblioteki FUSE. |
d6263038 | 63 | |
336124d2 JB |
64 | %package apidocs |
65 | Summary: API documentation for FUSE library | |
66 | Summary(pl.UTF-8): Dokumentacja API bibliotek FUSE | |
67 | Group: Documentation | |
68 | ||
69 | %description apidocs | |
70 | API documentation for FUSE library. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API bibliotek FUSE. | |
74 | ||
75 | %package tools | |
76 | Summary: Tools to mount FUSE based filesystems | |
77 | Summary(pl.UTF-8): Narzędzia do montowania systemów plików opartych na FUSE | |
78 | License: GPL v2 | |
79 | Group: Applications/System | |
80 | Requires(pre): /usr/bin/getgid | |
81 | Requires(pre): /usr/sbin/groupadd | |
82 | Requires: %{name} = %{version}-%{release} | |
83 | Requires: libfuse-common >= %{version} | |
84 | Requires: mount >= 2.18 | |
85 | Provides: group(fuse) | |
86 | Obsoletes: fusermount | |
87 | ||
88 | %description tools | |
89 | Tools to mount FUSE based filesystems. | |
90 | ||
91 | %description tools -l pl.UTF-8 | |
92 | Narzędzia do montowania systemów plików opartych na FUSE. | |
93 | ||
9c73f04f | 94 | %prep |
4965dc0c | 95 | %setup -q -n fuse-%{version} |
3d2362f9 | 96 | %patch0 -p1 |
af5085d4 | 97 | %patch1 -p1 |
fa0f08e9 | 98 | %patch2 -p1 |
d6263038 | 99 | |
202ebc3b | 100 | sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_bindir}/fusermount,' lib/mount.c |
9c73f04f | 101 | |
6e44c885 JB |
102 | # gold is missing base versioning |
103 | install -d ld-dir | |
104 | [ ! -x /usr/bin/ld.bfd ] || ln -sf /usr/bin/ld.bfd ld-dir/ld | |
105 | ||
9c73f04f | 106 | %build |
6e44c885 | 107 | PATH=$(pwd)/ld-dir:$PATH |
496fbb04 | 108 | %{__libtoolize} |
a35003d8 PS |
109 | %{__aclocal} |
110 | %{__autoconf} | |
e459071a | 111 | %{__autoheader} |
a35003d8 | 112 | %{__automake} |
c660eb4c | 113 | %configure \ |
e4d64625 | 114 | INIT_D_PATH=/etc/rc.d/init.d \ |
e459071a | 115 | --disable-silent-rules \ |
d6263038 | 116 | --enable-lib \ |
e4d64625 | 117 | --enable-util |
7fb6785c | 118 | |
e4d64625 | 119 | %{__make} |
9c73f04f | 120 | |
9c73f04f | 121 | %install |
122 | rm -rf $RPM_BUILD_ROOT | |
6fe6dd7d | 123 | install -d $RPM_BUILD_ROOT{/%{_lib},%{_pkgconfigdir},%{_sysconfdir}} |
9c73f04f | 124 | |
e4d64625 | 125 | %{__make} install \ |
496fbb04 | 126 | DESTDIR=$RPM_BUILD_ROOT |
496fbb04 | 127 | |
336124d2 | 128 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libfuse.so.* $RPM_BUILD_ROOT/%{_lib} |
6fe6dd7d | 129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfuse.so |
336124d2 | 130 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libfuse.so.*.*) \ |
6fe6dd7d JR |
131 | $RPM_BUILD_ROOT%{_libdir}/libfuse.so |
132 | ||
496fbb04 | 133 | install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir} |
8413d3ec | 134 | |
396f9557 | 135 | # part of default udev rules nowdays |
336124d2 | 136 | %{__rm} $RPM_BUILD_ROOT/etc/udev/rules.d/99-fuse.rules |
396f9557 AM |
137 | |
138 | # not needed | |
336124d2 | 139 | %{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/fuse |
396f9557 | 140 | |
c02bbc70 JB |
141 | %clean |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
d6263038 | 144 | %post -p /sbin/ldconfig |
cefe4f98 | 145 | %postun -p /sbin/ldconfig |
d6263038 | 146 | |
336124d2 JB |
147 | %pre tools |
148 | %groupadd -g 84 fuse | |
149 | ||
9c73f04f | 150 | %files |
151 | %defattr(644,root,root,755) | |
336124d2 | 152 | %doc README.md NEWS ChangeLog AUTHORS doc/{how-fuse-works,kernel.txt} |
6fe6dd7d JR |
153 | %attr(755,root,root) /%{_lib}/libfuse.so.*.*.* |
154 | %attr(755,root,root) %ghost /%{_lib}/libfuse.so.2 | |
c6e9eee0 JB |
155 | %attr(755,root,root) %{_libdir}/libulockmgr.so.*.*.* |
156 | %attr(755,root,root) %ghost %{_libdir}/libulockmgr.so.1 | |
4965dc0c | 157 | |
d6263038 | 158 | %files devel |
4965dc0c | 159 | %defattr(644,root,root,755) |
c6e9eee0 JB |
160 | %attr(755,root,root) %{_libdir}/libfuse.so |
161 | %attr(755,root,root) %{_libdir}/libulockmgr.so | |
162 | %{_libdir}/libfuse.la | |
163 | %{_libdir}/libulockmgr.la | |
164 | %{_includedir}/fuse | |
165 | %{_includedir}/fuse.h | |
80df11a9 | 166 | %{_includedir}/ulockmgr.h |
496fbb04 | 167 | %{_pkgconfigdir}/fuse.pc |
9c73f04f | 168 | |
d6263038 | 169 | %files static |
4965dc0c | 170 | %defattr(644,root,root,755) |
c6e9eee0 JB |
171 | %{_libdir}/libfuse.a |
172 | %{_libdir}/libulockmgr.a | |
336124d2 JB |
173 | |
174 | %files apidocs | |
175 | %defattr(644,root,root,755) | |
176 | %doc doc/html/* | |
177 | ||
178 | %files tools | |
179 | %defattr(644,root,root,755) | |
180 | %attr(4755,root,root) %{_bindir}/fusermount | |
181 | %attr(755,root,root) %{_bindir}/ulockmgr_server | |
182 | %attr(755,root,root) /sbin/mount.fuse | |
183 | %{_mandir}/man1/fusermount.1* | |
184 | %{_mandir}/man1/ulockmgr_server.1* | |
185 | %{_mandir}/man8/mount.fuse.8* |