Summary: FUSE module to access exFAT filesystem
Summary(pl.UTF-8): Moduł FUSE pozwalający na dostęp do systemu plików exFAT
Name: fuse-exfat
-Version: 1.0.1
+Version: 1.4.0
Release: 1
-License: GPL v3+
+License: GPL v2+
Group: Applications/System
-#Source0Download: http://code.google.com/p/exfat/downloads/list
-Source0: http://exfat.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5: 7988a5111841593231f20af22153362d
-URL: http://code.google.com/p/exfat/
-BuildRequires: libfuse-devel >= 2.6
-BuildRequires: rpmbuild(macros) >= 1.385
-BuildRequires: scons
-Requires: libfuse >= 2.6
+#Source0Download: https://github.com/relan/exfat/releases
+Source0: https://github.com/relan/exfat/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 765bf2484d48e5c253d0d8cb8de4f8c0
+URL: https://github.com/relan/exfat
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.11.2
+# also libfuse-devel >= 2.6 possible, but libfuse3 is preferred
+BuildRequires: libfuse3-devel >= 3
+BuildRequires: pkgconfig
+Requires: libfuse3-tools >= 3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _sbindir /sbin
+
%description
This project aims to provide a full-featured exFAT file system
implementation for Linux and other Unix-like systems as a FUSE module.
%setup -q
%build
-%scons
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%scons install \
- DESTDIR=$RPM_BUILD_ROOT/sbin
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}/man8
-install fuse/mount.exfat-fuse.8 $RPM_BUILD_ROOT%{_mandir}/man8
echo '.so mount.exfat-fuse.8' >$RPM_BUILD_ROOT%{_mandir}/man8/mount.exfat.8
%clean
%files
%defattr(644,root,root,755)
-%doc ChangeLog
+%doc ChangeLog README
%attr(755,root,root) /sbin/mount.exfat
%attr(755,root,root) /sbin/mount.exfat-fuse
%{_mandir}/man8/mount.exfat.8*