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