1 |
Summary: Administrative utilities for the XFS filesystem |
2 |
Name: xfsdump |
3 |
Version: 3.1.0 |
4 |
Release: %mkrel 2 |
5 |
Source0: ftp://oss.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz |
6 |
License: GPLv2 |
7 |
Group: System/Kernel and hardware |
8 |
URL: http://oss.sgi.com/projects/xfs/ |
9 |
BuildRequires: attr-devel |
10 |
BuildRequires: libext2fs-devel |
11 |
BuildRequires: xfs-devel |
12 |
BuildRequires: dm-devel |
13 |
BuildRequires: ncurses-devel |
14 |
BuildRequires: libtool |
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
16 |
Requires(pre): filesystem >= 2.1.9-18 |
17 |
|
18 |
%description |
19 |
The xfsdump package contains xfsdump, xfsrestore and a number of |
20 |
other utilities for administering XFS filesystems. |
21 |
|
22 |
xfsdump examines files in a filesystem, determines which need to be |
23 |
backed up, and copies those files to a specified disk, tape or other |
24 |
storage medium. It uses XFS-specific directives for optimizing the |
25 |
dump of an XFS filesystem, and also knows how to backup XFS extended |
26 |
attributes. Backups created with xfsdump are "endian safe" and can |
27 |
thus be transfered between Linux machines of different architectures |
28 |
and also between IRIX machines. |
29 |
|
30 |
xfsrestore performs the inverse function of xfsdump; it can restore a |
31 |
full backup of a filesystem. Subsequent incremental backups can then |
32 |
be layered on top of the full backup. Single files and directory |
33 |
subtrees may be restored from full or partial backups. |
34 |
|
35 |
%prep |
36 |
|
37 |
%setup -q |
38 |
|
39 |
%build |
40 |
export DEBUG="-DNDEBUG" |
41 |
export OPTIMIZER="%{optflags}" |
42 |
%configure2_5x |
43 |
%make DEBUG="-DNDEBUG" OPTIMIZER="%{optflags}" |
44 |
|
45 |
%install |
46 |
rm -rf $RPM_BUILD_ROOT |
47 |
make install DIST_ROOT=%{buildroot}/ |
48 |
|
49 |
# nuke files already packaged as %doc |
50 |
rm -rf %{buildroot}%{_datadir}/doc/xfsdump/ |
51 |
|
52 |
# for coerency, rename xfsdump|xfsrestore to dump|restore.xfs |
53 |
mv %{buildroot}/sbin/xfsdump %{buildroot}%{_sbindir}/dump.xfs |
54 |
mv %{buildroot}/sbin/xfsrestore %{buildroot}%{_sbindir}/restore.xfs |
55 |
ln -sf dump.xfs %{buildroot}%{_sbindir}/xfsdump |
56 |
ln -sf restore.xfs %{buildroot}%{_sbindir}/xfsrestore |
57 |
ln -sf %{_mandir}/man8/xfsdump.8 %{buildroot}%{_mandir}/man8/dump.xfs |
58 |
ln -sf %{_mandir}/man8/xfsrestore.8 %{buildroot}%{_mandir}/man8/restore.xfs |
59 |
|
60 |
%clean |
61 |
rm -rf %{buildroot} |
62 |
|
63 |
%files |
64 |
%defattr(-,root,root) |
65 |
%doc doc/CHANGES.gz doc/COPYING doc/INSTALL doc/README.xfsdump |
66 |
%{_sbindir}/* |
67 |
%{_mandir}/*/* |
68 |
|
69 |
|
70 |
|
71 |
|