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