]>
Commit | Line | Data |
---|---|---|
1c836eba ER |
1 | # TODO: |
2 | # - unpackaged: | |
e4d64625 | 3 | # /etc/rc.d/init.d/fuse |
1c836eba | 4 | # /etc/udev/rules.d/99-fuse.rules |
c28e4405 PS |
5 | # |
6 | # Condtional build: | |
127ee08d | 7 | %bcond_without selinux # build without SELinux support |
e4d64625 | 8 | # |
9c73f04f | 9 | Summary: Filesystem in Userspace |
8bb117ff | 10 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika |
e4d64625 | 11 | Name: libfuse |
f4983df2 | 12 | Version: 2.8.5 |
e4d64625 | 13 | Release: 1 |
c02bbc70 | 14 | Epoch: 0 |
e1541708 | 15 | License: GPL v2 |
fb76d4f3 | 16 | Group: Applications/System |
c02bbc70 | 17 | Source0: http://dl.sourceforge.net/fuse/fuse-%{version}.tar.gz |
f4983df2 | 18 | # Source0-md5: 8aa2fd689de00b73963620483084ae3b |
f10c5dbc | 19 | Source1: fuse.conf |
d6263038 | 20 | Patch0: kernel-misc-fuse-Makefile.am.patch |
e4d64625 | 21 | Patch1: %{name}-link.patch |
498c72b7 | 22 | URL: http://fuse.sourceforge.net/ |
5bf8c553 | 23 | BuildRequires: autoconf |
24 | BuildRequires: automake | |
1ad71c20 | 25 | BuildRequires: cpp |
e868be44 | 26 | BuildRequires: gettext-devel |
e4d64625 | 27 | %{?with_selinux:BuildRequires: libselinux-devel} |
e868be44 | 28 | BuildRequires: libtool |
4d1cfd58 | 29 | BuildRequires: sed >= 4.0 |
b066fee7 | 30 | Requires(pre): /usr/bin/getgid |
31 | Requires(pre): /usr/sbin/groupadd | |
6e29bdf4 | 32 | Provides: group(fuse) |
10eda4b7 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c28e4405 | 34 | |
9c73f04f | 35 | %description |
36 | FUSE (Filesystem in Userspace) is a simple interface for userspace | |
544fbe9d | 37 | programs to export a virtual filesystem to the Linux kernel. FUSE also |
9c73f04f | 38 | aims to provide a secure method for non privileged users to create and |
39 | mount their own filesystem implementations. | |
40 | ||
d6263038 JB |
41 | This package contains a shared library. |
42 | ||
fa7f9ca7 JR |
43 | %description -l pl.UTF-8 |
44 | FUSE stanowi prosty interfejs dla programów działających w przestrzeni | |
45 | użytkownika eksportujący wirtualny system plików do jądra Linuksa. | |
46 | FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i | |
47 | montowania własnych implementacji systemów plików przez zwykłych | |
48 | (nieuprzywilejowanych) użytkowników. | |
9c73f04f | 49 | |
fa7f9ca7 | 50 | Ten pakiet zawiera bibliotekę współdzieloną. |
d6263038 JB |
51 | |
52 | %package devel | |
53 | Summary: Filesytem in Userspace - Development header files | |
8bb117ff | 54 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe |
d6263038 | 55 | Group: Development/Libraries |
e4d64625 | 56 | Requires: %{name} = %{epoch}:%{version}-%{release} |
d6263038 JB |
57 | |
58 | %description devel | |
59 | Libfuse library header files. | |
60 | ||
fa7f9ca7 JR |
61 | %description devel -l pl.UTF-8 |
62 | Pliki nagłówkowe biblioteki libfuse. | |
d6263038 JB |
63 | |
64 | %package static | |
65 | Summary: Filesytem in Userspace - static library | |
8bb117ff | 66 | Summary(pl.UTF-8): System plików w przestrzeni użytkownika - biblioteka statyczna |
2d1d7461 | 67 | Group: Development/Libraries |
e4d64625 | 68 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
d6263038 JB |
69 | |
70 | %description static | |
71 | Static libfuse libraries. | |
72 | ||
fa7f9ca7 | 73 | %description static -l pl.UTF-8 |
d6263038 JB |
74 | Statyczna biblioteka libfuse. |
75 | ||
9c73f04f | 76 | %prep |
4965dc0c | 77 | %setup -q -n fuse-%{version} |
3d2362f9 | 78 | %patch0 -p1 |
4d1cfd58 | 79 | %patch1 -p1 |
d6263038 | 80 | |
202ebc3b | 81 | sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_bindir}/fusermount,' lib/mount.c |
9c73f04f | 82 | |
83 | %build | |
496fbb04 | 84 | %{__libtoolize} |
a35003d8 | 85 | %{__aclocal} |
496fbb04 | 86 | %{__autoheader} |
a35003d8 PS |
87 | %{__autoconf} |
88 | %{__automake} | |
c660eb4c | 89 | %configure \ |
e4d64625 | 90 | INIT_D_PATH=/etc/rc.d/init.d \ |
127ee08d | 91 | %{!?with_selinux:ac_cv_header_selinux_selinux_h=no} \ |
d6263038 | 92 | --enable-lib \ |
e4d64625 | 93 | --enable-util |
7fb6785c | 94 | |
e4d64625 | 95 | %{__make} |
9c73f04f | 96 | |
9c73f04f | 97 | %install |
98 | rm -rf $RPM_BUILD_ROOT | |
3af001c7 | 99 | install -d $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_sysconfdir}} |
9c73f04f | 100 | |
e4d64625 | 101 | %{__make} install \ |
496fbb04 | 102 | DESTDIR=$RPM_BUILD_ROOT |
496fbb04 | 103 | |
104 | install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir} | |
3af001c7 | 105 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} |
8413d3ec | 106 | |
c02bbc70 JB |
107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
b066fee7 | 110 | %pre |
a270b1b1 | 111 | %groupadd -g 84 fuse |
b066fee7 | 112 | |
d6263038 | 113 | %post -p /sbin/ldconfig |
cefe4f98 | 114 | %postun -p /sbin/ldconfig |
d6263038 | 115 | |
9c73f04f | 116 | %files |
117 | %defattr(644,root,root,755) | |
496fbb04 | 118 | %doc README NEWS ChangeLog AUTHORS doc/* |
f5e4370a | 119 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf |
93034210 | 120 | %attr(4754,root,fuse) %{_bindir}/fusermount |
80df11a9 | 121 | %attr(755,root,root) %{_bindir}/ulockmgr_server |
f5e4370a | 122 | %attr(755,root,root) /sbin/mount.fuse |
c6e9eee0 JB |
123 | %attr(755,root,root) %{_libdir}/libfuse.so.*.*.* |
124 | %attr(755,root,root) %ghost %{_libdir}/libfuse.so.2 | |
125 | %attr(755,root,root) %{_libdir}/libulockmgr.so.*.*.* | |
126 | %attr(755,root,root) %ghost %{_libdir}/libulockmgr.so.1 | |
4965dc0c | 127 | |
d6263038 | 128 | %files devel |
4965dc0c | 129 | %defattr(644,root,root,755) |
c6e9eee0 JB |
130 | %attr(755,root,root) %{_libdir}/libfuse.so |
131 | %attr(755,root,root) %{_libdir}/libulockmgr.so | |
132 | %{_libdir}/libfuse.la | |
133 | %{_libdir}/libulockmgr.la | |
134 | %{_includedir}/fuse | |
135 | %{_includedir}/fuse.h | |
80df11a9 | 136 | %{_includedir}/ulockmgr.h |
496fbb04 | 137 | %{_pkgconfigdir}/fuse.pc |
9c73f04f | 138 | |
d6263038 | 139 | %files static |
4965dc0c | 140 | %defattr(644,root,root,755) |
c6e9eee0 JB |
141 | %{_libdir}/libfuse.a |
142 | %{_libdir}/libulockmgr.a |