]> git.pld-linux.org Git - packages/convertfs.git/blob - convertfs.spec
e531d2fcaaddc850e7de0d1bcd2fc196ba677488
[packages/convertfs.git] / convertfs.spec
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 Patch0: %{name}-safety.patch
10 URL:            http://tzukanov.narod.ru/convertfs/
11 Requires:       util-linux
12 Requires:       coreutils
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
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.
21
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.
25
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.
29
30 %prep
31 %setup  -q -n %{name}
32 %patch0 -p1
33
34 %build
35 sed -i -e 's#gcc#%{__cc}#g' Makefile
36 %{__make} CFLAGS="%{rpmcflags}"
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 install -d $RPM_BUILD_ROOT%{_sbindir}
42
43 install convertfs_dumb devclone devremap prepindex contrib/convertfs $RPM_BUILD_ROOT%{_sbindir}
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %attr(755,root,root) %{_sbindir}/*
This page took 0.105544 seconds and 2 git commands to generate.