]>
Commit | Line | Data |
---|---|---|
80ded214 | 1 | Summary: Tools for the XFS filesystem |
809af116 | 2 | Summary(pl.UTF-8): Narzędzia do systemu plików XFS |
80ded214 | 3 | Name: xfsprogs |
b0864d3d | 4 | Version: 2.10.2 |
12fca0b2 | 5 | Release: 2 |
636af8bd | 6 | License: LGPL v2.1 (libhandle), GPL v2 (the rest) |
80ded214 | 7 | Group: Applications/System |
b2ae20e5 | 8 | Source0: ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}_%{version}-1.tar.gz |
12fca0b2 | 9 | # Source0-md5: 0a696c6362b39c12bb59c08afd4c5827 |
bc92c0b0 | 10 | Patch0: %{name}-miscfix-v2.patch |
cb58e4a3 | 11 | Patch1: %{name}-install-sh.patch |
6ad71900 | 12 | Patch2: %{name}-sharedlibs.patch |
21a3d2af JB |
13 | Patch3: %{name}-pl.po-update.patch |
14 | Patch4: %{name}-dynamic_exe.patch | |
2528905a | 15 | Patch5: %{name}-LDFLAGS.patch |
7bc0b880 | 16 | Patch6: %{name}-libtool.patch |
353bc53d | 17 | Patch7: %{name}-gettext.patch |
cc4264bb | 18 | Patch8: %{name}-quota-exitstatus.patch |
ff9c0a4e | 19 | URL: http://oss.sgi.com/projects/xfs/ |
80ded214 | 20 | BuildRequires: autoconf |
1c0f6863 | 21 | BuildRequires: automake |
cb58e4a3 | 22 | BuildRequires: bash |
8c56223e | 23 | BuildRequires: gettext-devel |
92a53cbb | 24 | BuildRequires: libtool |
a5769371 | 25 | BuildRequires: libuuid-devel |
9656c3b9 | 26 | BuildRequires: rpmbuild(macros) >= 1.402 |
e243294d | 27 | Obsoletes: libxfs1 |
c826f244 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80ded214 | 29 | |
b087bbdd JR |
30 | %define _sbindir /sbin |
31 | %define _bindir /usr/sbin | |
a19d7677 JK |
32 | %define _libdir /%{_lib} |
33 | %define _libexecdir /usr/%{_lib} | |
b087bbdd | 34 | |
80ded214 AM |
35 | %description |
36 | A set of commands to use the XFS filesystem, including mkfs.xfs. | |
37 | ||
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 | |
43 | scalability. | |
44 | ||
45 | This implementation is on-disk compatible with the IRIX version of | |
46 | XFS. | |
47 | ||
ddc220a9 JR |
48 | %description -l pl.UTF-8 |
49 | Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs. | |
80ded214 | 50 | |
ddc220a9 JR |
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ść. | |
80ded214 AM |
56 | |
57 | %package devel | |
58 | Summary: Header files and libraries to develop XFS software | |
809af116 | 59 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki |
80ded214 | 60 | Group: Development/Libraries |
8b4647b2 | 61 | Requires: %{name} = %{version}-%{release} |
2528905a | 62 | Requires: libuuid-devel |
e243294d | 63 | Obsoletes: libxfs1-devel |
80ded214 AM |
64 | |
65 | %description devel | |
66 | Header files and libraries to develop software which operates on XFS | |
67 | filesystems. | |
68 | ||
ddc220a9 JR |
69 | %description devel -l pl.UTF-8 |
70 | Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania | |
71 | operującego na systemie plików XFS. | |
80ded214 | 72 | |
1c0f6863 | 73 | %package static |
74 | Summary: Static XFS software libraries | |
809af116 | 75 | Summary(pl.UTF-8): Biblioteki statyczne do XFS |
1c0f6863 | 76 | Group: Development/Libraries |
8b4647b2 | 77 | Requires: %{name}-devel = %{version}-%{release} |
1c0f6863 | 78 | |
79 | %description static | |
80 | Static XFS software libraries. | |
81 | ||
ddc220a9 | 82 | %description static -l pl.UTF-8 |
1c0f6863 | 83 | Biblioteki statyczne do XFS. |
84 | ||
80ded214 | 85 | %prep |
600886d5 | 86 | %setup -q |
80ded214 | 87 | %patch0 -p1 |
cb58e4a3 | 88 | %patch1 -p1 |
6ad71900 | 89 | %patch2 -p1 |
21a3d2af | 90 | %patch3 -p1 |
423c4374 | 91 | %patch4 -p1 |
2528905a | 92 | %patch5 -p1 |
7bc0b880 | 93 | %patch6 -p1 |
353bc53d | 94 | %patch7 -p1 |
cc4264bb | 95 | %patch8 -p1 |
80ded214 AM |
96 | |
97 | %build | |
ff9c0a4e | 98 | %{__aclocal} -I m4 |
551b0d1f | 99 | %{__autoconf} |
0c1d4bf9 JB |
100 | # (default) --enable-gettext sets ENABLE_GETTEXT make variable, but not C define |
101 | # CFLAGS are dropped, OPTIMIZER is propagated | |
1c0f6863 | 102 | %configure \ |
0c1d4bf9 JB |
103 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ |
104 | OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT" | |
9656c3b9 | 105 | %{__make} |
80ded214 AM |
106 | |
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
9656c3b9 ER |
110 | DIST_ROOT=$RPM_BUILD_ROOT |
111 | DIST_INSTALL=$(pwd)/install.manifest | |
112 | DIST_INSTALL_DEV=$(pwd)/install-dev.manifest | |
59aa30e8 | 113 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV |
ff9c0a4e JB |
114 | |
115 | %{__make} install \ | |
116 | DIST_MANIFEST="$DIST_INSTALL" | |
117 | %{__make} install-dev \ | |
118 | DIST_MANIFEST="$DIST_INSTALL_DEV" | |
80ded214 | 119 | |
9656c3b9 | 120 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libhandle.so.*.*.*) \ |
ff9c0a4e | 121 | $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so |
9656c3b9 | 122 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libdisk.so.*.*.*) \ |
ff9c0a4e | 123 | $RPM_BUILD_ROOT%{_libexecdir}/libdisk.so |
0c1d4bf9 JB |
124 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxcmd.so.*.*.*) \ |
125 | $RPM_BUILD_ROOT%{_libexecdir}/libxcmd.so | |
9656c3b9 | 126 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxfs.so.*.*.*) \ |
ff9c0a4e | 127 | $RPM_BUILD_ROOT%{_libexecdir}/libxfs.so |
9656c3b9 | 128 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxlog.so.*.*.*) \ |
ff9c0a4e | 129 | $RPM_BUILD_ROOT%{_libexecdir}/libxlog.so |
cb190f67 | 130 | |
b756248b | 131 | %{__sed} -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ |
0c1d4bf9 | 132 | $RPM_BUILD_ROOT%{_libexecdir}/lib{disk,handle,xcmd,xfs,xlog}.la |
b756248b | 133 | |
01483858 JB |
134 | %find_lang %{name} |
135 | ||
5e040522 ER |
136 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
137 | ||
9656c3b9 ER |
138 | # already in /usr |
139 | rm -f $RPM_BUILD_ROOT%{_libdir}/libdisk.{a,la,so} | |
140 | rm -f $RPM_BUILD_ROOT%{_libdir}/libhandle.{a,la,so} | |
0c1d4bf9 | 141 | rm -f $RPM_BUILD_ROOT%{_libdir}/libxcmd.{a,la,so} |
9656c3b9 | 142 | rm -f $RPM_BUILD_ROOT%{_libdir}/libxfs.{a,la,so} |
9656c3b9 ER |
143 | rm -f $RPM_BUILD_ROOT%{_libdir}/libxlog.{a,la,so} |
144 | ||
80ded214 AM |
145 | %clean |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
c5b3782d | 148 | %post -p /sbin/ldconfig |
c7083593 JR |
149 | %postun -p /sbin/ldconfig |
150 | ||
01483858 | 151 | %files -f %{name}.lang |
80ded214 | 152 | %defattr(644,root,root,755) |
636af8bd | 153 | %doc README doc/{CHANGES,CREDITS} |
0c1d4bf9 JB |
154 | %attr(755,root,root) %{_sbindir}/fsck.xfs |
155 | %attr(755,root,root) %{_sbindir}/mkfs.xfs | |
156 | %attr(755,root,root) %{_sbindir}/xfs_repair | |
157 | %attr(755,root,root) %{_bindir}/xfs_* | |
9656c3b9 ER |
158 | %attr(755,root,root) %{_libdir}/libdisk.so.*.* |
159 | %attr(755,root,root) %{_libdir}/libhandle.so.*.* | |
423c4374 | 160 | %attr(755,root,root) %{_libdir}/libxcmd.so.*.* |
9656c3b9 ER |
161 | %attr(755,root,root) %{_libdir}/libxfs.so.*.* |
162 | %attr(755,root,root) %{_libdir}/libxlog.so.*.* | |
163 | %attr(755,root,root) %ghost %{_libdir}/libdisk.so.0 | |
164 | %attr(755,root,root) %ghost %{_libdir}/libhandle.so.1 | |
423c4374 | 165 | %attr(755,root,root) %ghost %{_libdir}/libxcmd.so.0 |
9656c3b9 ER |
166 | %attr(755,root,root) %ghost %{_libdir}/libxfs.so.0 |
167 | %attr(755,root,root) %ghost %{_libdir}/libxlog.so.0 | |
0c1d4bf9 JB |
168 | %{_mandir}/man5/xfs.5* |
169 | %{_mandir}/man8/fsck.xfs.8* | |
170 | %{_mandir}/man8/mkfs.xfs.8* | |
171 | %{_mandir}/man8/xfs_*.8* | |
80ded214 AM |
172 | |
173 | %files devel | |
174 | %defattr(644,root,root,755) | |
0c1d4bf9 JB |
175 | %attr(755,root,root) %{_libexecdir}/libdisk.so |
176 | %attr(755,root,root) %{_libexecdir}/libhandle.so | |
177 | %attr(755,root,root) %{_libexecdir}/libxcmd.so | |
178 | %attr(755,root,root) %{_libexecdir}/libxfs.so | |
179 | %attr(755,root,root) %{_libexecdir}/libxlog.so | |
180 | %{_libexecdir}/libdisk.la | |
181 | %{_libexecdir}/libhandle.la | |
182 | %{_libexecdir}/libxcmd.la | |
183 | %{_libexecdir}/libxfs.la | |
184 | %{_libexecdir}/libxlog.la | |
353bc53d JB |
185 | %{_includedir}/disk |
186 | %{_includedir}/xfs | |
0c1d4bf9 JB |
187 | %{_mandir}/man3/*handle.3* |
188 | %{_mandir}/man3/xfsctl.3* | |
1c0f6863 | 189 | |
190 | %files static | |
191 | %defattr(644,root,root,755) | |
0c1d4bf9 JB |
192 | %{_libexecdir}/libdisk.a |
193 | %{_libexecdir}/libhandle.a | |
194 | %{_libexecdir}/libxcmd.a | |
195 | %{_libexecdir}/libxfs.a | |
196 | %{_libexecdir}/libxlog.a |