1 Summary: Tool that allows you to change type of file system in the lack of backup space
6 Group: Applications/System
7 Source0: http://tzukanov.narod.ru/convertfs/%{name}-%{version}.tar.gz
8 # Source0-md5: 10fcab200d3722f008274ed11fe643af
9 Patch0: %{name}-safety.patch
10 URL: http://tzukanov.narod.ru/convertfs/
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 This simple toolset allows you to change type of file system in the
17 lack of backup space. The idea is to use sparse files support of
18 primary filesystem. We create a sparse image of block device, mkfs
19 secondary filesystem on it, mount it, mv files from primary filesystem
20 to mounted image and then map image to the device.
22 Remapping utility uses some kind of journaling to avoid breakage in
23 case of power failure. It's expected that you have linux 2.4, glibc
24 2.2, recent util-linux, fileutils.
26 You can convert from virtually any filesystem type to virtually any
27 one as long as they are both block-oriented and supported by Linux for
28 read/write, and as long as primary filesystem supports sparse files.
35 sed -i -e 's#gcc#%{__cc}#g' Makefile
36 %{__make} CFLAGS="%{rpmcflags}"
39 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_sbindir}
43 install convertfs_dumb devclone devremap prepindex contrib/convertfs $RPM_BUILD_ROOT%{_sbindir}
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
50 %attr(755,root,root) %{_sbindir}/*