2015-09-08 10:59:32 +02:00
|
|
|
#
|
|
|
|
# spec file for package fuse-exfat
|
|
|
|
#
|
2022-08-15 22:06:21 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2018-12-11 14:23:28 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-09-08 10:59:32 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: fuse-exfat
|
2018-12-11 14:23:28 +01:00
|
|
|
Version: 1.3.0
|
2015-09-08 10:59:32 +02:00
|
|
|
Release: 0
|
2018-12-12 12:29:33 +01:00
|
|
|
Summary: exFAT file system implementation
|
2018-12-11 14:23:28 +01:00
|
|
|
License: GPL-2.0-or-later
|
2015-09-08 10:59:32 +02:00
|
|
|
Group: System/Filesystems
|
2018-12-11 14:23:28 +01:00
|
|
|
URL: https://github.com/relan/exfat
|
2015-09-08 10:59:32 +02:00
|
|
|
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
|
2018-12-11 14:23:28 +01:00
|
|
|
BuildRequires: pkgconfig
|
2015-09-08 10:59:32 +02:00
|
|
|
Requires: fuse >= 2.6
|
|
|
|
Recommends: exfat-utils
|
|
|
|
|
|
|
|
%description
|
2018-12-12 12:29:33 +01:00
|
|
|
This driver is an 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 its limitations. exFAT is
|
|
|
|
a standard FS for SDXC memory cards.
|
2015-09-08 10:59:32 +02:00
|
|
|
|
|
|
|
%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
|
2016-02-09 14:20:27 +01:00
|
|
|
%make_install
|
2015-09-08 10:59:32 +02:00
|
|
|
|
|
|
|
%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
|
2022-08-15 22:06:21 +02:00
|
|
|
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
|
2018-12-11 14:23:28 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog README
|
2015-09-08 10:59:32 +02:00
|
|
|
%{_sbindir}/mount.exfat
|
|
|
|
%{_sbindir}/mount.exfat-fuse
|
2018-12-11 14:23:28 +01:00
|
|
|
%{_mandir}/man8/mount.exfat-fuse.8%{?ext_man}
|
2015-09-08 10:59:32 +02:00
|
|
|
|
|
|
|
%changelog
|