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.UTF-8): 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: 174683e3b86b587ed59823fdbbb96ea4
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 Patch7: %{name}-gettext.patch
23 URL: http://oss.sgi.com/projects/xfs/
24 BuildRequires: autoconf
25 BuildRequires: automake
27 BuildRequires: gettext-devel
28 BuildRequires: libtool
29 BuildRequires: libuuid-devel
30 %{?with_static:BuildRequires: libuuid-static}
31 %{?with_static:BuildRequires: sed >= 4.0}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _sbindir /sbin
36 %define _bindir /usr/sbin
37 %define _libdir /%{_lib}
38 %define _libexecdir /usr/%{_lib}
41 A set of commands to use the XFS filesystem, including mkfs.xfs.
43 XFS is a high performance journaling filesystem which originated on
44 the SGI IRIX platform. It is completely multi-threaded, can support
45 large files and large filesystems, extended attributes, variable block
46 sizes, is extent based, and makes extensive use of Btrees
47 (directories, extents, free space) to aid both performance and
50 This implementation is on-disk compatible with the IRIX version of
53 %description -l pl.UTF-8
54 Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs.
56 XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie
57 był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy,
58 obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych
59 atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący
60 B-drzewa by uzyskać wysoką wydajność oraz skalowalność.
63 Summary: Header files and libraries to develop XFS software
64 Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki
65 Group: Development/Libraries
66 Requires: %{name} = %{version}-%{release}
67 Requires: libuuid-devel
68 Obsoletes: libxfs1-devel
71 Header files and libraries to develop software which operates on XFS
74 %description devel -l pl.UTF-8
75 Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania
76 operującego na systemie plików XFS.
79 Summary: Static XFS software libraries
80 Summary(pl.UTF-8): Biblioteki statyczne do XFS
81 Group: Development/Libraries
82 Requires: %{name}-devel = %{version}-%{release}
85 Static XFS software libraries.
87 %description static -l pl.UTF-8
88 Biblioteki statyczne do XFS.
96 %{?with_dynamic_exe:%patch4 -p1}
102 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"
103 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
104 export DEBUG OPTIMIZER
109 %{!?with_static:--enable-shared-uuid=yes} \
110 %{?with_static:--disable-shared --disable-shared-uuid}
113 %{?with_static:LTLINK='$(LIBTOOL) --mode=link %{__cc} -all-static' LDFLAGS=-static}
116 rm -rf $RPM_BUILD_ROOT
118 DIST_ROOT="$RPM_BUILD_ROOT"
119 DIST_INSTALL=`pwd`/install.manifest
120 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
121 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
122 %{?with_static:sed -i -e 's/\.lai/.la/' include/buildmacros}
125 DIST_MANIFEST="$DIST_INSTALL"
126 %{__make} install-dev \
127 DIST_MANIFEST="$DIST_INSTALL_DEV"
129 for man in attr_list_by_handle.3 attr_multi_by_handle.3 \
130 fd_to_handle.3 free_handle.3 fssetdm_by_handle.3 \
131 getparentpaths_by_handle.3 getparents_by_handle.3 \
132 handle_to_fshandle.3 open_by_handle.3 path_to_fshandle.3 \
133 readlink_by_handle.3; do
134 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$man
135 echo ".so path_to_handle.3" \
136 > $RPM_BUILD_ROOT%{_mandir}/man3/$man
139 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
140 echo ".so xfs_growfs.8" > $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
142 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libhandle.so.*.*.*) \
143 $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so
144 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libdisk.so.*.*.*) \
145 $RPM_BUILD_ROOT%{_libexecdir}/libdisk.so
146 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libxfs.so.*.*.*) \
147 $RPM_BUILD_ROOT%{_libexecdir}/libxfs.so
148 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir}; echo libxlog.so.*.*.*) \
149 $RPM_BUILD_ROOT%{_libexecdir}/libxlog.so
151 %{__sed} -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
152 $RPM_BUILD_ROOT%{_libexecdir}/lib{disk,handle,xfs,xlog}.la
157 rm -rf $RPM_BUILD_ROOT
159 %post -p /sbin/ldconfig
160 %postun -p /sbin/ldconfig
162 %files -f %{name}.lang
163 %defattr(644,root,root,755)
164 %doc README doc/{CHANGES,CREDITS}
165 %attr(755,root,root) %{_sbindir}/*
166 %attr(755,root,root) %{_bindir}/*
167 %{!?with_static:%attr(755,root,root) /%{_lib}/lib*.so.*.*}
168 %{_mandir}/man[185]/*
171 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_libexecdir}/lib*.so
174 %{_libexecdir}/lib*.la
181 %defattr(644,root,root,755)
182 %{_libexecdir}/lib*.a