2015-09-08 10:59:32 +02:00
|
|
|
#
|
|
|
|
# spec file for package fuse-exfat
|
|
|
|
#
|
2016-01-20 10:50:21 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-09-08 10:59:32 +02:00
|
|
|
# Copyright (c) 2013 Sidlovsky, Yaroslav <zawertun@gmail.com>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: fuse-exfat
|
2016-01-20 10:50:21 +01:00
|
|
|
Version: 1.2.3
|
2015-09-08 10:59:32 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Free exFAT file system implementation
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Filesystems
|
|
|
|
Url: https://github.com/relan/exfat
|
|
|
|
Source0: https://github.com/relan/exfat/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2015-10-02 17:16:56 +02:00
|
|
|
BuildRequires: fuse-devel >= 2.6
|
2015-12-11 15:03:44 +01:00
|
|
|
BuildRequires: libtool
|
2015-09-08 10:59:32 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
Requires: fuse >= 2.6
|
|
|
|
Recommends: exfat-utils
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This driver is the first free exFAT file system implementation with write
|
|
|
|
support. exFAT is a simple file system created by Microsoft. It is intended
|
|
|
|
to replace FAT32 removing some of it's limitations. exFAT is a standard FS
|
|
|
|
for SDXC memory cards.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
# force installation of manual pages
|
|
|
|
sed -i -e 's/no-installman//' configure.ac
|
2015-12-11 15:03:44 +01:00
|
|
|
autoreconf -fiv
|
2015-09-08 10:59:32 +02:00
|
|
|
%configure
|
2015-12-11 15:03:44 +01:00
|
|
|
make %{?_smp_mflags}
|
2015-09-08 10:59:32 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install install
|
|
|
|
|
|
|
|
%post
|
2015-12-11 15:03:44 +01:00
|
|
|
if ! grep -q -e '^exfat$' %{_sysconfdir}/filesystems ; then
|
|
|
|
sed -i 's/*/exfat\n*/g' %{_sysconfdir}/filesystems
|
|
|
|
echo "Added 'exfat' to the file %{_sysconfdir}/filesystems"
|
2015-09-08 10:59:32 +02:00
|
|
|
fi
|
|
|
|
|
2015-12-11 15:03:44 +01:00
|
|
|
if ! grep -q exfat_fuse %{_sysconfdir}/filesystems ; then
|
|
|
|
sed -i 's/*/exfat_fuse\n*/g' %{_sysconfdir}/filesystems
|
|
|
|
echo "Added 'exfat_fuse' to the file %{_sysconfdir}/filesystems"
|
2015-09-08 10:59:32 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ "$1" == "0" ]; then
|
2015-12-11 15:03:44 +01:00
|
|
|
sed -i -e '/exfat_fuse/d' -e '/^exfat$/d' %{_sysconfdir}/filesystems
|
|
|
|
echo "Deleted 'exfat' and 'exfat_fuse' from the file %{_sysconfdir}/filesystems"
|
2015-09-08 10:59:32 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ChangeLog COPYING README
|
|
|
|
%{_sbindir}/mount.exfat
|
|
|
|
%{_sbindir}/mount.exfat-fuse
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
%changelog
|