]>
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 | |
986d7da9 | 25 | %define rel 1 |
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} |
986d7da9 | 29 | Version: 2.8.0 |
a668917c | 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 |
986d7da9 | 35 | # Source0-md5: faa62f2cf051866c61242f28e88d0832 |
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 |
b066fee7 | 52 | Requires(pre): /usr/bin/getgid |
53 | Requires(pre): /usr/sbin/groupadd | |
6e29bdf4 | 54 | Provides: group(fuse) |
9c73f04f | 55 | Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c28e4405 | 56 | |
9c73f04f | 57 | %description |
58 | FUSE (Filesystem in Userspace) is a simple interface for userspace | |
544fbe9d | 59 | programs to export a virtual filesystem to the Linux kernel. FUSE also |
9c73f04f | 60 | aims to provide a secure method for non privileged users to create and |
61 | mount their own filesystem implementations. | |
62 | ||
d6263038 JB |
63 | This package contains a shared library. |
64 | ||
fa7f9ca7 JR |
65 | %description -l pl.UTF-8 |
66 | FUSE stanowi prosty interfejs dla programów działających w przestrzeni | |
67 | użytkownika eksportujący wirtualny system plików do jądra Linuksa. | |
68 | FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i | |
69 | montowania własnych implementacji systemów plików przez zwykłych | |
70 | (nieuprzywilejowanych) użytkowników. | |
9c73f04f | 71 | |
fa7f9ca7 | 72 | Ten pakiet zawiera bibliotekę współdzieloną. |
d6263038 JB |
73 | |
74 | %package devel | |
75 | Summary: Filesytem in Userspace - Development header files | |
8bb117ff | 76 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe |
d6263038 | 77 | Group: Development/Libraries |
a668917c | 78 | Requires: %{pname} = %{epoch}:%{version}-%{rel} |
d6263038 JB |
79 | |
80 | %description devel | |
81 | Libfuse library header files. | |
82 | ||
fa7f9ca7 JR |
83 | %description devel -l pl.UTF-8 |
84 | Pliki nagłówkowe biblioteki libfuse. | |
d6263038 JB |
85 | |
86 | %package static | |
87 | Summary: Filesytem in Userspace - static library | |
8bb117ff | 88 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - biblioteka statyczna |
2d1d7461 | 89 | Group: Development/Libraries |
a668917c | 90 | Requires: libfuse-devel = %{epoch}:%{version}-%{rel} |
d6263038 JB |
91 | |
92 | %description static | |
93 | Static libfuse libraries. | |
94 | ||
fa7f9ca7 | 95 | %description static -l pl.UTF-8 |
d6263038 JB |
96 | Statyczna biblioteka libfuse. |
97 | ||
0612e680 | 98 | %package -n kernel%{_alt_kernel}-misc-fuse |
d6263038 | 99 | Summary: Filesystem in Userspace |
8bb117ff | 100 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika |
a668917c | 101 | Release: %{rel}@%{_kernel_ver_str} |
d6263038 JB |
102 | License: GPL v2 |
103 | Group: Base/Kernel | |
d6263038 | 104 | Requires(post,postun): /sbin/depmod |
8bfc0885 | 105 | %if %{with dist_kernel} |
2f81dc21 | 106 | %requires_releq_kernel |
107 | Requires(postun): %releq_kernel | |
8bfc0885 | 108 | %endif |
0612e680 | 109 | %if "%{_alt_kernel}" != "%{nil}" |
110 | Provides: kernel-misc-fuse | |
111 | %endif | |
d6263038 | 112 | |
0612e680 | 113 | %description -n kernel%{_alt_kernel}-misc-fuse |
d6263038 JB |
114 | FUSE (Filesystem in Userspace) is a simple interface for userspace |
115 | programs to export a virtual filesystem to the Linux kernel. FUSE also | |
116 | aims to provide a secure method for non privileged users to create and | |
117 | mount their own filesystem implementations. | |
118 | ||
fa7f9ca7 JR |
119 | %description -n kernel%{_alt_kernel}-misc-fuse -l pl.UTF-8 |
120 | FUSE stanowi prosty interfejs dla programów działających w przestrzeni | |
121 | użytkownika eksportujący wirtualny system plików do jądra Linuksa. | |
122 | FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i | |
123 | montowania własnych implementacji systemów plików przez zwykłych | |
124 | (nieuprzywilejowanych) użytkowników. | |
d6263038 | 125 | |
9c73f04f | 126 | %prep |
4965dc0c | 127 | %setup -q -n fuse-%{version} |
3d2362f9 | 128 | %patch0 -p1 |
4d1cfd58 | 129 | %patch1 -p1 |
d6263038 | 130 | |
202ebc3b | 131 | sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_bindir}/fusermount,' lib/mount.c |
9c73f04f | 132 | |
133 | %build | |
496fbb04 | 134 | %{__libtoolize} |
a35003d8 | 135 | %{__aclocal} |
496fbb04 | 136 | %{__autoheader} |
a35003d8 PS |
137 | %{__autoconf} |
138 | %{__automake} | |
c660eb4c | 139 | %configure \ |
127ee08d | 140 | %{!?with_selinux:ac_cv_header_selinux_selinux_h=no} \ |
2e74d96c | 141 | --%{?with_kernel:en}%{!?with_kernel:dis}able-kernel-module \ |
d6263038 JB |
142 | --enable-lib \ |
143 | --enable-util \ | |
2e74d96c | 144 | %{?with_kernel:--with-kernel=%{_kernelsrcdir}} |
7fb6785c | 145 | |
8bfc0885 | 146 | %if %{with userspace} |
8bfc0885 PS |
147 | for DIR in include lib util; do |
148 | %{__make} -C $DIR | |
149 | done | |
150 | %endif | |
151 | ||
a35003d8 | 152 | %if %{with kernel} |
9e146969 | 153 | %build_kernel_modules -m fuse -C kernel |
a35003d8 | 154 | %endif |
9c73f04f | 155 | |
9c73f04f | 156 | %install |
157 | rm -rf $RPM_BUILD_ROOT | |
3af001c7 | 158 | install -d $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_sysconfdir}} |
9c73f04f | 159 | |
8413d3ec | 160 | %if %{with userspace} |
496fbb04 | 161 | for DIR in include lib util; do |
162 | %{__make} -C $DIR install \ | |
163 | DESTDIR=$RPM_BUILD_ROOT | |
164 | done | |
165 | ||
166 | install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
3af001c7 | 167 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} |
8413d3ec | 168 | %endif |
9c73f04f | 169 | |
8413d3ec | 170 | %if %{with kernel} |
0612e680 | 171 | %install_kernel_modules -m kernel/fuse -d kernel/fs |
8413d3ec PS |
172 | %endif |
173 | ||
c02bbc70 JB |
174 | %clean |
175 | rm -rf $RPM_BUILD_ROOT | |
176 | ||
b066fee7 | 177 | %pre |
a270b1b1 | 178 | %groupadd -g 84 fuse |
b066fee7 | 179 | |
d6263038 | 180 | %post -p /sbin/ldconfig |
cefe4f98 | 181 | %postun -p /sbin/ldconfig |
d6263038 | 182 | |
0612e680 | 183 | %post -n kernel%{_alt_kernel}-misc-fuse |
e1541708 | 184 | %depmod %{_kernel_ver} |
9c73f04f | 185 | |
0612e680 | 186 | %postun -n kernel%{_alt_kernel}-misc-fuse |
e1541708 PS |
187 | %depmod %{_kernel_ver} |
188 | ||
d6263038 | 189 | %if %{with userspace} |
9c73f04f | 190 | %files |
191 | %defattr(644,root,root,755) | |
496fbb04 | 192 | %doc README NEWS ChangeLog AUTHORS doc/* |
f5e4370a | 193 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf |
93034210 | 194 | %attr(4754,root,fuse) %{_bindir}/fusermount |
80df11a9 | 195 | %attr(755,root,root) %{_bindir}/ulockmgr_server |
f5e4370a | 196 | %attr(755,root,root) /sbin/mount.fuse |
c6e9eee0 JB |
197 | %attr(755,root,root) %{_libdir}/libfuse.so.*.*.* |
198 | %attr(755,root,root) %ghost %{_libdir}/libfuse.so.2 | |
199 | %attr(755,root,root) %{_libdir}/libulockmgr.so.*.*.* | |
200 | %attr(755,root,root) %ghost %{_libdir}/libulockmgr.so.1 | |
4965dc0c | 201 | |
d6263038 | 202 | %files devel |
4965dc0c | 203 | %defattr(644,root,root,755) |
c6e9eee0 JB |
204 | %attr(755,root,root) %{_libdir}/libfuse.so |
205 | %attr(755,root,root) %{_libdir}/libulockmgr.so | |
206 | %{_libdir}/libfuse.la | |
207 | %{_libdir}/libulockmgr.la | |
208 | %{_includedir}/fuse | |
209 | %{_includedir}/fuse.h | |
80df11a9 | 210 | %{_includedir}/ulockmgr.h |
496fbb04 | 211 | %{_pkgconfigdir}/fuse.pc |
9c73f04f | 212 | |
d6263038 | 213 | %files static |
4965dc0c | 214 | %defattr(644,root,root,755) |
c6e9eee0 JB |
215 | %{_libdir}/libfuse.a |
216 | %{_libdir}/libulockmgr.a | |
f981350a | 217 | %endif |
d6263038 JB |
218 | |
219 | %if %{with kernel} | |
0612e680 | 220 | %files -n kernel%{_alt_kernel}-misc-fuse |
d6263038 JB |
221 | %defattr(644,root,root,755) |
222 | /lib/modules/%{_kernel_ver}/kernel/fs/fuse.ko* | |
6895341f | 223 | %endif |