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