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.1.0
+Version: 1.3.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: %{name}-%{version}.tar.gz
-# Source0-md5: b2a23c032661cb1c1da4514e7af33916
-URL: http://code.google.com/p/exfat/
+#Source0Download: https://github.com/relan/exfat/releases
+Source0: https://github.com/relan/exfat/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 846b8c36bfa4684719f9e08e9d3a6bff
+URL: https://github.com/relan/exfat
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.11.2
BuildRequires: libfuse-devel >= 2.6
-BuildRequires: rpmbuild(macros) >= 1.385
-BuildRequires: scons
-Requires: libfuse >= 2.6
+BuildRequires: pkgconfig
+Requires: libfuse-tools >= 2.6
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
-# "fuse: unknown option `'" error with gold
-install -d ld-dir
-[ ! -x /usr/bin/ld.bfd ] || ln -sf /usr/bin/ld.bfd ld-dir/ld
-
-PATH=$(pwd)/ld-dir:$PATH
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
-export CFLAGS="%{rpmcflags} -std=c99"
-%scons
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-export CFLAGS="%{rpmcflags} -std=c99"
-%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*