]> git.pld-linux.org Git - packages/libfuse.git/blobdiff - libfuse.spec
- all suid and group stuff moved to -tools (libfuse based packages should R: libfuse...
[packages/libfuse.git] / libfuse.spec
index 6e5368ec7c2fab4d567840fc5c80591a9d73c18c..f1f76bd2e7191dbecbebadb0a2e7dce7f742eaa4 100644 (file)
@@ -1,43 +1,20 @@
-#
-# Condtional build:
-%bcond_without dist_kernel     # without distribution kernel
-%bcond_without kernel          # don't build kernel modules
-%bcond_without smp             # without smp packages
-%bcond_without userspace       # don't build userspace tools
-%bcond_with    verbose         # verbose build (V=1)
-#
-%ifarch sparc
-%undefine      with_smp
-%endif
-#
-%define                _rel    5
 Summary:       Filesystem in Userspace
-Summary(pl):   System plików w przestrzeni u¿ytkownika
+Summary(pl.UTF-8):     System plików w przestrzeni użytkownika
 Name:          libfuse
-Version:       2.5.3
-Release:       %{_rel}
-Epoch:         0
-License:       GPL v2
+Version:       2.9.7
+Release:       3
+License:       LGPL v2 (library), GPL v2 (tools)
 Group:         Applications/System
-Source0:       http://dl.sourceforge.net/fuse/fuse-%{version}.tar.gz
-# Source0-md5: 9c7e8b6606b9f158ae20b8521ba2867c
-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: 9bd4ce8184745fd3d000ca2692adacdb
 Patch0:                kernel-misc-fuse-Makefile.am.patch
-Patch1:                %{name}-ac-LIBTOOL.patch
-URL:           http://fuse.sourceforge.net/
-BuildRequires: autoconf
+URL:           https://github.com/libfuse/libfuse
+BuildRequires: autoconf >= 2.60
 BuildRequires: automake
-%if %{with kernel}
-%{?with_dist_kernel:BuildRequires:     kernel-module-build >= 3:2.6.7}
-BuildRequires: rpmbuild(macros) >= 1.217
-%endif
 BuildRequires: libtool
 BuildRequires: sed >= 4.0
-Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%if %{without kernel}
-%undefine with_dist_kernel
-%endif
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 FUSE (Filesystem in Userspace) is a simple interface for userspace
@@ -47,176 +24,115 @@ mount their own filesystem implementations.
 
 This package contains a shared library.
 
-%description -l pl
-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 -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.
 
-Ten pakiet zawiera bibliotekê wspó³dzielon±.
+Ten pakiet zawiera bibliotekę współdzieloną.
 
 %package devel
-Summary:       Filesytem in Userspace - Development header files
-Summary(pl):   System plików w przestrzeni u¿ytkownika - pliki nag³ówkowe
+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:      %{name} = %{epoch}:%{version}-%{_rel}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
-Libfuse library header files.
+FUSE libraries header files.
 
-%description devel -l pl
-Pliki nag³ówkowe biblioteki libfuse.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek FUSE.
 
 %package static
-Summary:       Filesytem in Userspace - static library
-Summary(pl):   System plików w przestrzeni u¿ytkownika - biblioteka statyczna
-Release:       %{_rel}
+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
-Statyczna biblioteka libfuse.
+%description static -l pl.UTF-8
+Statyczne biblioteki FUSE.
 
-%package -n kernel-misc-fuse
-Summary:       Filesystem in Userspace
-Summary(pl):   System plików w przestrzeni u¿ytkownika
-Release:       %{_rel}@%{_kernel_ver_str}
-License:       GPL v2
-Group:         Base/Kernel
-Requires(post,postun): /sbin/depmod
-%if %{with dist_kernel}
-%requires_releq_kernel_up
-Requires(postun):      %releq_kernel_up
-%endif
-
-%description -n 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.
+%package apidocs
+Summary:       API documentation for FUSE library
+Summary(pl.UTF-8):     Dokumentacja API bibliotek FUSE
+Group:         Documentation
 
-%description -n kernel-misc-fuse -l pl
-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 apidocs
+API documentation for FUSE library.
 
-%package -n kernel-smp-misc-fuse
-Summary:       Filesystem in Userspace
-Summary(pl):   System plików w przestrzeni u¿ytkownika
-Release:       %{_rel}@%{_kernel_ver_str}
+%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
-Provides:      kernel-misc-fuse
-%if %{with dist_kernel}
-%requires_releq_kernel_smp
-Requires(postun):      %releq_kernel_smp
-%endif
-
-%description -n kernel-smp-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 tools
+Tools to mount FUSE based filesystems.
 
-%description -n kernel-smp-misc-fuse -l pl
-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 -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_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}
-cp kernel/fuse_kernel.h include/
-for DIR in include lib util; do
-%{__make} -C $DIR
-done
-%endif
-
-%if %{with kernel}
-cd kernel
-for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
-       if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
-               exit 1
-       fi
-       install -d o/include/linux
-       ln -sf %{_kernelsrcdir}/config-$cfg o/.config
-       ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers
-       ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h o/include/linux/autoconf.h
-%if %{with dist_kernel}
-       %{__make} -C %{_kernelsrcdir} O=$PWD/o prepare scripts
-%else
-       install -d o/include/config
-       touch o/include/config/MARKER
-       ln -sf %{_kernelsrcdir}/scripts o/scripts
-%endif
-       %{__make} -C %{_kernelsrcdir} clean \
-               RCS_FIND_IGNORE="-name '*.ko' -o" \
-               SYSSRC=%{_kernelsrcdir} \
-               SYSOUT=$PWD/o \
-               M=$PWD O=$PWD/o \
-               %{?with_verbose:V=1}
-       %{__make} -C %{_kernelsrcdir} modules \
-               CC="%{__cc}" CPP="%{__cpp}" \
-               SYSSRC=%{_kernelsrcdir} \
-               SYSOUT=$PWD/o \
-               M=$PWD O=$PWD/o \
-               %{?with_verbose:V=1}
-
-       mv fuse.ko fuse-$cfg.ko
-done
-cd -
-%endif
+       --enable-util
+
+%{__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}
-cd kernel
-install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/kernel/fs
-install fuse-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
-       $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/fs/fuse.ko
-%if %{with smp} && %{with dist_kernel}
-install fuse-smp.ko \
-       $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/fs/fuse.ko
-%endif
-%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
@@ -224,47 +140,42 @@ rm -rf $RPM_BUILD_ROOT
 %post  -p /sbin/ldconfig
 %postun        -p /sbin/ldconfig
 
-%post -n kernel-misc-fuse
-%depmod %{_kernel_ver}
-
-%postun -n kernel-misc-fuse
-%depmod %{_kernel_ver}
-
-%post -n kernel-smp-misc-fuse
-%depmod %{_kernel_ver}smp
+%pre tools
+%groupadd -g 84 fuse
 
-%postun -n kernel-smp-misc-fuse
-%depmod %{_kernel_ver}smp
-
-%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(755,root,root) %{_bindir}/fusermount
-%attr(755,root,root) /sbin/mount.fuse
-%attr(755,root,root) %{_libdir}/libfuse.so.*.*.*
+%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
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libfuse.so
+%attr(755,root,root) %{_libdir}/libulockmgr.so
 %{_libdir}/libfuse.la
-%{_includedir}/fuse*
+%{_libdir}/libulockmgr.la
+%{_includedir}/fuse
+%{_includedir}/fuse.h
+%{_includedir}/ulockmgr.h
 %{_pkgconfigdir}/fuse.pc
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libfuse.a
-%endif
+%{_libdir}/libulockmgr.a
 
-%if %{with kernel}
-%files -n kernel-misc-fuse
+%files apidocs
 %defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}/kernel/fs/fuse.ko*
+%doc doc/html/*
 
-%if %{with smp} && %{with dist_kernel}
-%files -n kernel-smp-misc-fuse
+%files tools
 %defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}smp/kernel/fs/fuse.ko*
-%endif
-%endif
+%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.042913 seconds and 4 git commands to generate.