3 %bcond_with static # link statically with \-luuid
4 %bcond_with dynamic_exe # link executables dynamically with xfs libs
6 Summary: Tools for the XFS filesystem
7 Summary(pl): Narzêdzia do systemu plików XFS
11 License: LGPL v2.1 (libhandle), GPL v2 (the rest)
12 Group: Applications/System
13 Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz
14 # Source0-md5: fcae4dea0acf79e30d986a38a609be43
15 Patch0: %{name}-miscfix-v2.patch
16 Patch1: %{name}-install-sh.patch
17 Patch2: %{name}-sharedlibs.patch
18 Patch3: %{name}-pl.po-update.patch
19 Patch4: %{name}-dynamic_exe.patch
20 Patch5: %{name}-LDFLAGS.patch
21 Patch6: %{name}-libtool.patch
22 URL: http://oss.sgi.com/projects/xfs/
23 BuildRequires: autoconf
24 BuildRequires: automake
26 BuildRequires: gettext-devel
27 BuildRequires: libtool
28 BuildRequires: libuuid-devel
29 %{?with_static:BuildRequires: libuuid-static}
30 %{?with_static:BuildRequires: sed >= 4.0}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define _sbindir /sbin
35 %define _bindir /usr/sbin
36 %define _libdir /%{_lib}
37 %define _libexecdir /usr/%{_lib}
40 A set of commands to use the XFS filesystem, including mkfs.xfs.
42 XFS is a high performance journaling filesystem which originated on
43 the SGI IRIX platform. It is completely multi-threaded, can support
44 large files and large filesystems, extended attributes, variable block
45 sizes, is extent based, and makes extensive use of Btrees
46 (directories, extents, free space) to aid both performance and
49 This implementation is on-disk compatible with the IRIX version of
53 Zbiór komend do u¿ytku z systemem plików XFS, w³±czaj±c w to mkfs.xfs.
55 XFS jest wysoko wydajnym systemem plików z kronik±, który oryginalnie
56 by³ u¿ywany na platformie SGI IRIX. Jest to w pe³ni wielow±tkowy,
57 obs³uguj±cy wielkie pliki oraz wielkie systemy, o rozszerzonych
58 atrybutach, zmiennych wielko¶ciach bloków, mocno wykorzystuj±cy
59 B-drzewa by uzyskaæ wysok± wydajno¶æ oraz skalowalno¶æ.
62 Summary: Header files and libraries to develop XFS software
63 Summary(pl): Pliki nag³ówkowe i biblioteki
64 Group: Development/Libraries
65 Requires: %{name} = %{version}-%{release}
66 Requires: libuuid-devel
67 Obsoletes: libxfs1-devel
70 Header files and libraries to develop software which operates on XFS
73 %description devel -l pl
74 Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
75 operuj±cego na systemie plików XFS.
78 Summary: Static XFS software libraries
79 Summary(pl): Biblioteki statyczne do XFS
80 Group: Development/Libraries
81 Requires: %{name}-devel = %{version}-%{release}
84 Static XFS software libraries.
86 %description static -l pl
87 Biblioteki statyczne do XFS.
95 %{?with_dynamic_exe:%patch4 -p1}
100 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"
101 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
102 export DEBUG OPTIMIZER
107 %{!?with_static:--enable-shared-uuid=yes} \
108 %{?with_static:--disable-shared --disable-shared-uuid}
111 %{?with_static:LTLINK='$(LIBTOOL) --mode=link %{__cc} -all-static' LDFLAGS=-static}
114 rm -rf $RPM_BUILD_ROOT
116 DIST_ROOT="$RPM_BUILD_ROOT"
117 DIST_INSTALL=`pwd`/install.manifest
118 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
119 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
120 %{?with_static:sed -i -e 's/\.lai/.la/' include/buildmacros}
123 DIST_MANIFEST="$DIST_INSTALL"
124 %{__make} install-dev \
125 DIST_MANIFEST="$DIST_INSTALL_DEV"
127 for man in attr_list_by_handle.3 attr_multi_by_handle.3 \
128 fd_to_handle.3 free_handle.3 fssetdm_by_handle.3 \
129 handle_to_fshandle.3 open_by_handle.3 path_to_fshandle.3 \
130 readlink_by_handle.3; do
131 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$man
132 echo ".so path_to_handle.3" \
133 > $RPM_BUILD_ROOT%{_mandir}/man3/$man
136 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
137 echo ".so xfs_growfs.8" > $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
139 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libhandle.so.*.*.*) \
140 $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so
141 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libdisk.so.*.*.*) \
142 $RPM_BUILD_ROOT%{_libexecdir}/libdisk.so
143 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libxfs.so.*.*.*) \
144 $RPM_BUILD_ROOT%{_libexecdir}/libxfs.so
145 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libxlog.so.*.*.*) \
146 $RPM_BUILD_ROOT%{_libexecdir}/libxlog.so
148 %{__sed} -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
149 $RPM_BUILD_ROOT%{_libexecdir}/lib{disk,handle,xfs,xlog}.la
154 rm -rf $RPM_BUILD_ROOT
156 %post -p /sbin/ldconfig
157 %postun -p /sbin/ldconfig
159 %files -f %{name}.lang
160 %defattr(644,root,root,755)
161 %doc README doc/{CHANGES,CREDITS}
162 %attr(755,root,root) %{_sbindir}/*
163 %attr(755,root,root) %{_bindir}/*
164 %{!?with_static:%attr(755,root,root) /%{_lib}/lib*.so.*.*}
165 %{_mandir}/man[185]/*
168 %defattr(644,root,root,755)
172 %if %{without static}
174 %attr(755,root,root) %{_libexecdir}/*.so
178 %defattr(644,root,root,755)