]>
Commit | Line | Data |
---|---|---|
ec36ce57 | 1 | Summary: Utilities for managing the f2fs filesystem |
8916055c | 2 | Summary(pl.UTF-8): Narzędzia do zarządzania systemem plików f2fs |
ec36ce57 | 3 | Name: f2fs-tools |
bc35ca8a | 4 | Version: 1.9.0 |
ec36ce57 | 5 | Release: 1 |
8916055c | 6 | License: GPL v2 (tools), GPL v2 or LGPL v2.1 (libraries) |
ec36ce57 | 7 | Group: Applications/System |
8 | Source0: http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/%{name}-%{version}.tar.gz | |
bc35ca8a WF |
9 | # Source0-md5: f35cfdee1dc616f226fff96a56974d8c |
10 | Patch0: blkid.patch | |
ec36ce57 | 11 | URL: http://f2fs-tools.sourceforge.net/ |
fa5c0ab5 | 12 | BuildRequires: autoconf >= 2.68 |
ec36ce57 | 13 | BuildRequires: automake |
bc35ca8a | 14 | BuildRequires: libblkid-devel |
8916055c | 15 | BuildRequires: libselinux-devel |
8869e485 | 16 | BuildRequires: libtool |
ec36ce57 | 17 | BuildRequires: libuuid-devel |
8869e485 | 18 | BuildRequires: pkgconfig |
ec36ce57 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
58bab8ae ER |
22 | NAND flash memory-based storage devices, such as SSD, and SD cards, |
23 | have been widely being used for ranging from mobile to server systems. | |
24 | Since they are known to have different characteristics from the | |
8916055c | 25 | conventional rotational disks, a file system, an upper layer to the |
58bab8ae ER |
26 | storage device, should adapt to the changes from the sketch. |
27 | ||
28 | F2FS is a new file system carefully designed for the NAND flash | |
29 | memory-based storage devices. We chose a log structure file system | |
30 | approach, but we tried to adapt it to the new form of storage. Also we | |
31 | remedy some known issues of the very old log structured file system, | |
32 | such as snowball effect of wandering tree and high cleaning overhead. | |
33 | ||
34 | Because a NAND-based storage device shows different characteristics | |
35 | according to its internal geometry or flash memory management scheme | |
36 | aka FTL, we add various parameters not only for configuring on-disk | |
37 | layout, but also for selecting allocation and cleaning algorithms. | |
ec36ce57 | 38 | |
39 | %description -l pl.UTF-8 | |
8916055c JB |
40 | Urządzenia przechowujące ane oparte na pamięci flash NAND, takie jak |
41 | dyski SSD i karty SD, mają szerokie zastosowanie od systemów | |
42 | przenośnych po serwerowe. Ponieważ mają inną charakterystykę od | |
43 | klasycznych dysków obrotowych, system plików, będący wyższą warstwą | |
44 | przechowywania danych, powinien być do niej dostosowany. | |
45 | ||
46 | F2FS to nowy system plików zaprojektowany z troską o urządzenia oparte | |
47 | na pamięci flash NAND. Wykorzystuje podejście oparte na strukturze | |
48 | logu, ale zaadaptowanej do nowego rodzaju pamięci. | |
49 | ||
50 | Ponieważ urządzenia oparte na pamięci NAND mają różną charakterystykę | |
51 | w zależności od wewnętrznej geometrii lub schematu zarządzania | |
52 | pamięcią (FTL), dodane zostały różne parametry nie tylko do | |
53 | konfigurowania ułożenia systemu na dysku, ale także wyboru algorytmów | |
54 | przydzielania i czyszczenia. | |
ec36ce57 | 55 | |
58bab8ae | 56 | %package devel |
8916055c JB |
57 | Summary: Header files for f2fs libraries |
58 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek f2fs | |
59 | License: GPL v2 or LGPL v2.1 | |
58bab8ae ER |
60 | Group: Development/Libraries |
61 | Requires: %{name} = %{version}-%{release} | |
62 | ||
63 | %description devel | |
8916055c JB |
64 | This package contains the header files needed to develop applications |
65 | that use f2fs libraries. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
69 | wykorzystujących biblioteki f2fs. | |
58bab8ae | 70 | |
ec36ce57 | 71 | %prep |
72 | %setup -q | |
bc35ca8a | 73 | %patch0 -p1 |
ec36ce57 | 74 | |
75 | %build | |
8869e485 | 76 | %{__libtoolize} |
fa5c0ab5 JB |
77 | %{__aclocal} -I m4 |
78 | %{__autoconf} | |
8869e485 | 79 | %{__autoheader} |
fa5c0ab5 | 80 | %{__automake} |
0f84b2ad JB |
81 | %configure \ |
82 | --disable-static | |
ec36ce57 | 83 | %{__make} |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | %{__make} install \ | |
58bab8ae ER |
88 | INSTALL="install -p" \ |
89 | CP="cp -p" \ | |
ec36ce57 | 90 | DESTDIR=$RPM_BUILD_ROOT |
91 | ||
58bab8ae ER |
92 | install -d $RPM_BUILD_ROOT%{_includedir} |
93 | cp -p include/f2fs_fs.h $RPM_BUILD_ROOT%{_includedir} | |
94 | cp -p mkfs/f2fs_format_utils.h $RPM_BUILD_ROOT%{_includedir} | |
0f84b2ad | 95 | |
ec36ce57 | 96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
8869e485 WF |
99 | %post -p /sbin/ldconfig |
100 | %postun -p /sbin/ldconfig | |
101 | ||
ec36ce57 | 102 | %files |
103 | %defattr(644,root,root,755) | |
104 | %doc AUTHORS ChangeLog README | |
58bab8ae | 105 | %attr(755,root,root) %{_libdir}/libf2fs.so.*.*.* |
bc35ca8a | 106 | %attr(755,root,root) %ghost %{_libdir}/libf2fs.so.3 |
58bab8ae | 107 | %attr(755,root,root) %{_libdir}/libf2fs_format.so.*.*.* |
bc35ca8a | 108 | %attr(755,root,root) %ghost %{_libdir}/libf2fs_format.so.2 |
58bab8ae | 109 | %attr(755,root,root) %{_sbindir}/defrag.f2fs |
8869e485 | 110 | %attr(755,root,root) %{_sbindir}/dump.f2fs |
bc35ca8a | 111 | %attr(755,root,root) %{_sbindir}/f2fscrypt |
8869e485 WF |
112 | %attr(755,root,root) %{_sbindir}/f2fstat |
113 | %attr(755,root,root) %{_sbindir}/fibmap.f2fs | |
114 | %attr(755,root,root) %{_sbindir}/fsck.f2fs | |
115 | %attr(755,root,root) %{_sbindir}/mkfs.f2fs | |
b593f1cf | 116 | %attr(755,root,root) %{_sbindir}/parse.f2fs |
58bab8ae ER |
117 | %attr(755,root,root) %{_sbindir}/resize.f2fs |
118 | %attr(755,root,root) %{_sbindir}/sload.f2fs | |
119 | %{_mandir}/man8/defrag.f2fs.8* | |
120 | %{_mandir}/man8/dump.f2fs.8* | |
bc35ca8a | 121 | %{_mandir}/man8/f2fscrypt.8* |
58bab8ae | 122 | %{_mandir}/man8/fsck.f2fs.8* |
fa5c0ab5 | 123 | %{_mandir}/man8/mkfs.f2fs.8* |
58bab8ae ER |
124 | %{_mandir}/man8/resize.f2fs.8* |
125 | %{_mandir}/man8/sload.f2fs.8* | |
126 | ||
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
8916055c JB |
129 | %attr(755,root,root) %{_libdir}/libf2fs.so |
130 | %attr(755,root,root) %{_libdir}/libf2fs_format.so | |
58bab8ae | 131 | %{_libdir}/libf2fs.la |
58bab8ae | 132 | %{_libdir}/libf2fs_format.la |
58bab8ae ER |
133 | %{_includedir}/f2fs_format_utils.h |
134 | %{_includedir}/f2fs_fs.h |