]>
Commit | Line | Data |
---|---|---|
c28e4405 PS |
1 | # |
2 | # Condtional build: | |
3 | %bcond_without dist_kernel # without distribution kernel | |
bc819d7f | 4 | %bcond_with kernel # build kernel modules |
4965dc0c | 5 | %bcond_without userspace # don't build userspace tools |
a35003d8 | 6 | %bcond_with verbose # verbose build (V=1) |
441a6a89 | 7 | %bcond_with grsec_kernel # build for kernel-grsecurity |
127ee08d | 8 | %bcond_without selinux # build without SELinux support |
441a6a89 | 9 | # |
10 | %if %{with kernel} && %{with dist_kernel} && %{with grsec_kernel} | |
11 | %define alt_kernel grsecurity | |
12 | %endif | |
c28e4405 | 13 | # |
13241b84 | 14 | %define _rel 1 |
9c73f04f | 15 | Summary: Filesystem in Userspace |
8bb117ff | 16 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika |
d6263038 | 17 | Name: libfuse |
c8322647 | 18 | Version: 2.7.3 |
d6263038 | 19 | Release: %{_rel} |
c02bbc70 | 20 | Epoch: 0 |
e1541708 | 21 | License: GPL v2 |
fb76d4f3 | 22 | Group: Applications/System |
c02bbc70 | 23 | Source0: http://dl.sourceforge.net/fuse/fuse-%{version}.tar.gz |
c8322647 | 24 | # Source0-md5: 98563fc7b265b7479a3178181cbcf59a |
f10c5dbc | 25 | Source1: fuse.conf |
d6263038 | 26 | Patch0: kernel-misc-fuse-Makefile.am.patch |
4d1cfd58 | 27 | Patch1: %{name}-link.patch |
498c72b7 | 28 | URL: http://fuse.sourceforge.net/ |
5bf8c553 | 29 | BuildRequires: autoconf |
30 | BuildRequires: automake | |
4d1cfd58 | 31 | BuildRequires: libtool |
1ad71c20 | 32 | BuildRequires: cpp |
4d1cfd58 | 33 | BuildRequires: sed >= 4.0 |
498c72b7 | 34 | %if %{with kernel} |
3aa68fea | 35 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2} |
2f81dc21 | 36 | BuildRequires: rpmbuild(macros) >= 1.379 |
002758f1 | 37 | %endif |
4d1cfd58 | 38 | %if %{with userspace} |
efd7a38f | 39 | %{?with_selinux:BuildRequires: libselinux-devel} |
4d1cfd58 | 40 | %endif |
244ef643 ER |
41 | Requires(postun): /sbin/ldconfig |
42 | Requires(postun): /usr/sbin/groupdel | |
b066fee7 | 43 | Requires(pre): /usr/bin/getgid |
44 | Requires(pre): /usr/sbin/groupadd | |
9c73f04f | 45 | Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c28e4405 | 46 | |
5268c989 | 47 | %if !%{with kernel} |
2e74d96c | 48 | %undefine with_dist_kernel |
49 | %endif | |
50 | ||
9c73f04f | 51 | %description |
52 | FUSE (Filesystem in Userspace) is a simple interface for userspace | |
544fbe9d | 53 | programs to export a virtual filesystem to the Linux kernel. FUSE also |
9c73f04f | 54 | aims to provide a secure method for non privileged users to create and |
55 | mount their own filesystem implementations. | |
56 | ||
d6263038 JB |
57 | This package contains a shared library. |
58 | ||
fa7f9ca7 JR |
59 | %description -l pl.UTF-8 |
60 | FUSE stanowi prosty interfejs dla programów działających w przestrzeni | |
61 | użytkownika eksportujący wirtualny system plików do jądra Linuksa. | |
62 | FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i | |
63 | montowania własnych implementacji systemów plików przez zwykłych | |
64 | (nieuprzywilejowanych) użytkowników. | |
9c73f04f | 65 | |
fa7f9ca7 | 66 | Ten pakiet zawiera bibliotekę współdzieloną. |
d6263038 JB |
67 | |
68 | %package devel | |
69 | Summary: Filesytem in Userspace - Development header files | |
8bb117ff | 70 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe |
d6263038 JB |
71 | Group: Development/Libraries |
72 | Requires: %{name} = %{epoch}:%{version}-%{_rel} | |
73 | ||
74 | %description devel | |
75 | Libfuse library header files. | |
76 | ||
fa7f9ca7 JR |
77 | %description devel -l pl.UTF-8 |
78 | Pliki nagłówkowe biblioteki libfuse. | |
d6263038 JB |
79 | |
80 | %package static | |
81 | Summary: Filesytem in Userspace - static library | |
8bb117ff | 82 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - biblioteka statyczna |
2d1d7461 | 83 | Group: Development/Libraries |
d6263038 JB |
84 | Requires: libfuse-devel = %{epoch}:%{version}-%{_rel} |
85 | ||
86 | %description static | |
87 | Static libfuse libraries. | |
88 | ||
fa7f9ca7 | 89 | %description static -l pl.UTF-8 |
d6263038 JB |
90 | Statyczna biblioteka libfuse. |
91 | ||
0612e680 | 92 | %package -n kernel%{_alt_kernel}-misc-fuse |
d6263038 | 93 | Summary: Filesystem in Userspace |
8bb117ff | 94 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika |
d6263038 JB |
95 | Release: %{_rel}@%{_kernel_ver_str} |
96 | License: GPL v2 | |
97 | Group: Base/Kernel | |
d6263038 | 98 | Requires(post,postun): /sbin/depmod |
8bfc0885 | 99 | %if %{with dist_kernel} |
2f81dc21 | 100 | %requires_releq_kernel |
101 | Requires(postun): %releq_kernel | |
8bfc0885 | 102 | %endif |
0612e680 | 103 | %if "%{_alt_kernel}" != "%{nil}" |
104 | Provides: kernel-misc-fuse | |
105 | %endif | |
d6263038 | 106 | |
0612e680 | 107 | %description -n kernel%{_alt_kernel}-misc-fuse |
d6263038 JB |
108 | FUSE (Filesystem in Userspace) is a simple interface for userspace |
109 | programs to export a virtual filesystem to the Linux kernel. FUSE also | |
110 | aims to provide a secure method for non privileged users to create and | |
111 | mount their own filesystem implementations. | |
112 | ||
fa7f9ca7 JR |
113 | %description -n kernel%{_alt_kernel}-misc-fuse -l pl.UTF-8 |
114 | FUSE stanowi prosty interfejs dla programów działających w przestrzeni | |
115 | użytkownika eksportujący wirtualny system plików do jądra Linuksa. | |
116 | FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i | |
117 | montowania własnych implementacji systemów plików przez zwykłych | |
118 | (nieuprzywilejowanych) użytkowników. | |
d6263038 | 119 | |
9c73f04f | 120 | %prep |
4965dc0c | 121 | %setup -q -n fuse-%{version} |
3d2362f9 | 122 | %patch0 -p1 |
4d1cfd58 | 123 | %patch1 -p1 |
d6263038 | 124 | |
202ebc3b | 125 | sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_bindir}/fusermount,' lib/mount.c |
9c73f04f | 126 | |
127 | %build | |
496fbb04 | 128 | %{__libtoolize} |
a35003d8 | 129 | %{__aclocal} |
496fbb04 | 130 | %{__autoheader} |
a35003d8 PS |
131 | %{__autoconf} |
132 | %{__automake} | |
c660eb4c | 133 | %configure \ |
127ee08d | 134 | %{!?with_selinux:ac_cv_header_selinux_selinux_h=no} \ |
2e74d96c | 135 | --%{?with_kernel:en}%{!?with_kernel:dis}able-kernel-module \ |
d6263038 JB |
136 | --enable-lib \ |
137 | --enable-util \ | |
2e74d96c | 138 | %{?with_kernel:--with-kernel=%{_kernelsrcdir}} |
7fb6785c | 139 | |
8bfc0885 PS |
140 | %if %{with userspace} |
141 | cp kernel/fuse_kernel.h include/ | |
142 | for DIR in include lib util; do | |
143 | %{__make} -C $DIR | |
144 | done | |
145 | %endif | |
146 | ||
a35003d8 | 147 | %if %{with kernel} |
9e146969 | 148 | %build_kernel_modules -m fuse -C kernel |
a35003d8 | 149 | %endif |
9c73f04f | 150 | |
9c73f04f | 151 | %install |
152 | rm -rf $RPM_BUILD_ROOT | |
3af001c7 | 153 | install -d $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_sysconfdir}} |
9c73f04f | 154 | |
8413d3ec | 155 | %if %{with userspace} |
496fbb04 | 156 | for DIR in include lib util; do |
157 | %{__make} -C $DIR install \ | |
158 | DESTDIR=$RPM_BUILD_ROOT | |
159 | done | |
160 | ||
161 | install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
3af001c7 | 162 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} |
8413d3ec | 163 | %endif |
9c73f04f | 164 | |
8413d3ec | 165 | %if %{with kernel} |
0612e680 | 166 | %install_kernel_modules -m kernel/fuse -d kernel/fs |
8413d3ec PS |
167 | %endif |
168 | ||
c02bbc70 JB |
169 | %clean |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
b066fee7 | 172 | %pre |
173 | %groupadd -g 84 fuse | |
174 | ||
d6263038 | 175 | %post -p /sbin/ldconfig |
244ef643 | 176 | %postun |
b066fee7 | 177 | /sbin/ldconfig |
93034210 JB |
178 | if [ "$1" = "0" ] ; then |
179 | %groupremove fuse | |
b066fee7 | 180 | fi |
d6263038 | 181 | |
0612e680 | 182 | %post -n kernel%{_alt_kernel}-misc-fuse |
e1541708 | 183 | %depmod %{_kernel_ver} |
9c73f04f | 184 | |
0612e680 | 185 | %postun -n kernel%{_alt_kernel}-misc-fuse |
e1541708 PS |
186 | %depmod %{_kernel_ver} |
187 | ||
d6263038 | 188 | %if %{with userspace} |
9c73f04f | 189 | %files |
190 | %defattr(644,root,root,755) | |
496fbb04 | 191 | %doc README NEWS ChangeLog AUTHORS doc/* |
f5e4370a | 192 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf |
93034210 | 193 | %attr(4754,root,fuse) %{_bindir}/fusermount |
80df11a9 | 194 | %attr(755,root,root) %{_bindir}/ulockmgr_server |
f5e4370a | 195 | %attr(755,root,root) /sbin/mount.fuse |
80df11a9 | 196 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
4965dc0c | 197 | |
d6263038 | 198 | %files devel |
4965dc0c | 199 | %defattr(644,root,root,755) |
80df11a9 | 200 | %attr(755,root,root) %{_libdir}/lib*.so |
201 | %{_libdir}/lib*.la | |
d6263038 | 202 | %{_includedir}/fuse* |
80df11a9 | 203 | %{_includedir}/ulockmgr.h |
496fbb04 | 204 | %{_pkgconfigdir}/fuse.pc |
9c73f04f | 205 | |
d6263038 | 206 | %files static |
4965dc0c | 207 | %defattr(644,root,root,755) |
80df11a9 | 208 | %{_libdir}/lib*.a |
f981350a | 209 | %endif |
d6263038 JB |
210 | |
211 | %if %{with kernel} | |
0612e680 | 212 | %files -n kernel%{_alt_kernel}-misc-fuse |
d6263038 JB |
213 | %defattr(644,root,root,755) |
214 | /lib/modules/%{_kernel_ver}/kernel/fs/fuse.ko* | |
6895341f | 215 | %endif |