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