2 %bcond_with dynamic_exe # link executables dynamically with xfs libs
4 Summary: Tools for the XFS filesystem
5 Summary(pl.UTF-8): Narzędzia do systemu plików XFS
9 License: LGPL v2.1 (libhandle), GPL v2 (the rest)
10 Group: Applications/System
11 Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz
12 # Source0-md5: d9079d9a8dbc7cc983ed518842ca909f
13 Patch0: %{name}-miscfix-v2.patch
14 Patch1: %{name}-install-sh.patch
15 Patch2: %{name}-sharedlibs.patch
16 Patch3: %{name}-pl.po-update.patch
17 Patch4: %{name}-dynamic_exe.patch
18 Patch5: %{name}-LDFLAGS.patch
19 Patch6: %{name}-libtool.patch
20 Patch7: %{name}-gettext.patch
21 URL: http://oss.sgi.com/projects/xfs/
22 BuildRequires: autoconf
23 BuildRequires: automake
25 BuildRequires: gettext-devel
26 BuildRequires: libtool
27 BuildRequires: libuuid-devel
28 BuildRequires: rpmbuild(macros) >= 1.402
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 %define _sbindir /sbin
33 %define _bindir /usr/sbin
34 %define _libdir /%{_lib}
35 %define _libexecdir /usr/%{_lib}
38 A set of commands to use the XFS filesystem, including mkfs.xfs.
40 XFS is a high performance journaling filesystem which originated on
41 the SGI IRIX platform. It is completely multi-threaded, can support
42 large files and large filesystems, extended attributes, variable block
43 sizes, is extent based, and makes extensive use of Btrees
44 (directories, extents, free space) to aid both performance and
47 This implementation is on-disk compatible with the IRIX version of
50 %description -l pl.UTF-8
51 Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs.
53 XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie
54 był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy,
55 obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych
56 atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący
57 B-drzewa by uzyskać wysoką wydajność oraz skalowalność.
60 Summary: Header files and libraries to develop XFS software
61 Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki
62 Group: Development/Libraries
63 Requires: %{name} = %{version}-%{release}
64 Requires: libuuid-devel
65 Obsoletes: libxfs1-devel
68 Header files and libraries to develop software which operates on XFS
71 %description devel -l pl.UTF-8
72 Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania
73 operującego na systemie plików XFS.
76 Summary: Static XFS software libraries
77 Summary(pl.UTF-8): Biblioteki statyczne do XFS
78 Group: Development/Libraries
79 Requires: %{name}-devel = %{version}-%{release}
82 Static XFS software libraries.
84 %description static -l pl.UTF-8
85 Biblioteki statyczne do XFS.
93 %{?with_dynamic_exe:%patch4 -p1}
102 --enable-gettext=yes \
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
115 DIST_MANIFEST="$DIST_INSTALL"
116 %{__make} install-dev \
117 DIST_MANIFEST="$DIST_INSTALL_DEV"
119 ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libhandle.so.*.*.*) \
120 $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so
121 ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libdisk.so.*.*.*) \
122 $RPM_BUILD_ROOT%{_libexecdir}/libdisk.so
123 ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxfs.so.*.*.*) \
124 $RPM_BUILD_ROOT%{_libexecdir}/libxfs.so
125 ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxlog.so.*.*.*) \
126 $RPM_BUILD_ROOT%{_libexecdir}/libxlog.so
128 %{__sed} -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
129 $RPM_BUILD_ROOT%{_libexecdir}/lib{disk,handle,xfs,xlog}.la
133 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
136 rm -f $RPM_BUILD_ROOT%{_libdir}/libdisk.{a,la,so}
137 rm -f $RPM_BUILD_ROOT%{_libdir}/libhandle.{a,la,so}
138 rm -f $RPM_BUILD_ROOT%{_libdir}/libxfs.{a,la,so}
139 rm -f $RPM_BUILD_ROOT%{_libdir}/libxfslog.{a,la,so}
140 rm -f $RPM_BUILD_ROOT%{_libdir}/libxlog.{a,la,so}
143 rm -rf $RPM_BUILD_ROOT
145 %post -p /sbin/ldconfig
146 %postun -p /sbin/ldconfig
148 %files -f %{name}.lang
149 %defattr(644,root,root,755)
150 %doc README doc/{CHANGES,CREDITS}
151 %attr(755,root,root) %{_sbindir}/*
152 %attr(755,root,root) %{_bindir}/*
153 %attr(755,root,root) %{_libdir}/libdisk.so.*.*
154 %attr(755,root,root) %{_libdir}/libhandle.so.*.*
155 %attr(755,root,root) %{_libdir}/libxfs.so.*.*
156 %attr(755,root,root) %{_libdir}/libxlog.so.*.*
157 %attr(755,root,root) %ghost %{_libdir}/libdisk.so.0
158 %attr(755,root,root) %ghost %{_libdir}/libhandle.so.1
159 %attr(755,root,root) %ghost %{_libdir}/libxfs.so.0
160 %attr(755,root,root) %ghost %{_libdir}/libxlog.so.0
161 %{_mandir}/man[185]/*
164 %defattr(644,root,root,755)
165 %attr(755,root,root) %{_libexecdir}/lib*.so
166 %{_libexecdir}/lib*.la
172 %defattr(644,root,root,755)
173 %{_libexecdir}/lib*.a