3 %bcond_with static # link statically with \-luuid
5 Summary: Tools for the XFS filesystem
6 Summary(pl): 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/download/cmd_tars/%{name}-%{version}.src.tar.gz
13 # Source0-md5: 89728c0d84258c94e629bf39e4ba1509
14 Patch0: %{name}-miscfix-v2.patch
15 Patch1: %{name}-install-sh.patch
16 Patch2: %{name}-sharedlibs.patch
17 Patch3: %{name}-cflags.patch
18 URL: http://oss.sgi.com/projects/xfs/
19 BuildRequires: autoconf
20 BuildRequires: automake
22 BuildRequires: gettext-devel
23 BuildRequires: libtool
24 BuildRequires: libuuid-devel
25 %{?with_static:BuildRequires: libuuid-static}
26 %{?with_static:BuildRequires: sed >= 4.0}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _sbindir /sbin
31 %define _bindir /usr/sbin
32 %define _libdir /%{_lib}
33 %define _libexecdir /usr/%{_lib}
36 A set of commands to use the XFS filesystem, including mkfs.xfs.
38 XFS is a high performance journaling filesystem which originated on
39 the SGI IRIX platform. It is completely multi-threaded, can support
40 large files and large filesystems, extended attributes, variable block
41 sizes, is extent based, and makes extensive use of Btrees
42 (directories, extents, free space) to aid both performance and
45 This implementation is on-disk compatible with the IRIX version of
49 Zbiór komend do u¿ytku z systemem plików XFS, w³±czaj±c w to mkfs.xfs.
51 XFS jest wysoko wydajnym systemem plików z kronik±, który oryginalnie
52 by³ u¿ywany na platformie SGI IRIX. Jest to w pe³ni wielow±tkowy,
53 obs³uguj±cy wielkie pliki oraz wielkie systemy, o rozszerzonych
54 atrybutach, zmiennych wielko¶ciach bloków, mocno wykorzystuj±cy
55 B-drzewa by uzyskaæ wysok± wydajno¶æ oraz skalowalno¶æ.
58 Summary: Header files and libraries to develop XFS software
59 Summary(pl): Pliki nag³ówkowe i biblioteki
60 Group: Development/Libraries
61 Requires: libuuid-devel
62 Requires: %{name} = %{version}-%{release}
63 Obsoletes: libxfs1-devel
66 Header files and libraries to develop software which operates on XFS
69 %description devel -l pl
70 Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
71 operuj±cego na systemie plików XFS.
74 Summary: Static XFS software libraries
75 Summary(pl): Biblioteki statyczne do XFS
76 Group: Development/Libraries
77 Requires: %{name}-devel = %{version}-%{release}
80 Static XFS software libraries.
82 %description static -l pl
83 Biblioteki statyczne do XFS.
93 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"
94 OPTIMIZER="%{rpmcflags}"
95 export DEBUG OPTIMIZER
100 %{!?with_static:--enable-shared-uuid=yes} \
101 %{?with_static:--disable-shared --disable-shared-uuid}
104 %{?with_static:LTLINK='$(LIBTOOL) --mode=link %{__cc} -all-static' LDFLAGS=-static}
107 rm -rf $RPM_BUILD_ROOT
109 DIST_ROOT="$RPM_BUILD_ROOT"
110 DIST_INSTALL=`pwd`/install.manifest
111 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
112 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
113 %{?with_static:sed -i -e 's/\.lai/.la/' include/buildmacros}
116 DIST_MANIFEST="$DIST_INSTALL"
117 %{__make} install-dev \
118 DIST_MANIFEST="$DIST_INSTALL_DEV"
120 for man in attr_list_by_handle.3 attr_multi_by_handle.3 \
121 fd_to_handle.3 free_handle.3 fssetdm_by_handle.3 \
122 handle_to_fshandle.3 open_by_handle.3 path_to_fshandle.3 \
123 readlink_by_handle.3; do
124 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$man
125 echo ".so path_to_handle.3" \
126 > $RPM_BUILD_ROOT%{_mandir}/man3/$man
129 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
130 echo ".so xfs_growfs.8" > $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
132 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libhandle.so.*.*.*) \
133 $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so
134 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libdisk.so.*.*.*) \
135 $RPM_BUILD_ROOT%{_libexecdir}/libdisk.so
136 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libxfs.so.*.*.*) \
137 $RPM_BUILD_ROOT%{_libexecdir}/libxfs.so
138 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libxlog.so.*.*.*) \
139 $RPM_BUILD_ROOT%{_libexecdir}/libxlog.so
141 %{__sed} -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
142 $RPM_BUILD_ROOT%{_libexecdir}/lib{disk,handle,xfs,xlog}.la
145 rm -rf $RPM_BUILD_ROOT
147 %post -p /sbin/ldconfig
148 %postun -p /sbin/ldconfig
151 %defattr(644,root,root,755)
152 %doc README doc/{CHANGES,CREDITS}
153 %attr(755,root,root) %{_sbindir}/*
154 %attr(755,root,root) %{_bindir}/*
155 %{!?with_static:%attr(755,root,root) /%{_lib}/lib*.so.*.*}
156 %{_mandir}/man[185]/*
159 %defattr(644,root,root,755)
163 %if %{without static}
165 %attr(755,root,root) %{_libexecdir}/*.so
169 %defattr(644,root,root,755)