]> git.pld-linux.org Git - packages/xfsprogs.git/blob - xfsprogs.spec
- boot subpackage
[packages/xfsprogs.git] / xfsprogs.spec
1 Summary:        Tools for the XFS filesystem
2 Summary(pl):    Narzêdzia do systemu plikowego XFS
3 Name:           xfsprogs
4 Version:        1.3.13
5 Release:        2
6 License:        GPL
7 Group:          Applications/System
8 Group(de):      Applikationen/System
9 Group(pl):      Aplikacje/System
10 Source0:        ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
11 Patch0:         %{name}-miscfix-v2.patch
12 Patch1:         %{name}-install-sh.patch
13 BuildRequires:  e2fsprogs-devel
14 BuildRequires:  lvm-devel
15 BuildRequires:  autoconf
16 BuildRequires:  bash
17 %if %{?BOOT:1}%{!?BOOT:0}
18 BuildRequires:  lvm-static
19 BuildRequires:  glibc-static
20 BuildRequires:  e2fsprogs-static
21 %endif
22 URL:            http://oss.sgi.com/projects/xfs/
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 A set of commands to use the XFS filesystem, including mkfs.xfs.
27
28 XFS is a high performance journaling filesystem which originated on
29 the SGI IRIX platform. It is completely multi-threaded, can support
30 large files and large filesystems, extended attributes, variable block
31 sizes, is extent based, and makes extensive use of Btrees
32 (directories, extents, free space) to aid both performance and
33 scalability.
34
35 This implementation is on-disk compatible with the IRIX version of
36 XFS.
37
38 %description -l pl
39 Zbiór komend do u¿ytku z systemem plików XFS, w³±czaj±c w to mkfs.xfs.
40
41 XFS jest wysoko wydajnym systemem plików z kronik±, który oryginalnie
42 by³ u¿ywany na platformie SGI IRIX. Jest to w pe³ni wielo-w±tkowy,
43 obs³uguj±cy wielkie pliki oraz wielkie systemy, o rozsze¿onych
44 atrybutach, zmiennych wielko¶ciach bloków, mocno wykorzystuj±cy
45 B-drzewa by uzyskaæ wysok± wydajno¶æ oraz skalowalno¶æ.
46
47 %package devel
48 Summary:        Header files and libraries to develop XFS software
49 Summary(pl):    Pliki nag³ówkowe i biblioteki
50 Group:          Development/Libraries
51 Group(de):      Entwicklung/Libraries
52 Group(fr):      Development/Librairies
53 Group(pl):      Programowanie/Biblioteki
54
55 %description devel
56 Header files and libraries to develop software which operates on XFS
57 filesystems.
58
59 %description -l pl devel
60 Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
61 operuj±cego na systemie plików XFS.
62
63 %if %{?BOOT:1}%{!?BOOT:0}
64 %package BOOT
65 Summary:        xfs for bootdisk
66 Group:          Applications/System
67 Group(de):      Applikationen/System
68 Group(pl):      Aplikacje/System
69
70 %description BOOT
71 xfs for bootdisk.
72 %endif
73
74 %prep
75 %setup  -q
76 %patch0 -p1
77 %patch1 -p1
78
79 %build
80 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
81 autoconf
82
83 %if %{?BOOT:1}%{!?BOOT:0}
84 %configure2_13 \
85         --disable-shared \
86         --disable-shared-uuid
87 %{__make} -C libxfs
88 %{__make} -C libdisk
89 %{__make} -C mkfs LLDFLAGS=-all-static
90 mv mkfs/mkfs.xfs mkfs.xfs-BOOT
91 %{__make} clean
92 %endif
93
94 %configure2_13 \
95         --enable-shared-uuid=yes
96
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101
102 DIST_ROOT="$RPM_BUILD_ROOT"
103 DIST_INSTALL=`pwd`/install.manifest
104 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
105 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV 
106 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
107 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
108
109 for man in attr_list_by_handle.3 attr_multi_by_handle.3 \
110            fd_to_handle.3 free_handle.3 fssetdm_by_handle.3 \
111            handle_to_fshandle.3 open_by_handle.3 path_to_fshandle.3 \
112            readlink_by_handle.3; do
113                 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$man
114                 echo ".so man3/path_to_handle.3" \
115                         > $RPM_BUILD_ROOT%{_mandir}/man3/$man
116 done
117
118 %if %{?BOOT:1}%{!?BOOT:0}
119 install -d $RPM_BUILD_ROOT/usr/lib/bootdisk/sbin
120 install mkfs.xfs-BOOT $RPM_BUILD_ROOT/usr/lib/bootdisk/sbin/mkfs.xfs
121 %endif
122
123 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
124 echo ".so man8/xfs_growfs.8" > $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
125
126 gzip -9nf doc/{CHANGES,CREDITS,README.*}
127 %clean
128 rm -rf $RPM_BUILD_ROOT
129
130 %files
131 %defattr(644,root,root,755)
132 %doc doc/*.gz
133 %attr(755,root,root) /sbin/*
134 %attr(755,root,root) %{_sbindir}/*
135 %attr(755,root,root) /lib/lib*.so.*
136 %{_mandir}/man[185]/*
137
138 %files devel
139 %defattr(644,root,root,755)
140 %{_mandir}/man3/*
141 %{_includedir}/xfs
142 %{_libdir}/*.a
143
144 %if %{?BOOT:1}%{!?BOOT:0}
145 %files BOOT
146 %attr(755,root,root) /usr/lib/bootdisk/sbin/*
147 %endif
This page took 0.093557 seconds and 4 git commands to generate.