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