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