Accepting request 329639 from home:dsterba:new

New package, support for exfat. There are several home projects with this package and the exfat filesystem is widely used on consumer devices.

OBS-URL: https://build.opensuse.org/request/show/329639
OBS-URL: https://build.opensuse.org/package/show/filesystems/fuse-exfat?expand=0&rev=1
This commit is contained in:
David Sterba 2015-09-08 08:59:32 +00:00 committed by Git OBS Bridge
commit a3dcc7ae9f
4 changed files with 236 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
fuse-exfat-1.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:beb6090c500bcd50dd3cca8b63df86d180d2ea502da1e27a83a81e61d3247cfc
size 134517

131
fuse-exfat.changes Normal file
View File

@ -0,0 +1,131 @@
-------------------------------------------------------------------
Wed Sep 2 00:00:00 CEST 2015 - dsterba@suse.cz
- Update to version 1.2.0:
* Switched from SCons to autotools.
* Added musl libc support [Brendan Heading].
* Worked around "FS is larger than device" error for memory cards
formatted by Panasonic Lumix cameras.
* Worked around "unknown entry type 0xe1" error for memory cards
formatted by2 Sony cameras.
- spec: change upstream url, cleanup
-------------------------------------------------------------------
Tue Aug 19 16:53:17 UTC 2014 - lars@linux-schulserver.de
- recommend exfat-utils
- specfile cleanup using spec-cleaner
- fix URL
- add Changelog and COPYING to doc files
-------------------------------------------------------------------
Tue Jul 8 14:04:19 UTC 2014 - zawertun@gmail.com
- Update to version 1.1.0:
+ Relicensed the project from GPLv3+ to GPLv2+.
+ OpenBSD support [Helg Bredow].
+ Improved I/O errors handling.
+ Implemented fsync() and fsyncdir().
+ Fixed crash on Mac OS X 10.5 caused by non-standard use of
realpath(). Also fixed TrueCrypt disks unmounting.
+ Avoid extra erase on writes to the end of a file. This should
improve linear write speed.
+ Allow arbitrary changing of lower 9 bits of mode. Allow
owner/group changing to the same owner/group. This fixes rsync.
+ Fixed buffers overflows when handling lengthy file names.
+ Fixed "real size does not equal to size" error on volumes with
pagefile.sys.
+ Fixed negative IUsed in "df -i" output.
-------------------------------------------------------------------
Sun May 12 12:26:42 UTC 2013 - subchaser1@gmail.com
- Fixed an error "unknown filesystem type 'exfat'" for the
openSUSE 12.3
-------------------------------------------------------------------
Tue Mar 26 06:18:14 UTC 2013 - zawertun@gmail.com
- Update to version 1.0.1:
+ Fixed unexpected removal of a directory if it is moved into
itself.
+ Fixed "Operation not permitted" error on reading an empty file.
-------------------------------------------------------------------
Tue Jan 22 17:53:58 UTC 2013 - zawertun@gmail.com
- Execute %postun script part only after package uninstallation
-------------------------------------------------------------------
Tue Jan 22 07:03:45 UTC 2013 - zawertun@gmail.com
- Added link from man page mount.exfat-fuse.8 to mount.exfat.8
-------------------------------------------------------------------
Mon Jan 21 14:00:32 UTC 2013 - zawertun@gmail.com
- Update to version 1.0.0:
+ Fixed crash when renaming a file within a single directory and
a new name differs only in case.
+ Fixed clusters allocation: a cluster beyond valid clusters
range
could be allocated.
+ Fixed crash when a volume is unmounted while some files are
open.
+ SConscript now respects AR and RANLIB environment variables.
+ Improved error handling.
+ Enabled big_writes. This improves write speed (larger block
size means less switches between kernel- and user-space).
+ Do BLKROGET ioctl to make sure the device is not read-only:
after "blockdev --setro" kernel still allows to open the device
in read-write mode but fails writes.
-------------------------------------------------------------------
Sun Jan 13 13:39:35 UTC 2013 - zawertun@gmail.css
- %{optflags} passed as the value for CCFLAGS and CPPFLAGS
-------------------------------------------------------------------
Thu Sep 20 14:51:29 UTC 2012 - zawertun@gmail.com
- Update to version 0.9.8:
+ The mkfs utility can now create huge file systems (up to several
exabytes).
+ Fixed handling of characters beyond Basic Multilingual Plane.
+ Echo messages to syslog only if stderr is not connected to a
terminal.
-------------------------------------------------------------------
Sat May 5 09:12:05 UTC 2012 - zawertun@gmail.com
- Update to version 0.9.7:
+ Out-of-the-box FreeBSD support (via ublio library).
+ Fixed "missing EOD entry" error (could happen while reading
directory that consists of several clusters).
+ Fixed interpretation of minutes field in files timestamps
(minutes could be displayed incorrectly).
+ Fixed mtime seconds field initialization for newly created file
(mtime could be 1 sec less than creation time).
+ SConscript now respects CC, CCFLAGS and LDFLAGS environment
variables.
-------------------------------------------------------------------
Tue Jan 17 15:12:57 MSK 2012 - zawertun@gmail.com
- Update to version 0.9.6:
+ Fixed write performance regression introduced in 0.9.4.
+ Mount in read-only mode if the device is write-protected.
+ Set ctime to mtime to ensure we don't break programs that rely on ctime
(e.g. rsync considered that all files are outdated) [Eldad Zack].
+ Indicate that FS in not clean when it was not cleanly unmounted.
+ Utilities are now compatible with GNU/Hurd.
+ Fixed several memory leaks that could occur on error handling paths.
+ Improved handling of corrupted file systems.
-------------------------------------------------------------------
Mon Jun 6 17:25:55 UTC 2011 - zawertun@gmail.com
- Update to version 0.9.5:
+ Fixed erasing of the root directory cluster when creating a new FS with mkexfatfs. This bug could cause mkexfatfs to produce invalid FS.
+ Utilities are not linked with libfuse anymore.
+ Ensure that the path being opened is either a device or a regular file.

79
fuse-exfat.spec Normal file
View File

@ -0,0 +1,79 @@
#
# spec file for package fuse-exfat
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
Version: 1.2.0
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: fuse-devel >= 2.6
BuildRequires: autoconf
BuildRequires: automake
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
autoreconf -vfi
%configure
make V=1 %{?_smp_mflags}
%install
%make_install install
%post
if ! grep -q -e '^exfat$' /etc/filesystems ; then
sed -i 's/*/exfat\n*/g' /etc/filesystems
echo "Added 'exfat' to the file /etc/filesystems"
fi
if ! grep -q exfat_fuse /etc/filesystems ; then
sed -i 's/*/exfat_fuse\n*/g' /etc/filesystems
echo "Added 'exfat_fuse' to the file /etc/filesystems"
fi
%postun
if [ "$1" == "0" ]; then
sed -i -e '/exfat_fuse/d' -e '/^exfat$/d' /etc/filesystems
echo "Deleted 'exfat' and 'exfat_fuse' from the file /etc/filesystems"
fi
%files
%defattr(-,root,root)
%doc ChangeLog COPYING README
%{_sbindir}/mount.exfat
%{_sbindir}/mount.exfat-fuse
%{_mandir}/man8/*
%changelog