]>
Commit | Line | Data |
---|---|---|
84a8590f AM |
1 | Summary: Tool that allows you to change type of file system in the lack of backup space |
2 | Name: convertfs | |
3 | Version: 18mar2002 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Applications/System | |
7 | Source0: http://tzukanov.narod.ru/convertfs/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 10fcab200d3722f008274ed11fe643af | |
9 | URL: http://tzukanov.narod.ru/convertfs/ | |
10 | Requires: util-linux | |
11 | Requires: coreutils | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | This simple toolset allows you to change type of file system in the | |
16 | lack of backup space. The idea is to use sparse files support of | |
17 | primary filesystem. We create a sparse image of block device, mkfs | |
18 | secondary filesystem on it, mount it, mv files from primary filesystem | |
19 | to mounted image and then map image to the device. | |
20 | ||
21 | Remapping utility uses some kind of journaling to avoid breakage in | |
22 | case of power failure. It's expected that you have linux 2.4, glibc | |
23 | 2.2, recent util-linux, fileutils. | |
24 | ||
25 | You can convert from virtually any filesystem type to virtually any | |
26 | one as long as they are both block-oriented and supported by Linux for | |
27 | read/write, and as long as primary filesystem supports sparse files. | |
28 | ||
29 | %prep | |
30 | %setup -q -n %{name} | |
31 | ||
32 | %build | |
33 | sed -i -e 's#gcc#%{__cc}#g' Makefile | |
34 | %{__make} CFLAGS="%{rpmcflags}" | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | install -d $RPM_BUILD_ROOT%{_sbindir} | |
40 | ||
41 | install convertfs_dumb devclone devremap prepindex contrib/convertfs $RPM_BUILD_ROOT%{_sbindir} | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %attr(755,root,root) %{_sbindir}/* |