3 %bcond_without tcmalloc # don't use tcmalloc
5 Summary: Tools for the XFS filesystem
6 Summary(pl.UTF-8): Narzędzia do systemu plików XFS
10 License: LGPL v2.1 (libhandle), GPL v2 (the rest)
11 Group: Applications/System
12 Source0: ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz
13 # Source0-md5: b6b0db5e3ee71ceba26d0a5accbd0666
15 Patch0: %{name}-miscfix-v2.patch
16 Patch1: %{name}-pl.po-update.patch
17 Patch2: %{name}-repair-tcmalloc.patch
18 Patch3: %{name}-noquotasync.patch
19 URL: http://www.xfs.org/
20 BuildRequires: autoconf
21 BuildRequires: automake
23 BuildRequires: gettext-tools
24 BuildRequires: libblkid-devel
25 %{?with_tcmalloc:BuildRequires: libtcmalloc-devel}
26 BuildRequires: libtool
27 BuildRequires: libuuid-devel
28 BuildRequires: readline-devel
29 BuildRequires: rpm >= 4.4.9-56
30 BuildRequires: rpmbuild(macros) >= 1.402
31 %{?with_tcmalloc:Requires: libtcmalloc >= 1.8.3-3}
32 Obsoletes: xfsprogs-initrd
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %if "%{pld_release}" == "ac"
36 # libtool in ac doesn't do the reordering of args properly
37 %define filterout_ld -Wl,--as-needed
40 %define _sbindir /sbin
41 %define _bindir /usr/sbin
42 %define _libdir /%{_lib}
43 %define _libexecdir /usr/%{_lib}
46 A set of commands to use the XFS filesystem, including mkfs.xfs.
48 XFS is a high performance journaling filesystem which originated on
49 the SGI IRIX platform. It is completely multi-threaded, can support
50 large files and large filesystems, extended attributes, variable block
51 sizes, is extent based, and makes extensive use of Btrees
52 (directories, extents, free space) to aid both performance and
55 This implementation is on-disk compatible with the IRIX version of
58 %description -l pl.UTF-8
59 Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs.
61 XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie
62 był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy,
63 obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych
64 atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący
65 B-drzewa by uzyskać wysoką wydajność oraz skalowalność.
68 Summary: Header files and libraries to develop XFS software
69 Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki
70 Group: Development/Libraries
71 Requires: %{name} = %{version}-%{release}
72 Requires: libuuid-devel
75 Header files and libraries to develop software which operates on XFS
78 %description devel -l pl.UTF-8
79 Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania
80 operującego na systemie plików XFS.
83 Summary: Static XFS software libraries
84 Summary(pl.UTF-8): Biblioteki statyczne do XFS
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{version}-%{release}
89 Static XFS software libraries.
91 %description static -l pl.UTF-8
92 Biblioteki statyczne do XFS.
99 %{?with_tcmalloc:%patch2 -p1}
106 --sbindir=%{_bindir}\
110 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
111 OPTIMIZER="%{rpmcflags}"
117 rm -rf $RPM_BUILD_ROOT
118 install -d $RPM_BUILD_ROOT{%{_libexecdir},/etc}
120 DIST_ROOT=$RPM_BUILD_ROOT
121 DIST_INSTALL=$(pwd)/install.manifest
122 DIST_INSTALL_DEV=$(pwd)/install-dev.manifest
123 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
126 DIST_MANIFEST="$DIST_INSTALL"
127 %{__make} install-dev \
128 DIST_MANIFEST="$DIST_INSTALL_DEV"
130 install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xfs_lsprojid
132 ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libhandle.so.*.*.*) \
133 $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so
135 mv $RPM_BUILD_ROOT%{_libdir}/lib*.la $RPM_BUILD_ROOT%{_libexecdir}
136 mv $RPM_BUILD_ROOT%{_libdir}/lib*.a $RPM_BUILD_ROOT%{_libexecdir}
138 %{__sed} -i -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
139 $RPM_BUILD_ROOT%{_libexecdir}/libhandle.la
141 echo "#10:/mnt/ftp/roman" >> $RPM_BUILD_ROOT/etc/projects
142 echo "#ftproman:10" >> $RPM_BUILD_ROOT/etc/projid
146 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
149 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhandle.so
152 rm -rf $RPM_BUILD_ROOT
154 %post -p /sbin/ldconfig
155 %postun -p /sbin/ldconfig
157 %files -f %{name}.lang
158 %defattr(644,root,root,755)
159 %doc README doc/{CHANGES,CREDITS}
160 %config(noreplace) %verify(not md5 mtime size) /etc/projects
161 %config(noreplace) %verify(not md5 mtime size) /etc/projid
162 %attr(755,root,root) %{_sbindir}/fsck.xfs
163 %attr(755,root,root) %{_sbindir}/mkfs.xfs
164 %attr(755,root,root) %{_sbindir}/xfs_repair
165 %attr(755,root,root) %{_bindir}/xfs_*
166 %attr(755,root,root) %{_libdir}/libhandle.so.*.*
167 %attr(755,root,root) %ghost %{_libdir}/libhandle.so.1
168 %{_mandir}/man5/projects.5*
169 %{_mandir}/man5/projid.5*
170 %{_mandir}/man5/xfs.5*
171 %{_mandir}/man8/fsck.xfs.8*
172 %{_mandir}/man8/mkfs.xfs.8*
173 %{_mandir}/man8/xfs_*.8*
176 %defattr(644,root,root,755)
177 %attr(755,root,root) %{_libexecdir}/libhandle.so
178 %{_libexecdir}/libhandle.la
180 %{_mandir}/man3/*handle.3*
181 %{_mandir}/man3/xfsctl.3*
184 %defattr(644,root,root,755)
185 %{_libexecdir}/libhandle.a