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