]> git.pld-linux.org Git - packages/xfsdump.git/blob - xfsdump.spec
- release 2 - added xfsrq patch, make it working with our setquota tool
[packages/xfsdump.git] / xfsdump.spec
1 Summary:        Tools for the XFS filesystem
2 Summary(pl):    Narzêdzia do systemu plikowego XFS
3 Name:           xfsdump
4 Version:        2.2.25
5 Release:        2
6 License:        GPL
7 Group:          Applications/Archiving
8 Source0:        ftp://oss.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
9 # Source0-md5:  62480f8575cad381eed542237c7f0ba3
10 Patch0:         %{name}-miscfix.patch
11 Patch1:         %{name}-xfsrq.patch
12 URL:            http://oss.sgi.com/projects/xfs/
13 BuildRequires:  attr-devel >= 2.4.15
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  dmapi-devel >= 2.2.0-1
17 BuildRequires:  libuuid-devel
18 BuildRequires:  ncurses-devel
19 BuildRequires:  xfsprogs-devel >= 2.6.9
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _sbindir        /sbin
23 %define         _bindir         /usr/sbin
24
25 %description
26 The xfsdump package contains xfsdump, xfsrestore and a number of other
27 utilities for administering XFS filesystems.
28
29 xfsdump examines files in a filesystem, determines which need to be
30 backed up, and copies those files to a specified disk, tape or other
31 storage medium. It uses XFS-specific directives for optimizing the
32 dump of an XFS filesystem, and also knows how to backup XFS extended
33 attributes. Backups created with xfsdump are "endian safe" and can
34 thus be transfered between Linux machines of different architectures
35 and also between IRIX machines.
36
37 xfsrestore performs the inverse function of xfsdump; it can restore a
38 full backup of a filesystem. Subsequent incremental backups can then
39 be layered on top of the full backup. Single files and directory
40 subtrees may be restored from full or partial backups.
41
42 %description -l pl
43 Pakiet zawiera programy xfsdump, xfsrestore i inne narzêdzia do
44 administracji systemami plików XFS.
45
46 xfsdump kontroluje system plików oraz wykrywa, które czê¶ci wymagaj±
47 wykonania kopii zapasowej, a nastêpnie kopiuje te dane na podany dysk,
48 ta¶mê lub inne medium danych. Program u¿ywa specyficznych dla XFS
49 funkcji optymalizuj±cych kopiê zapasow± (równie¿ znane jako
50 rozszerzone atrybuty kopii zapasowych XFS). Stworzone kopie zapasowe
51 s± "endian safe" i przez to mog± byæ przenoszone pomiêdzy maszynami
52 linuksowymi oraz IRIX pracuj±cymi na ró¿nych architekturach.
53
54 xfsrestore wykonuje operacjê przeciwn± do xfsdump; mo¿e on odzyskaæ
55 system plików z kopii zapasowej. Przyrostowe kopie zapasowe mog± byæ
56 u¿ywane w³±cznie z pe³n± kopi±.
57
58 %prep
59 %setup -q
60 %patch0 -p1
61 %patch1 -p1
62
63 %build
64 rm -f aclocal.m4
65 %{__aclocal} -I m4
66 %{__autoconf}
67 CPPFLAGS="-I/usr/include/ncurses"
68 %configure \
69         DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
70         OPTIMIZER="%{rpmcflags} -I/usr/include/ncurses"
71
72 %{__make} \
73         LIBUUID="-luuid"
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 DIST_ROOT="$RPM_BUILD_ROOT"
79 DIST_INSTALL=`pwd`/install.manifest
80 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
81 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
82
83 %{__make} install \
84         DIST_MANIFEST="$DIST_INSTALL"
85 %{__make} install-dev \
86         DIST_MANIFEST="$DIST_INSTALL_DEV"
87
88 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/xfsrq.8*
89 echo ".so man8/xfsdq.8" > $RPM_BUILD_ROOT%{_mandir}/man8/xfsrq.8
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
96 %doc doc/{CHANGES,README.*}
97 %attr(755,root,root) %{_bindir}/*
98 %attr(755,root,root) %{_sbindir}/*
99 %{_mandir}/man8/*
This page took 0.043287 seconds and 4 git commands to generate.