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