--- /dev/null
+--- exfat-utils-1.2.1/configure.ac.orig 2015-09-24 07:46:01.000000000 +0200
++++ exfat-utils-1.2.1/configure.ac 2015-10-04 11:28:12.297402828 +0200
+@@ -25,7 +25,7 @@
+ [relan@users.noreply.github.com],
+ [exfat-utils],
+ [https://github.com/relan/exfat])
+-AM_INIT_AUTOMAKE([1.11.2 -Wall -Werror foreign subdir-objects no-installman])
++AM_INIT_AUTOMAKE([1.11.2 -Wall -Werror foreign subdir-objects])
+ AC_PROG_CC
+ AC_PROG_CC_C99
+ AC_PROG_RANLIB
Summary: Utilities for exFAT filesystem
Summary(pl.UTF-8): Narzędzia do systemu plików exFAT
Name: exfat-utils
-Version: 1.1.1
+Version: 1.2.1
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: 6f0a276bbfdcdd8c94ac2f72625cc7c9
-URL: http://code.google.com/p/exfat/
-BuildRequires: rpmbuild(macros) >= 1.385
-BuildRequires: scons
+#Source0Download: https://github.com/relan/exfat/releases
+Source0: https://github.com/relan/exfat/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 33e6356b8bec238944b9ea5d682bdc65
+Patch0: %{name}-man.patch
+URL: https://github.com/relan/exfat
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.11.2
Suggests: fuse-exfat
Conflicts: fuse-exfat < 0.9.4
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.
%prep
%setup -q
+%patch0 -p1
%build
-export CFLAGS="%{rpmcflags} -std=c99"
-%scons
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-export CFLAGS="%{rpmcflags} -std=c99"
-%scons install \
- DESTDIR=$RPM_BUILD_ROOT/sbin
-install -d $RPM_BUILD_ROOT%{_mandir}/man8
-cp -p dump/dumpexfat.8 \
- fsck/exfatfsck.8 \
- label/exfatlabel.8 \
- mkfs/mkexfatfs.8 $RPM_BUILD_ROOT%{_mandir}/man8
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
echo '.so man8/exfatfsck.8' >$RPM_BUILD_ROOT%{_mandir}/man8/fsck.exfat.8
echo '.so man8/mkexfatfs.8' >$RPM_BUILD_ROOT%{_mandir}/man8/mkfs.exfat.8
%files
%defattr(644,root,root,755)
-%doc ChangeLog
+%doc ChangeLog README
%attr(755,root,root) /sbin/dumpexfat
%attr(755,root,root) /sbin/exfatfsck
%attr(755,root,root) /sbin/exfatlabel