]>
Commit | Line | Data |
---|---|---|
00d1530a JR |
1 | # |
2 | # Conditional build: | |
4a867e5e | 3 | %bcond_without tcmalloc # don't use tcmalloc |
00d1530a | 4 | # |
80ded214 | 5 | Summary: Tools for the XFS filesystem |
809af116 | 6 | Summary(pl.UTF-8): Narzędzia do systemu plików XFS |
80ded214 | 7 | Name: xfsprogs |
c7b0cbaa | 8 | Version: 3.1.11 |
1d942191 | 9 | Release: 3 |
636af8bd | 10 | License: LGPL v2.1 (libhandle), GPL v2 (the rest) |
80ded214 | 11 | Group: Applications/System |
4ede93fd | 12 | Source0: ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz |
321991e9 | 13 | # Source0-md5: de9f1f45026c2f4e0776058d429ff4b6 |
a32e9a39 | 14 | Source1: xfs_lsprojid |
bc92c0b0 | 15 | Patch0: %{name}-miscfix-v2.patch |
6ad71900 | 16 | Patch2: %{name}-sharedlibs.patch |
21a3d2af JB |
17 | Patch3: %{name}-pl.po-update.patch |
18 | Patch4: %{name}-dynamic_exe.patch | |
528ce8b7 | 19 | Patch5: %{name}-diet.patch |
4e757d0a AM |
20 | Patch6: %{name}-repair-tcmalloc.patch |
21 | Patch7: %{name}-noquotasync.patch | |
1d942191 | 22 | Patch8: %{name}-sb.patch |
51a52578 | 23 | URL: http://www.xfs.org/ |
80ded214 | 24 | BuildRequires: autoconf |
1c0f6863 | 25 | BuildRequires: automake |
cb58e4a3 | 26 | BuildRequires: bash |
8c56223e | 27 | BuildRequires: gettext-devel |
51a52578 | 28 | BuildRequires: libblkid-devel |
4a867e5e | 29 | %{?with_tcmalloc:BuildRequires: libtcmalloc-devel} |
92a53cbb | 30 | BuildRequires: libtool |
a5769371 | 31 | BuildRequires: libuuid-devel |
99229502 | 32 | BuildRequires: readline-devel |
dec839eb | 33 | BuildRequires: rpm >= 4.4.9-56 |
9656c3b9 | 34 | BuildRequires: rpmbuild(macros) >= 1.402 |
727e5a6d | 35 | %{?with_tcmalloc:Requires: libtcmalloc >= 1.8.3-3} |
7c029ef7 | 36 | Obsoletes: xfsprogs-initrd |
c826f244 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80ded214 | 38 | |
dec839eb ER |
39 | %if "%{pld_release}" == "ac" |
40 | # libtool in ac doesn't do the reordering of args properly | |
41 | %define filterout_ld -Wl,--as-needed | |
42 | %endif | |
43 | ||
0a7d57d5 AM |
44 | # libxlog uses symbols from binary that links to libxlog |
45 | # libxcmd uses ("program") symbol from binary that links to libxcmd | |
46 | %define skip_post_check_so libxlog.so.0.0.0 libxcmd.so.0.0.0 | |
47 | ||
b087bbdd JR |
48 | %define _sbindir /sbin |
49 | %define _bindir /usr/sbin | |
a19d7677 JK |
50 | %define _libdir /%{_lib} |
51 | %define _libexecdir /usr/%{_lib} | |
4bf87b58 AF |
52 | # for some reason known only to rpm there must be "\\|" not "\|" here |
53 | %define dietarch %(echo %{_target_cpu} | sed -e 's/i.86\\|pentium.\\|athlon/i386/;s/amd64/x86_64/;s/armv.*/arm/') | |
54 | %define dietlibdir %{_prefix}/lib/dietlibc/lib-%{dietarch} | |
b087bbdd | 55 | |
80ded214 AM |
56 | %description |
57 | A set of commands to use the XFS filesystem, including mkfs.xfs. | |
58 | ||
59 | XFS is a high performance journaling filesystem which originated on | |
60 | the SGI IRIX platform. It is completely multi-threaded, can support | |
61 | large files and large filesystems, extended attributes, variable block | |
62 | sizes, is extent based, and makes extensive use of Btrees | |
63 | (directories, extents, free space) to aid both performance and | |
64 | scalability. | |
65 | ||
66 | This implementation is on-disk compatible with the IRIX version of | |
67 | XFS. | |
68 | ||
ddc220a9 JR |
69 | %description -l pl.UTF-8 |
70 | Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs. | |
80ded214 | 71 | |
ddc220a9 JR |
72 | XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie |
73 | był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy, | |
74 | obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych | |
75 | atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący | |
76 | B-drzewa by uzyskać wysoką wydajność oraz skalowalność. | |
80ded214 AM |
77 | |
78 | %package devel | |
79 | Summary: Header files and libraries to develop XFS software | |
809af116 | 80 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki |
80ded214 | 81 | Group: Development/Libraries |
8b4647b2 | 82 | Requires: %{name} = %{version}-%{release} |
2528905a | 83 | Requires: libuuid-devel |
80ded214 AM |
84 | |
85 | %description devel | |
86 | Header files and libraries to develop software which operates on XFS | |
87 | filesystems. | |
88 | ||
ddc220a9 JR |
89 | %description devel -l pl.UTF-8 |
90 | Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania | |
91 | operującego na systemie plików XFS. | |
80ded214 | 92 | |
1c0f6863 | 93 | %package static |
94 | Summary: Static XFS software libraries | |
809af116 | 95 | Summary(pl.UTF-8): Biblioteki statyczne do XFS |
1c0f6863 | 96 | Group: Development/Libraries |
8b4647b2 | 97 | Requires: %{name}-devel = %{version}-%{release} |
1c0f6863 | 98 | |
99 | %description static | |
100 | Static XFS software libraries. | |
101 | ||
ddc220a9 | 102 | %description static -l pl.UTF-8 |
1c0f6863 | 103 | Biblioteki statyczne do XFS. |
104 | ||
80ded214 | 105 | %prep |
600886d5 | 106 | %setup -q |
80ded214 | 107 | %patch0 -p1 |
6ad71900 | 108 | %patch2 -p1 |
f8e91040 | 109 | %patch3 -p1 |
df004a70 | 110 | %patch4 -p1 |
2528905a | 111 | %patch5 -p1 |
4e757d0a | 112 | %{?with_tcmalloc:%patch6 -p1} |
9988f6a4 | 113 | %patch7 -p1 |
1d942191 | 114 | %patch8 -p1 |
4ede93fd | 115 | |
80ded214 | 116 | %build |
ff9c0a4e | 117 | %{__aclocal} -I m4 |
551b0d1f | 118 | %{__autoconf} |
1c0f6863 | 119 | %configure \ |
a084b099 | 120 | --sbindir=%{_bindir}\ |
4ede93fd AM |
121 | --enable-gettext \ |
122 | --enable-readline \ | |
528ce8b7 | 123 | --enable-blkid \ |
0c1d4bf9 | 124 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ |
4ede93fd | 125 | OPTIMIZER="%{rpmcflags}" |
00d1530a | 126 | |
03dcab3f JB |
127 | %{__make} -j1 \ |
128 | V=1 | |
80ded214 AM |
129 | |
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
0efa133e | 132 | install -d $RPM_BUILD_ROOT{%{_libexecdir},/etc} |
df004a70 | 133 | |
9656c3b9 ER |
134 | DIST_ROOT=$RPM_BUILD_ROOT |
135 | DIST_INSTALL=$(pwd)/install.manifest | |
136 | DIST_INSTALL_DEV=$(pwd)/install-dev.manifest | |
59aa30e8 | 137 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV |
ff9c0a4e JB |
138 | |
139 | %{__make} install \ | |
140 | DIST_MANIFEST="$DIST_INSTALL" | |
141 | %{__make} install-dev \ | |
142 | DIST_MANIFEST="$DIST_INSTALL_DEV" | |
80ded214 | 143 | |
a32e9a39 AM |
144 | install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xfs_lsprojid |
145 | ||
9656c3b9 | 146 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libhandle.so.*.*.*) \ |
ff9c0a4e | 147 | $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so |
0c1d4bf9 JB |
148 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxcmd.so.*.*.*) \ |
149 | $RPM_BUILD_ROOT%{_libexecdir}/libxcmd.so | |
9656c3b9 | 150 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxfs.so.*.*.*) \ |
ff9c0a4e | 151 | $RPM_BUILD_ROOT%{_libexecdir}/libxfs.so |
9656c3b9 | 152 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxlog.so.*.*.*) \ |
ff9c0a4e | 153 | $RPM_BUILD_ROOT%{_libexecdir}/libxlog.so |
cb190f67 | 154 | |
51a52578 AM |
155 | mv $RPM_BUILD_ROOT%{_libdir}/lib*.la $RPM_BUILD_ROOT%{_libexecdir} |
156 | mv $RPM_BUILD_ROOT%{_libdir}/lib*.a $RPM_BUILD_ROOT%{_libexecdir} | |
157 | ||
4ede93fd | 158 | %{__sed} -i -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ |
51a52578 | 159 | $RPM_BUILD_ROOT%{_libexecdir}/lib{handle,xcmd,xfs,xlog}.la |
b13dd065 AM |
160 | %{__sed} -i -e "s| %{_libdir}/libxfs.la | %{_libexecdir}/libxfs.la |" \ |
161 | $RPM_BUILD_ROOT%{_libexecdir}/libxlog.la | |
b756248b | 162 | |
6e781c10 PG |
163 | echo "#10:/mnt/ftp/roman" >> $RPM_BUILD_ROOT/etc/projects |
164 | echo "#ftproman:10" >> $RPM_BUILD_ROOT/etc/projid | |
165 | ||
01483858 JB |
166 | %find_lang %{name} |
167 | ||
03dcab3f | 168 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
5e040522 | 169 | |
9656c3b9 | 170 | # already in /usr |
03dcab3f | 171 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{handle,xcmd,xfs,xlog}.so |
9656c3b9 | 172 | |
80ded214 AM |
173 | %clean |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
c5b3782d | 176 | %post -p /sbin/ldconfig |
c7083593 JR |
177 | %postun -p /sbin/ldconfig |
178 | ||
01483858 | 179 | %files -f %{name}.lang |
80ded214 | 180 | %defattr(644,root,root,755) |
636af8bd | 181 | %doc README doc/{CHANGES,CREDITS} |
6e781c10 PG |
182 | %config(noreplace) %verify(not md5 mtime size) /etc/projects |
183 | %config(noreplace) %verify(not md5 mtime size) /etc/projid | |
0c1d4bf9 JB |
184 | %attr(755,root,root) %{_sbindir}/fsck.xfs |
185 | %attr(755,root,root) %{_sbindir}/mkfs.xfs | |
186 | %attr(755,root,root) %{_sbindir}/xfs_repair | |
187 | %attr(755,root,root) %{_bindir}/xfs_* | |
9656c3b9 | 188 | %attr(755,root,root) %{_libdir}/libhandle.so.*.* |
423c4374 | 189 | %attr(755,root,root) %{_libdir}/libxcmd.so.*.* |
9656c3b9 ER |
190 | %attr(755,root,root) %{_libdir}/libxfs.so.*.* |
191 | %attr(755,root,root) %{_libdir}/libxlog.so.*.* | |
9656c3b9 | 192 | %attr(755,root,root) %ghost %{_libdir}/libhandle.so.1 |
423c4374 | 193 | %attr(755,root,root) %ghost %{_libdir}/libxcmd.so.0 |
9656c3b9 ER |
194 | %attr(755,root,root) %ghost %{_libdir}/libxfs.so.0 |
195 | %attr(755,root,root) %ghost %{_libdir}/libxlog.so.0 | |
275db5b4 AM |
196 | %{_mandir}/man5/projects.5* |
197 | %{_mandir}/man5/projid.5* | |
0c1d4bf9 JB |
198 | %{_mandir}/man5/xfs.5* |
199 | %{_mandir}/man8/fsck.xfs.8* | |
200 | %{_mandir}/man8/mkfs.xfs.8* | |
201 | %{_mandir}/man8/xfs_*.8* | |
80ded214 AM |
202 | |
203 | %files devel | |
204 | %defattr(644,root,root,755) | |
0c1d4bf9 JB |
205 | %attr(755,root,root) %{_libexecdir}/libhandle.so |
206 | %attr(755,root,root) %{_libexecdir}/libxcmd.so | |
207 | %attr(755,root,root) %{_libexecdir}/libxfs.so | |
208 | %attr(755,root,root) %{_libexecdir}/libxlog.so | |
0c1d4bf9 JB |
209 | %{_libexecdir}/libhandle.la |
210 | %{_libexecdir}/libxcmd.la | |
211 | %{_libexecdir}/libxfs.la | |
212 | %{_libexecdir}/libxlog.la | |
353bc53d | 213 | %{_includedir}/xfs |
0c1d4bf9 JB |
214 | %{_mandir}/man3/*handle.3* |
215 | %{_mandir}/man3/xfsctl.3* | |
1c0f6863 | 216 | |
217 | %files static | |
218 | %defattr(644,root,root,755) | |
0c1d4bf9 JB |
219 | %{_libexecdir}/libhandle.a |
220 | %{_libexecdir}/libxcmd.a | |
221 | %{_libexecdir}/libxfs.a | |
222 | %{_libexecdir}/libxlog.a |