]>
Commit | Line | Data |
---|---|---|
00d1530a JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without initrd # don't build initrd version | |
4 | %bcond_without dietlibc # link initrd version with static glibc instead of dietlibc | |
5 | # | |
80ded214 | 6 | Summary: Tools for the XFS filesystem |
809af116 | 7 | Summary(pl.UTF-8): Narzędzia do systemu plików XFS |
80ded214 | 8 | Name: xfsprogs |
4ede93fd | 9 | Version: 3.0.0 |
00d1530a | 10 | Release: 3.1 |
636af8bd | 11 | License: LGPL v2.1 (libhandle), GPL v2 (the rest) |
80ded214 | 12 | Group: Applications/System |
4ede93fd | 13 | Source0: ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz |
e2ff5c05 | 14 | # Source0-md5: ec734f935ec87ebb8be890d29380a3e6 |
bc92c0b0 | 15 | Patch0: %{name}-miscfix-v2.patch |
cb58e4a3 | 16 | Patch1: %{name}-install-sh.patch |
6ad71900 | 17 | Patch2: %{name}-sharedlibs.patch |
21a3d2af JB |
18 | Patch3: %{name}-pl.po-update.patch |
19 | Patch4: %{name}-dynamic_exe.patch | |
2528905a | 20 | Patch5: %{name}-LDFLAGS.patch |
00d1530a | 21 | Patch6: %{name}-diet.patch |
ff9c0a4e | 22 | URL: http://oss.sgi.com/projects/xfs/ |
80ded214 | 23 | BuildRequires: autoconf |
1c0f6863 | 24 | BuildRequires: automake |
cb58e4a3 | 25 | BuildRequires: bash |
479d4852 | 26 | %{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.31-6} |
8c56223e | 27 | BuildRequires: gettext-devel |
92a53cbb | 28 | BuildRequires: libtool |
a5769371 | 29 | BuildRequires: libuuid-devel |
9656c3b9 | 30 | BuildRequires: rpmbuild(macros) >= 1.402 |
c826f244 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80ded214 | 32 | |
b087bbdd JR |
33 | %define _sbindir /sbin |
34 | %define _bindir /usr/sbin | |
a19d7677 JK |
35 | %define _libdir /%{_lib} |
36 | %define _libexecdir /usr/%{_lib} | |
b087bbdd | 37 | |
80ded214 AM |
38 | %description |
39 | A set of commands to use the XFS filesystem, including mkfs.xfs. | |
40 | ||
41 | XFS is a high performance journaling filesystem which originated on | |
42 | the SGI IRIX platform. It is completely multi-threaded, can support | |
43 | large files and large filesystems, extended attributes, variable block | |
44 | sizes, is extent based, and makes extensive use of Btrees | |
45 | (directories, extents, free space) to aid both performance and | |
46 | scalability. | |
47 | ||
48 | This implementation is on-disk compatible with the IRIX version of | |
49 | XFS. | |
50 | ||
ddc220a9 JR |
51 | %description -l pl.UTF-8 |
52 | Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs. | |
80ded214 | 53 | |
ddc220a9 JR |
54 | XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie |
55 | był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy, | |
56 | obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych | |
57 | atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący | |
58 | B-drzewa by uzyskać wysoką wydajność oraz skalowalność. | |
80ded214 AM |
59 | |
60 | %package devel | |
61 | Summary: Header files and libraries to develop XFS software | |
809af116 | 62 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki |
80ded214 | 63 | Group: Development/Libraries |
8b4647b2 | 64 | Requires: %{name} = %{version}-%{release} |
2528905a | 65 | Requires: libuuid-devel |
80ded214 AM |
66 | |
67 | %description devel | |
68 | Header files and libraries to develop software which operates on XFS | |
69 | filesystems. | |
70 | ||
ddc220a9 JR |
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. | |
80ded214 | 74 | |
1c0f6863 | 75 | %package static |
76 | Summary: Static XFS software libraries | |
809af116 | 77 | Summary(pl.UTF-8): Biblioteki statyczne do XFS |
1c0f6863 | 78 | Group: Development/Libraries |
8b4647b2 | 79 | Requires: %{name}-devel = %{version}-%{release} |
1c0f6863 | 80 | |
81 | %description static | |
82 | Static XFS software libraries. | |
83 | ||
ddc220a9 | 84 | %description static -l pl.UTF-8 |
1c0f6863 | 85 | Biblioteki statyczne do XFS. |
86 | ||
80ded214 | 87 | %prep |
600886d5 | 88 | %setup -q |
80ded214 | 89 | %patch0 -p1 |
cb58e4a3 | 90 | %patch1 -p1 |
6ad71900 | 91 | %patch2 -p1 |
4ede93fd AM |
92 | # currently obsolete until needed again |
93 | # %patch3 -p1 | |
423c4374 | 94 | %patch4 -p1 |
2528905a | 95 | %patch5 -p1 |
00d1530a | 96 | %patch6 -p1 |
4ede93fd AM |
97 | |
98 | rm -f include/{builddefs,platform_defs}.h | |
80ded214 AM |
99 | |
100 | %build | |
ff9c0a4e | 101 | %{__aclocal} -I m4 |
00d1530a JR |
102 | |
103 | %if %{with initrd} | |
104 | sed -i -e 's|^AC_PACKAGE_NEED_AIO_H|dnl AC_PACKAGE_NEED_AIO_H|' \ | |
105 | -e 's|^AC_PACKAGE_NEED_LIO_LISTIO|dnl AC_PACKAGE_NEED_LIO_LISTIO|' \ | |
106 | configure.in | |
107 | sed -i -e 's|\(^LIBRT.*=.*\)|# \1|' include/builddefs.in | |
108 | sed -i -e 's|\(^LLDLIBS.*=.*\)|\1 -lcompat|' db/Makefile mkfs/Makefile | |
109 | ||
110 | %{__autoconf} | |
111 | %configure \ | |
112 | CC="diet %{__cc} -static" \ | |
113 | --disable-gettext \ | |
114 | --disable-readline \ | |
115 | --disable-shared \ | |
116 | --enable-static \ | |
117 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ | |
118 | OPTIMIZER="-Wno-deprecated-declarations -Os -D_BSD_SOURCE" | |
119 | ||
120 | %{__make} -j1 include libxfs libxlog libxcmd libhandle libdisk | |
121 | %{__make} -j1 db growfs logprint mkfs mdrestore repair | |
122 | ||
123 | sed -i -e 's|^dnl AC_PACKAGE_NEED_AIO_H|AC_PACKAGE_NEED_AIO_H|' \ | |
124 | -e 's|^dnl AC_PACKAGE_NEED_LIO_LISTIO|AC_PACKAGE_NEED_LIO_LISTIO|' \ | |
125 | configure.in | |
126 | sed -i -e 's|# \(^LIBRT.*=.*\)|\1|' include/builddefs.in | |
127 | sed -i -e 's|\(^LLDLIBS.*=.*\) -lcompat|\1|' db/Makefile mkfs/Makefile | |
128 | ||
129 | #{__make} clean | |
130 | %endif | |
131 | ||
551b0d1f | 132 | %{__autoconf} |
1c0f6863 | 133 | %configure \ |
4ede93fd AM |
134 | --enable-gettext \ |
135 | --enable-readline \ | |
0c1d4bf9 | 136 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ |
4ede93fd | 137 | OPTIMIZER="%{rpmcflags}" |
00d1530a | 138 | |
4ede93fd | 139 | %{__make} -j1 |
80ded214 AM |
140 | |
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
9656c3b9 ER |
144 | DIST_ROOT=$RPM_BUILD_ROOT |
145 | DIST_INSTALL=$(pwd)/install.manifest | |
146 | DIST_INSTALL_DEV=$(pwd)/install-dev.manifest | |
59aa30e8 | 147 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV |
ff9c0a4e JB |
148 | |
149 | %{__make} install \ | |
150 | DIST_MANIFEST="$DIST_INSTALL" | |
151 | %{__make} install-dev \ | |
152 | DIST_MANIFEST="$DIST_INSTALL_DEV" | |
80ded214 | 153 | |
9656c3b9 | 154 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libhandle.so.*.*.*) \ |
ff9c0a4e | 155 | $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so |
9656c3b9 | 156 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libdisk.so.*.*.*) \ |
ff9c0a4e | 157 | $RPM_BUILD_ROOT%{_libexecdir}/libdisk.so |
0c1d4bf9 JB |
158 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxcmd.so.*.*.*) \ |
159 | $RPM_BUILD_ROOT%{_libexecdir}/libxcmd.so | |
9656c3b9 | 160 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxfs.so.*.*.*) \ |
ff9c0a4e | 161 | $RPM_BUILD_ROOT%{_libexecdir}/libxfs.so |
9656c3b9 | 162 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxlog.so.*.*.*) \ |
ff9c0a4e | 163 | $RPM_BUILD_ROOT%{_libexecdir}/libxlog.so |
cb190f67 | 164 | |
4ede93fd | 165 | %{__sed} -i -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ |
0c1d4bf9 | 166 | $RPM_BUILD_ROOT%{_libexecdir}/lib{disk,handle,xcmd,xfs,xlog}.la |
b13dd065 AM |
167 | %{__sed} -i -e "s| %{_libdir}/libxfs.la | %{_libexecdir}/libxfs.la |" \ |
168 | $RPM_BUILD_ROOT%{_libexecdir}/libxlog.la | |
b756248b | 169 | |
01483858 JB |
170 | %find_lang %{name} |
171 | ||
5e040522 ER |
172 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
173 | ||
9656c3b9 ER |
174 | # already in /usr |
175 | rm -f $RPM_BUILD_ROOT%{_libdir}/libdisk.{a,la,so} | |
176 | rm -f $RPM_BUILD_ROOT%{_libdir}/libhandle.{a,la,so} | |
0c1d4bf9 | 177 | rm -f $RPM_BUILD_ROOT%{_libdir}/libxcmd.{a,la,so} |
9656c3b9 | 178 | rm -f $RPM_BUILD_ROOT%{_libdir}/libxfs.{a,la,so} |
9656c3b9 ER |
179 | rm -f $RPM_BUILD_ROOT%{_libdir}/libxlog.{a,la,so} |
180 | ||
80ded214 AM |
181 | %clean |
182 | rm -rf $RPM_BUILD_ROOT | |
183 | ||
c5b3782d | 184 | %post -p /sbin/ldconfig |
c7083593 JR |
185 | %postun -p /sbin/ldconfig |
186 | ||
01483858 | 187 | %files -f %{name}.lang |
80ded214 | 188 | %defattr(644,root,root,755) |
636af8bd | 189 | %doc README doc/{CHANGES,CREDITS} |
0c1d4bf9 JB |
190 | %attr(755,root,root) %{_sbindir}/fsck.xfs |
191 | %attr(755,root,root) %{_sbindir}/mkfs.xfs | |
192 | %attr(755,root,root) %{_sbindir}/xfs_repair | |
193 | %attr(755,root,root) %{_bindir}/xfs_* | |
9656c3b9 ER |
194 | %attr(755,root,root) %{_libdir}/libdisk.so.*.* |
195 | %attr(755,root,root) %{_libdir}/libhandle.so.*.* | |
423c4374 | 196 | %attr(755,root,root) %{_libdir}/libxcmd.so.*.* |
9656c3b9 ER |
197 | %attr(755,root,root) %{_libdir}/libxfs.so.*.* |
198 | %attr(755,root,root) %{_libdir}/libxlog.so.*.* | |
199 | %attr(755,root,root) %ghost %{_libdir}/libdisk.so.0 | |
200 | %attr(755,root,root) %ghost %{_libdir}/libhandle.so.1 | |
423c4374 | 201 | %attr(755,root,root) %ghost %{_libdir}/libxcmd.so.0 |
9656c3b9 ER |
202 | %attr(755,root,root) %ghost %{_libdir}/libxfs.so.0 |
203 | %attr(755,root,root) %ghost %{_libdir}/libxlog.so.0 | |
0c1d4bf9 JB |
204 | %{_mandir}/man5/xfs.5* |
205 | %{_mandir}/man8/fsck.xfs.8* | |
206 | %{_mandir}/man8/mkfs.xfs.8* | |
207 | %{_mandir}/man8/xfs_*.8* | |
80ded214 AM |
208 | |
209 | %files devel | |
210 | %defattr(644,root,root,755) | |
0c1d4bf9 JB |
211 | %attr(755,root,root) %{_libexecdir}/libdisk.so |
212 | %attr(755,root,root) %{_libexecdir}/libhandle.so | |
213 | %attr(755,root,root) %{_libexecdir}/libxcmd.so | |
214 | %attr(755,root,root) %{_libexecdir}/libxfs.so | |
215 | %attr(755,root,root) %{_libexecdir}/libxlog.so | |
216 | %{_libexecdir}/libdisk.la | |
217 | %{_libexecdir}/libhandle.la | |
218 | %{_libexecdir}/libxcmd.la | |
219 | %{_libexecdir}/libxfs.la | |
220 | %{_libexecdir}/libxlog.la | |
353bc53d | 221 | %{_includedir}/xfs |
0c1d4bf9 JB |
222 | %{_mandir}/man3/*handle.3* |
223 | %{_mandir}/man3/xfsctl.3* | |
1c0f6863 | 224 | |
225 | %files static | |
226 | %defattr(644,root,root,755) | |
0c1d4bf9 JB |
227 | %{_libexecdir}/libdisk.a |
228 | %{_libexecdir}/libhandle.a | |
229 | %{_libexecdir}/libxcmd.a | |
230 | %{_libexecdir}/libxfs.a | |
231 | %{_libexecdir}/libxlog.a |