]> git.pld-linux.org Git - packages/libfuse.git/blame - libfuse.spec
Release 2 (by relup.sh)
[packages/libfuse.git] / libfuse.spec
CommitLineData
9c73f04f 1Summary: Filesystem in Userspace
8bb117ff 2Summary(pl.UTF-8): System plików w przestrzeni użytkownika
e4d64625 3Name: libfuse
7f2ac30a 4Version: 2.9.9
9c39ed23 5Release: 2
336124d2 6License: LGPL v2 (library), GPL v2 (tools)
fb76d4f3 7Group: Applications/System
de44e63c
JB
8#Source0Download: https://github.com/libfuse/libfuse/releases
9Source0: https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz
7f2ac30a 10# Source0-md5: 8000410aadc9231fd48495f7642f3312
d6263038 11Patch0: kernel-misc-fuse-Makefile.am.patch
af5085d4 12Patch1: %{name}-arm64.patch
a3b538f8 13URL: https://github.com/libfuse/libfuse
e459071a 14BuildRequires: autoconf >= 2.60
5bf8c553 15BuildRequires: automake
e868be44 16BuildRequires: libtool
4d1cfd58 17BuildRequires: sed >= 4.0
10eda4b7 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c28e4405 19
9c73f04f 20%description
21FUSE (Filesystem in Userspace) is a simple interface for userspace
544fbe9d 22programs to export a virtual filesystem to the Linux kernel. FUSE also
9c73f04f 23aims to provide a secure method for non privileged users to create and
24mount their own filesystem implementations.
25
d6263038
JB
26This package contains a shared library.
27
fa7f9ca7
JR
28%description -l pl.UTF-8
29FUSE stanowi prosty interfejs dla programów działających w przestrzeni
30użytkownika eksportujący wirtualny system plików do jądra Linuksa.
31FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i
32montowania własnych implementacji systemów plików przez zwykłych
33(nieuprzywilejowanych) użytkowników.
9c73f04f 34
fa7f9ca7 35Ten pakiet zawiera bibliotekę współdzieloną.
d6263038
JB
36
37%package devel
0f68f768 38Summary: Filesystem in Userspace - development header files
8bb117ff 39Summary(pl.UTF-8): System plików w przestrzeni użytkownika - pliki nagłówkowe
336124d2 40License: LGPL v2
d6263038 41Group: Development/Libraries
0d76d811 42Requires: %{name} = %{version}-%{release}
d6263038
JB
43
44%description devel
0f68f768 45FUSE libraries header files.
d6263038 46
fa7f9ca7 47%description devel -l pl.UTF-8
0f68f768 48Pliki nagłówkowe bibliotek FUSE.
d6263038
JB
49
50%package static
0f68f768
JB
51Summary: Filesystem in Userspace - static libraries
52Summary(pl.UTF-8): System plików w przestrzeni użytkownika - biblioteki statyczne
336124d2 53License: LGPL v2
2d1d7461 54Group: Development/Libraries
0d76d811 55Requires: %{name}-devel = %{version}-%{release}
d6263038
JB
56
57%description static
0f68f768 58Static FUSE libraries.
d6263038 59
fa7f9ca7 60%description static -l pl.UTF-8
0f68f768 61Statyczne biblioteki FUSE.
d6263038 62
336124d2
JB
63%package apidocs
64Summary: API documentation for FUSE library
65Summary(pl.UTF-8): Dokumentacja API bibliotek FUSE
66Group: Documentation
67
68%description apidocs
69API documentation for FUSE library.
70
71%description apidocs -l pl.UTF-8
72Dokumentacja API bibliotek FUSE.
73
74%package tools
75Summary: Tools to mount FUSE based filesystems
76Summary(pl.UTF-8): Narzędzia do montowania systemów plików opartych na FUSE
77License: GPL v2
78Group: Applications/System
79Requires(pre): /usr/bin/getgid
80Requires(pre): /usr/sbin/groupadd
81Requires: %{name} = %{version}-%{release}
82Requires: libfuse-common >= %{version}
83Requires: mount >= 2.18
84Provides: group(fuse)
85Obsoletes: fusermount
86
87%description tools
88Tools to mount FUSE based filesystems.
89
90%description tools -l pl.UTF-8
91Narzędzia do montowania systemów plików opartych na FUSE.
92
9c73f04f 93%prep
4965dc0c 94%setup -q -n fuse-%{version}
3d2362f9 95%patch0 -p1
af5085d4 96%patch1 -p1
d6263038 97
202ebc3b 98sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_bindir}/fusermount,' lib/mount.c
9c73f04f 99
6e44c885
JB
100# gold is missing base versioning
101install -d ld-dir
102[ ! -x /usr/bin/ld.bfd ] || ln -sf /usr/bin/ld.bfd ld-dir/ld
103
9c73f04f 104%build
6e44c885 105PATH=$(pwd)/ld-dir:$PATH
496fbb04 106%{__libtoolize}
a35003d8
PS
107%{__aclocal}
108%{__autoconf}
e459071a 109%{__autoheader}
a35003d8 110%{__automake}
c660eb4c 111%configure \
e4d64625 112 INIT_D_PATH=/etc/rc.d/init.d \
e459071a 113 --disable-silent-rules \
d6263038 114 --enable-lib \
e4d64625 115 --enable-util
7fb6785c 116
e4d64625 117%{__make}
9c73f04f 118
9c73f04f 119%install
120rm -rf $RPM_BUILD_ROOT
6fe6dd7d 121install -d $RPM_BUILD_ROOT{/%{_lib},%{_pkgconfigdir},%{_sysconfdir}}
9c73f04f 122
e4d64625 123%{__make} install \
496fbb04 124 DESTDIR=$RPM_BUILD_ROOT
496fbb04 125
336124d2 126%{__mv} $RPM_BUILD_ROOT%{_libdir}/libfuse.so.* $RPM_BUILD_ROOT/%{_lib}
6fe6dd7d 127%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfuse.so
336124d2 128ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libfuse.so.*.*) \
6fe6dd7d
JR
129 $RPM_BUILD_ROOT%{_libdir}/libfuse.so
130
496fbb04 131install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
8413d3ec 132
396f9557 133# part of default udev rules nowdays
336124d2 134%{__rm} $RPM_BUILD_ROOT/etc/udev/rules.d/99-fuse.rules
396f9557
AM
135
136# not needed
336124d2 137%{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/fuse
396f9557 138
c02bbc70
JB
139%clean
140rm -rf $RPM_BUILD_ROOT
141
d6263038 142%post -p /sbin/ldconfig
cefe4f98 143%postun -p /sbin/ldconfig
d6263038 144
336124d2
JB
145%pre tools
146%groupadd -g 84 fuse
147
9c73f04f 148%files
149%defattr(644,root,root,755)
336124d2 150%doc README.md NEWS ChangeLog AUTHORS doc/{how-fuse-works,kernel.txt}
6fe6dd7d
JR
151%attr(755,root,root) /%{_lib}/libfuse.so.*.*.*
152%attr(755,root,root) %ghost /%{_lib}/libfuse.so.2
c6e9eee0
JB
153%attr(755,root,root) %{_libdir}/libulockmgr.so.*.*.*
154%attr(755,root,root) %ghost %{_libdir}/libulockmgr.so.1
4965dc0c 155
d6263038 156%files devel
4965dc0c 157%defattr(644,root,root,755)
c6e9eee0
JB
158%attr(755,root,root) %{_libdir}/libfuse.so
159%attr(755,root,root) %{_libdir}/libulockmgr.so
160%{_libdir}/libfuse.la
161%{_libdir}/libulockmgr.la
162%{_includedir}/fuse
163%{_includedir}/fuse.h
80df11a9 164%{_includedir}/ulockmgr.h
496fbb04 165%{_pkgconfigdir}/fuse.pc
9c73f04f 166
d6263038 167%files static
4965dc0c 168%defattr(644,root,root,755)
c6e9eee0
JB
169%{_libdir}/libfuse.a
170%{_libdir}/libulockmgr.a
336124d2
JB
171
172%files apidocs
173%defattr(644,root,root,755)
174%doc doc/html/*
175
176%files tools
177%defattr(644,root,root,755)
178%attr(4755,root,root) %{_bindir}/fusermount
179%attr(755,root,root) %{_bindir}/ulockmgr_server
180%attr(755,root,root) /sbin/mount.fuse
181%{_mandir}/man1/fusermount.1*
182%{_mandir}/man1/ulockmgr_server.1*
183%{_mandir}/man8/mount.fuse.8*
This page took 0.122079 seconds and 4 git commands to generate.