[packages/f2fs-tools] up to 1.7.0; new SONAME; added -devel

glen glen at pld-linux.org
Sun Nov 13 14:27:59 CET 2016


commit 58bab8aec6b326b0112dd638d67de2e915ac7de7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 13 15:27:13 2016 +0200

    up to 1.7.0; new SONAME; added -devel

 f2fs-tools.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++---------
 no_subst.patch  | 13 ------------
 2 files changed, 53 insertions(+), 22 deletions(-)
---
diff --git a/f2fs-tools.spec b/f2fs-tools.spec
index a8af5d8..29199af 100644
--- a/f2fs-tools.spec
+++ b/f2fs-tools.spec
@@ -1,13 +1,12 @@
 Summary:	Utilities for managing the f2fs filesystem
 Summary(pl.UTF-8):	Narzędzia do systemu plików f2fs
 Name:		f2fs-tools
-Version:	1.4.1
+Version:	1.7.0
 Release:	1
 License:	GPL v2
 Group:		Applications/System
 Source0:	http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/%{name}-%{version}.tar.gz
-# Source0-md5:	d1286b83d4844d5eac3e53a1ed772288
-Patch0:		no_subst.patch
+# Source0-md5:	9db22274264f0c88dbee012f257917b1
 URL:		http://f2fs-tools.sourceforge.net/
 BuildRequires:	autoconf >= 2.68
 BuildRequires:	automake
@@ -17,14 +16,37 @@ BuildRequires:	pkgconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Tools for flash-friendly filesystem (f2fs).
+NAND flash memory-based storage devices, such as SSD, and SD cards,
+have been widely being used for ranging from mobile to server systems.
+Since they are known to have different characteristics from the
+conventional rotational disks,a file system, an upper layer to the
+storage device, should adapt to the changes from the sketch.
+
+F2FS is a new file system carefully designed for the NAND flash
+memory-based storage devices. We chose a log structure file system
+approach, but we tried to adapt it to the new form of storage. Also we
+remedy some known issues of the very old log structured file system,
+such as snowball effect of wandering tree and high cleaning overhead.
+
+Because a NAND-based storage device shows different characteristics
+according to its internal geometry or flash memory management scheme
+aka FTL, we add various parameters not only for configuring on-disk
+layout, but also for selecting allocation and cleaning algorithms.
 
 %description -l pl.UTF-8
 Pakiet ten zawiera narzędzia do tworzenia systemów plików f2fs.
 
+%package devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+This package contains the libraries needed to develop applications
+that use f2fs-tools
+
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -39,10 +61,13 @@ Pakiet ten zawiera narzędzia do tworzenia systemów plików f2fs.
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
+	INSTALL="install -p" \
+	CP="cp -p" \
 	DESTDIR=$RPM_BUILD_ROOT
 
-# API not exported
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libf2fs.{so,la}
+install -d $RPM_BUILD_ROOT%{_includedir}
+cp -p include/f2fs_fs.h $RPM_BUILD_ROOT%{_includedir}
+cp -p mkfs/f2fs_format_utils.h $RPM_BUILD_ROOT%{_includedir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -53,12 +78,31 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
-%attr(755,root,root) %{_libdir}/libf2fs.so.0.0.0
-%attr(755,root,root) %ghost %{_libdir}/libf2fs.so.0
+%attr(755,root,root) %{_libdir}/libf2fs.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libf2fs.so.1
+%attr(755,root,root) %{_libdir}/libf2fs_format.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libf2fs_format.so.0
+%attr(755,root,root) %{_sbindir}/defrag.f2fs
 %attr(755,root,root) %{_sbindir}/dump.f2fs
 %attr(755,root,root) %{_sbindir}/f2fstat
 %attr(755,root,root) %{_sbindir}/fibmap.f2fs
 %attr(755,root,root) %{_sbindir}/fsck.f2fs
 %attr(755,root,root) %{_sbindir}/mkfs.f2fs
 %attr(755,root,root) %{_sbindir}/parse.f2fs
+%attr(755,root,root) %{_sbindir}/resize.f2fs
+%attr(755,root,root) %{_sbindir}/sload.f2fs
+%{_mandir}/man8/defrag.f2fs.8*
+%{_mandir}/man8/dump.f2fs.8*
+%{_mandir}/man8/fsck.f2fs.8*
 %{_mandir}/man8/mkfs.f2fs.8*
+%{_mandir}/man8/resize.f2fs.8*
+%{_mandir}/man8/sload.f2fs.8*
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libf2fs.la
+%{_libdir}/libf2fs.so
+%{_libdir}/libf2fs_format.la
+%{_libdir}/libf2fs_format.so
+%{_includedir}/f2fs_format_utils.h
+%{_includedir}/f2fs_fs.h
diff --git a/no_subst.patch b/no_subst.patch
deleted file mode 100644
index 1746c1c..0000000
--- a/no_subst.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- f2fs-tools-1.3.0/configure.ac.orig	2014-06-16 19:59:21.760240514 +0200
-+++ f2fs-tools-1.3.0/configure.ac	2014-06-16 19:59:55.486721838 +0200
-@@ -73,10 +73,6 @@ AC_CHECK_FUNCS_ONCE([
- ])
- 
- # Install directories
--AC_PREFIX_DEFAULT([/usr])
--AC_SUBST([sbindir], [/sbin])
--AC_SUBST([sysconfdir], [/etc])
--AC_SUBST([localstatedir], [/var])
- AC_CONFIG_FILES([
- 	Makefile
- 	man/Makefile
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/f2fs-tools.git/commitdiff/58bab8aec6b326b0112dd638d67de2e915ac7de7



More information about the pld-cvs-commit mailing list