]> git.pld-linux.org Git - packages/libfuse.git/blame - libfuse.spec
- changelog typo
[packages/libfuse.git] / libfuse.spec
CommitLineData
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 15Summary: Filesystem in Userspace
8bb117ff 16Summary(pl.UTF-8): System plików w przestrzeni użytkownika
d6263038 17Name: libfuse
c8322647 18Version: 2.7.3
d6263038 19Release: %{_rel}
c02bbc70 20Epoch: 0
e1541708 21License: GPL v2
fb76d4f3 22Group: Applications/System
c02bbc70 23Source0: http://dl.sourceforge.net/fuse/fuse-%{version}.tar.gz
c8322647 24# Source0-md5: 98563fc7b265b7479a3178181cbcf59a
f10c5dbc 25Source1: fuse.conf
d6263038 26Patch0: kernel-misc-fuse-Makefile.am.patch
4d1cfd58 27Patch1: %{name}-link.patch
498c72b7 28URL: http://fuse.sourceforge.net/
5bf8c553 29BuildRequires: autoconf
30BuildRequires: automake
4d1cfd58 31BuildRequires: libtool
1ad71c20 32BuildRequires: cpp
4d1cfd58 33BuildRequires: 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 36BuildRequires: rpmbuild(macros) >= 1.379
002758f1 37%endif
4d1cfd58 38%if %{with userspace}
efd7a38f 39%{?with_selinux:BuildRequires: libselinux-devel}
4d1cfd58 40%endif
244ef643
ER
41Requires(postun): /sbin/ldconfig
42Requires(postun): /usr/sbin/groupdel
b066fee7 43Requires(pre): /usr/bin/getgid
44Requires(pre): /usr/sbin/groupadd
9c73f04f 45Buildroot: %{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
52FUSE (Filesystem in Userspace) is a simple interface for userspace
544fbe9d 53programs to export a virtual filesystem to the Linux kernel. FUSE also
9c73f04f 54aims to provide a secure method for non privileged users to create and
55mount their own filesystem implementations.
56
d6263038
JB
57This package contains a shared library.
58
fa7f9ca7
JR
59%description -l pl.UTF-8
60FUSE stanowi prosty interfejs dla programów działających w przestrzeni
61użytkownika eksportujący wirtualny system plików do jądra Linuksa.
62FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i
63montowania własnych implementacji systemów plików przez zwykłych
64(nieuprzywilejowanych) użytkowników.
9c73f04f 65
fa7f9ca7 66Ten pakiet zawiera bibliotekę współdzieloną.
d6263038
JB
67
68%package devel
69Summary: Filesytem in Userspace - Development header files
8bb117ff 70Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe
d6263038
JB
71Group: Development/Libraries
72Requires: %{name} = %{epoch}:%{version}-%{_rel}
73
74%description devel
75Libfuse library header files.
76
fa7f9ca7
JR
77%description devel -l pl.UTF-8
78Pliki nagłówkowe biblioteki libfuse.
d6263038
JB
79
80%package static
81Summary: Filesytem in Userspace - static library
8bb117ff 82Summary(pl.UTF-8): System plików w przestrzeni użytkownika - biblioteka statyczna
2d1d7461 83Group: Development/Libraries
d6263038
JB
84Requires: libfuse-devel = %{epoch}:%{version}-%{_rel}
85
86%description static
87Static libfuse libraries.
88
fa7f9ca7 89%description static -l pl.UTF-8
d6263038
JB
90Statyczna biblioteka libfuse.
91
0612e680 92%package -n kernel%{_alt_kernel}-misc-fuse
d6263038 93Summary: Filesystem in Userspace
8bb117ff 94Summary(pl.UTF-8): System plików w przestrzeni użytkownika
d6263038
JB
95Release: %{_rel}@%{_kernel_ver_str}
96License: GPL v2
97Group: Base/Kernel
d6263038 98Requires(post,postun): /sbin/depmod
8bfc0885 99%if %{with dist_kernel}
2f81dc21 100%requires_releq_kernel
101Requires(postun): %releq_kernel
8bfc0885 102%endif
0612e680 103%if "%{_alt_kernel}" != "%{nil}"
104Provides: kernel-misc-fuse
105%endif
d6263038 106
0612e680 107%description -n kernel%{_alt_kernel}-misc-fuse
d6263038
JB
108FUSE (Filesystem in Userspace) is a simple interface for userspace
109programs to export a virtual filesystem to the Linux kernel. FUSE also
110aims to provide a secure method for non privileged users to create and
111mount their own filesystem implementations.
112
fa7f9ca7
JR
113%description -n kernel%{_alt_kernel}-misc-fuse -l pl.UTF-8
114FUSE stanowi prosty interfejs dla programów działających w przestrzeni
115użytkownika eksportujący wirtualny system plików do jądra Linuksa.
116FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i
117montowania 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 125sed -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}
141cp kernel/fuse_kernel.h include/
142for DIR in include lib util; do
143%{__make} -C $DIR
144done
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
152rm -rf $RPM_BUILD_ROOT
3af001c7 153install -d $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_sysconfdir}}
9c73f04f 154
8413d3ec 155%if %{with userspace}
496fbb04 156for DIR in include lib util; do
157%{__make} -C $DIR install \
158 DESTDIR=$RPM_BUILD_ROOT
159done
160
161install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
3af001c7 162install %{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
170rm -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
178if [ "$1" = "0" ] ; then
179 %groupremove fuse
b066fee7 180fi
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
This page took 0.167781 seconds and 4 git commands to generate.