]> git.pld-linux.org Git - packages/libfuse.git/blobdiff - libfuse.spec
- updated to 2.9.9
[packages/libfuse.git] / libfuse.spec
index 7be4063660836245f05ef1aa39c43f791a794e09..f779945ed732d67c8299c88992dbf12053cdbf2c 100644 (file)
@@ -1,59 +1,20 @@
-# TODO:
-# - unpackaged:
-#   /etc/init.d/fuse
-#   /etc/udev/rules.d/99-fuse.rules
-#
-# Condtional build:
-%bcond_without dist_kernel     # without distribution kernel
-%bcond_with    kernel          # build kernel modules
-%bcond_without userspace       # don't build userspace tools
-%bcond_with    verbose         # verbose build (V=1)
-%bcond_without selinux         # build without SELinux support
-
-%ifarch sparc
-%undefine      with_smp
-%endif
-
-%if %{without kernel}
-%undefine with_dist_kernel
-%endif
-%if "%{_alt_kernel}" != "%{nil}"
-%undefine      with_userspace
-%endif
-
-%define                pname   libfuse
-%define                rel     1
 Summary:       Filesystem in Userspace
 Summary(pl.UTF-8):     System plików w przestrzeni użytkownika
-Name:          %{pname}%{_alt_kernel}
-Version:       2.8.1
-Release:       %{rel}
-Epoch:         0
-License:       GPL v2
+Name:          libfuse
+Version:       2.9.9
+Release:       1
+License:       LGPL v2 (library), GPL v2 (tools)
 Group:         Applications/System
-Source0:       http://dl.sourceforge.net/fuse/fuse-%{version}.tar.gz
-# Source0-md5: 0e3505ce90155983f1bc995eb2cf6fa7
-Source1:       fuse.conf
+#Source0Download: https://github.com/libfuse/libfuse/releases
+Source0:       https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz
+# Source0-md5: 8000410aadc9231fd48495f7642f3312
 Patch0:                kernel-misc-fuse-Makefile.am.patch
-Patch1:                %{pname}-link.patch
-URL:           http://fuse.sourceforge.net/
-BuildRequires: autoconf
+URL:           https://github.com/libfuse/libfuse
+BuildRequires: autoconf >= 2.60
 BuildRequires: automake
-BuildRequires: cpp
-BuildRequires: gettext-devel
 BuildRequires: libtool
 BuildRequires: sed >= 4.0
-%if %{with kernel}
-%{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
-BuildRequires: rpmbuild(macros) >= 1.379
-%endif
-%if %{with userspace}
-%{?with_selinux:BuildRequires: libselinux-devel}
-%endif
-Requires(pre): /usr/bin/getgid
-Requires(pre): /usr/sbin/groupadd
-Provides:      group(fuse)
-Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 FUSE (Filesystem in Userspace) is a simple interface for userspace
@@ -73,130 +34,120 @@ montowania własnych implementacji systemów plików przez zwykłych
 Ten pakiet zawiera bibliotekę współdzieloną.
 
 %package devel
-Summary:       Filesytem in Userspace - Development header files
+Summary:       Filesystem in Userspace - development header files
 Summary(pl.UTF-8):     System plików w przestrzeni użytkownika - pliki nagłówkowe
+License:       LGPL v2
 Group:         Development/Libraries
-Requires:      %{pname} = %{epoch}:%{version}-%{rel}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
-Libfuse library header files.
+FUSE libraries header files.
 
 %description devel -l pl.UTF-8
-Pliki nagłówkowe biblioteki libfuse.
+Pliki nagłówkowe bibliotek FUSE.
 
 %package static
-Summary:       Filesytem in Userspace - static library
-Summary(pl.UTF-8):     System plików w przestrzeni użytkownika - biblioteka statyczna
+Summary:       Filesystem in Userspace - static libraries
+Summary(pl.UTF-8):     System plików w przestrzeni użytkownika - biblioteki statyczne
+License:       LGPL v2
 Group:         Development/Libraries
-Requires:      libfuse-devel = %{epoch}:%{version}-%{rel}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
-Static libfuse libraries.
+Static FUSE libraries.
 
 %description static -l pl.UTF-8
-Statyczna biblioteka libfuse.
+Statyczne biblioteki FUSE.
 
-%package -n kernel%{_alt_kernel}-misc-fuse
-Summary:       Filesystem in Userspace
-Summary(pl.UTF-8):     System plików w przestrzeni użytkownika
-Release:       %{rel}@%{_kernel_ver_str}
+%package apidocs
+Summary:       API documentation for FUSE library
+Summary(pl.UTF-8):     Dokumentacja API bibliotek FUSE
+Group:         Documentation
+
+%description apidocs
+API documentation for FUSE library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API bibliotek FUSE.
+
+%package tools
+Summary:       Tools to mount FUSE based filesystems
+Summary(pl.UTF-8):     Narzędzia do montowania systemów plików opartych na FUSE
 License:       GPL v2
-Group:         Base/Kernel
-Requires(post,postun): /sbin/depmod
-%if %{with dist_kernel}
-%requires_releq_kernel
-Requires(postun):      %releq_kernel
-%endif
-%if "%{_alt_kernel}" != "%{nil}"
-Provides:      kernel-misc-fuse
-%endif
-
-%description -n kernel%{_alt_kernel}-misc-fuse
-FUSE (Filesystem in Userspace) is a simple interface for userspace
-programs to export a virtual filesystem to the Linux kernel. FUSE also
-aims to provide a secure method for non privileged users to create and
-mount their own filesystem implementations.
+Group:         Applications/System
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires:      %{name} = %{version}-%{release}
+Requires:      libfuse-common >= %{version}
+Requires:      mount >= 2.18
+Provides:      group(fuse)
+Obsoletes:     fusermount
 
-%description -n kernel%{_alt_kernel}-misc-fuse -l pl.UTF-8
-FUSE stanowi prosty interfejs dla programów działających w przestrzeni
-użytkownika eksportujący wirtualny system plików do jądra Linuksa.
-FUSE ma również na celu udostępnienie bezpiecznej metody tworzenia i
-montowania własnych implementacji systemów plików przez zwykłych
-(nieuprzywilejowanych) użytkowników.
+%description tools
+Tools to mount FUSE based filesystems.
+
+%description tools -l pl.UTF-8
+Narzędzia do montowania systemów plików opartych na FUSE.
 
 %prep
 %setup -q -n fuse-%{version}
 %patch0 -p1
-%patch1 -p1
 
 sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_bindir}/fusermount,' lib/mount.c
 
+# gold is missing base versioning
+install -d ld-dir
+[ ! -x /usr/bin/ld.bfd ] || ln -sf /usr/bin/ld.bfd ld-dir/ld
+
 %build
+PATH=$(pwd)/ld-dir:$PATH
 %{__libtoolize}
 %{__aclocal}
-%{__autoheader}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
-       %{!?with_selinux:ac_cv_header_selinux_selinux_h=no} \
-       --%{?with_kernel:en}%{!?with_kernel:dis}able-kernel-module \
+       INIT_D_PATH=/etc/rc.d/init.d \
+       --disable-silent-rules \
        --enable-lib \
-       --enable-util \
-       %{?with_kernel:--with-kernel=%{_kernelsrcdir}}
-
-%if %{with userspace}
-for DIR in include lib util; do
-%{__make} -C $DIR
-done
-%endif
+       --enable-util
 
-%if %{with kernel}
-%build_kernel_modules -m fuse -C kernel
-%endif
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkgconfigdir},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{/%{_lib},%{_pkgconfigdir},%{_sysconfdir}}
 
-%if %{with userspace}
-for DIR in include lib util; do
-%{__make} -C $DIR install \
+%{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
-done
+
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/libfuse.so.* $RPM_BUILD_ROOT/%{_lib}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfuse.so
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libfuse.so.*.*) \
+       $RPM_BUILD_ROOT%{_libdir}/libfuse.so
 
 install fuse.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
-%endif
 
-%if %{with kernel}
-%install_kernel_modules -m kernel/fuse -d kernel/fs
-%endif
+# part of default udev rules nowdays
+%{__rm} $RPM_BUILD_ROOT/etc/udev/rules.d/99-fuse.rules
+
+# not needed
+%{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/fuse
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pre
-%groupadd -g 84 fuse
-
 %post  -p /sbin/ldconfig
 %postun        -p /sbin/ldconfig
 
-%post -n kernel%{_alt_kernel}-misc-fuse
-%depmod %{_kernel_ver}
-
-%postun -n kernel%{_alt_kernel}-misc-fuse
-%depmod %{_kernel_ver}
+%pre tools
+%groupadd -g 84 fuse
 
-%if %{with userspace}
 %files
 %defattr(644,root,root,755)
-%doc README NEWS ChangeLog AUTHORS doc/*
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fuse.conf
-%attr(4754,root,fuse) %{_bindir}/fusermount
-%attr(755,root,root) %{_bindir}/ulockmgr_server
-%attr(755,root,root) /sbin/mount.fuse
-%attr(755,root,root) %{_libdir}/libfuse.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libfuse.so.2
+%doc README.md NEWS ChangeLog AUTHORS doc/{how-fuse-works,kernel.txt}
+%attr(755,root,root) /%{_lib}/libfuse.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libfuse.so.2
 %attr(755,root,root) %{_libdir}/libulockmgr.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libulockmgr.so.1
 
@@ -215,10 +166,16 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libfuse.a
 %{_libdir}/libulockmgr.a
-%endif
 
-%if %{with kernel}
-%files -n kernel%{_alt_kernel}-misc-fuse
+%files apidocs
 %defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}/kernel/fs/fuse.ko*
-%endif
+%doc doc/html/*
+
+%files tools
+%defattr(644,root,root,755)
+%attr(4755,root,root) %{_bindir}/fusermount
+%attr(755,root,root) %{_bindir}/ulockmgr_server
+%attr(755,root,root) /sbin/mount.fuse
+%{_mandir}/man1/fusermount.1*
+%{_mandir}/man1/ulockmgr_server.1*
+%{_mandir}/man8/mount.fuse.8*
This page took 0.046643 seconds and 4 git commands to generate.