]>
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 |
d95c15a7 | 4 | Version: 2.9.3 |
96c21033 | 5 | Release: 2 |
c02bbc70 | 6 | Epoch: 0 |
e1541708 | 7 | License: GPL v2 |
fb76d4f3 | 8 | Group: Applications/System |
6e44c885 | 9 | Source0: http://downloads.sourceforge.net/fuse/fuse-%{version}.tar.gz |
d95c15a7 | 10 | # Source0-md5: 33cae22ca50311446400daf8a6255c6a |
f10c5dbc | 11 | Source1: fuse.conf |
d6263038 | 12 | Patch0: kernel-misc-fuse-Makefile.am.patch |
498c72b7 | 13 | URL: http://fuse.sourceforge.net/ |
e459071a | 14 | BuildRequires: autoconf >= 2.60 |
5bf8c553 | 15 | BuildRequires: automake |
e868be44 | 16 | BuildRequires: libtool |
4d1cfd58 | 17 | BuildRequires: sed >= 4.0 |
b066fee7 | 18 | Requires(pre): /usr/bin/getgid |
19 | Requires(pre): /usr/sbin/groupadd | |
6e29bdf4 | 20 | Provides: group(fuse) |
e459071a | 21 | Suggests: mount >= 2.18 |
10eda4b7 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c28e4405 | 23 | |
9c73f04f | 24 | %description |
25 | FUSE (Filesystem in Userspace) is a simple interface for userspace | |
544fbe9d | 26 | programs to export a virtual filesystem to the Linux kernel. FUSE also |
9c73f04f | 27 | aims to provide a secure method for non privileged users to create and |
28 | mount their own filesystem implementations. | |
29 | ||
d6263038 JB |
30 | This package contains a shared library. |
31 | ||
fa7f9ca7 JR |
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. | |
9c73f04f | 38 | |
fa7f9ca7 | 39 | Ten pakiet zawiera bibliotekę współdzieloną. |
d6263038 JB |
40 | |
41 | %package devel | |
42 | Summary: Filesytem in Userspace - Development header files | |
8bb117ff | 43 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe |
d6263038 | 44 | Group: Development/Libraries |
e4d64625 | 45 | Requires: %{name} = %{epoch}:%{version}-%{release} |
d6263038 JB |
46 | |
47 | %description devel | |
48 | Libfuse library header files. | |
49 | ||
fa7f9ca7 JR |
50 | %description devel -l pl.UTF-8 |
51 | Pliki nagłówkowe biblioteki libfuse. | |
d6263038 JB |
52 | |
53 | %package static | |
54 | Summary: Filesytem in Userspace - static library | |
8bb117ff | 55 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - biblioteka statyczna |
2d1d7461 | 56 | Group: Development/Libraries |
e4d64625 | 57 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
d6263038 JB |
58 | |
59 | %description static | |
60 | Static libfuse libraries. | |
61 | ||
fa7f9ca7 | 62 | %description static -l pl.UTF-8 |
d6263038 JB |
63 | Statyczna biblioteka libfuse. |
64 | ||
9c73f04f | 65 | %prep |
4965dc0c | 66 | %setup -q -n fuse-%{version} |
3d2362f9 | 67 | %patch0 -p1 |
d6263038 | 68 | |
202ebc3b | 69 | sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_bindir}/fusermount,' lib/mount.c |
9c73f04f | 70 | |
6e44c885 JB |
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 | ||
9c73f04f | 75 | %build |
6e44c885 | 76 | PATH=$(pwd)/ld-dir:$PATH |
496fbb04 | 77 | %{__libtoolize} |
a35003d8 PS |
78 | %{__aclocal} |
79 | %{__autoconf} | |
e459071a | 80 | %{__autoheader} |
a35003d8 | 81 | %{__automake} |
c660eb4c | 82 | %configure \ |
e4d64625 | 83 | INIT_D_PATH=/etc/rc.d/init.d \ |
e459071a | 84 | --disable-silent-rules \ |
d6263038 | 85 | --enable-lib \ |
e4d64625 | 86 | --enable-util |
7fb6785c | 87 | |
e4d64625 | 88 | %{__make} |
9c73f04f | 89 | |
9c73f04f | 90 | %install |
91 | rm -rf $RPM_BUILD_ROOT | |
6fe6dd7d | 92 | install -d $RPM_BUILD_ROOT{/%{_lib},%{_pkgconfigdir},%{_sysconfdir}} |
9c73f04f | 93 | |
e4d64625 | 94 | %{__make} install \ |
496fbb04 | 95 | DESTDIR=$RPM_BUILD_ROOT |
496fbb04 | 96 | |
6fe6dd7d JR |
97 | mv -f $RPM_BUILD_ROOT%{_libdir}/libfuse.so.* $RPM_BUILD_ROOT/%{_lib} |
98 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfuse.so | |
99 | ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libfuse.so.*.*) \ | |
100 | $RPM_BUILD_ROOT%{_libdir}/libfuse.so | |
101 | ||
496fbb04 | 102 | install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir} |
3af001c7 | 103 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} |
8413d3ec | 104 | |
396f9557 AM |
105 | # part of default udev rules nowdays |
106 | rm $RPM_BUILD_ROOT/etc/udev/rules.d/99-fuse.rules | |
107 | ||
108 | # not needed | |
109 | rm $RPM_BUILD_ROOT/etc/rc.d/init.d/fuse | |
110 | ||
c02bbc70 JB |
111 | %clean |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
b066fee7 | 114 | %pre |
a270b1b1 | 115 | %groupadd -g 84 fuse |
b066fee7 | 116 | |
d6263038 | 117 | %post -p /sbin/ldconfig |
cefe4f98 | 118 | %postun -p /sbin/ldconfig |
d6263038 | 119 | |
9c73f04f | 120 | %files |
121 | %defattr(644,root,root,755) | |
496fbb04 | 122 | %doc README NEWS ChangeLog AUTHORS doc/* |
f5e4370a | 123 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf |
75544216 | 124 | %attr(4755,root,root) %{_bindir}/fusermount |
80df11a9 | 125 | %attr(755,root,root) %{_bindir}/ulockmgr_server |
f5e4370a | 126 | %attr(755,root,root) /sbin/mount.fuse |
6fe6dd7d JR |
127 | %attr(755,root,root) /%{_lib}/libfuse.so.*.*.* |
128 | %attr(755,root,root) %ghost /%{_lib}/libfuse.so.2 | |
c6e9eee0 JB |
129 | %attr(755,root,root) %{_libdir}/libulockmgr.so.*.*.* |
130 | %attr(755,root,root) %ghost %{_libdir}/libulockmgr.so.1 | |
e459071a JB |
131 | %{_mandir}/man1/fusermount.1* |
132 | %{_mandir}/man1/ulockmgr_server.1* | |
133 | %{_mandir}/man8/mount.fuse.8* | |
4965dc0c | 134 | |
d6263038 | 135 | %files devel |
4965dc0c | 136 | %defattr(644,root,root,755) |
c6e9eee0 JB |
137 | %attr(755,root,root) %{_libdir}/libfuse.so |
138 | %attr(755,root,root) %{_libdir}/libulockmgr.so | |
139 | %{_libdir}/libfuse.la | |
140 | %{_libdir}/libulockmgr.la | |
141 | %{_includedir}/fuse | |
142 | %{_includedir}/fuse.h | |
80df11a9 | 143 | %{_includedir}/ulockmgr.h |
496fbb04 | 144 | %{_pkgconfigdir}/fuse.pc |
9c73f04f | 145 | |
d6263038 | 146 | %files static |
4965dc0c | 147 | %defattr(644,root,root,755) |
c6e9eee0 JB |
148 | %{_libdir}/libfuse.a |
149 | %{_libdir}/libulockmgr.a |