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