]>
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 |
0787bd81 AM |
8 | Version: 3.2.0 |
9 | Release: 1 | |
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 |
0787bd81 | 13 | # Source0-md5: 400047b2f6af87c0345b8f0cc00c13db |
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 | |
0787bd81 | 19 | |
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} | |
b087bbdd | 51 | |
80ded214 AM |
52 | %description |
53 | A set of commands to use the XFS filesystem, including mkfs.xfs. | |
54 | ||
55 | XFS is a high performance journaling filesystem which originated on | |
56 | the SGI IRIX platform. It is completely multi-threaded, can support | |
57 | large files and large filesystems, extended attributes, variable block | |
58 | sizes, is extent based, and makes extensive use of Btrees | |
59 | (directories, extents, free space) to aid both performance and | |
60 | scalability. | |
61 | ||
62 | This implementation is on-disk compatible with the IRIX version of | |
63 | XFS. | |
64 | ||
ddc220a9 JR |
65 | %description -l pl.UTF-8 |
66 | Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs. | |
80ded214 | 67 | |
ddc220a9 JR |
68 | XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie |
69 | był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy, | |
70 | obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych | |
71 | atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący | |
72 | B-drzewa by uzyskać wysoką wydajność oraz skalowalność. | |
80ded214 AM |
73 | |
74 | %package devel | |
75 | Summary: Header files and libraries to develop XFS software | |
809af116 | 76 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki |
80ded214 | 77 | Group: Development/Libraries |
8b4647b2 | 78 | Requires: %{name} = %{version}-%{release} |
2528905a | 79 | Requires: libuuid-devel |
80ded214 AM |
80 | |
81 | %description devel | |
82 | Header files and libraries to develop software which operates on XFS | |
83 | filesystems. | |
84 | ||
ddc220a9 JR |
85 | %description devel -l pl.UTF-8 |
86 | Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania | |
87 | operującego na systemie plików XFS. | |
80ded214 | 88 | |
1c0f6863 | 89 | %package static |
90 | Summary: Static XFS software libraries | |
809af116 | 91 | Summary(pl.UTF-8): Biblioteki statyczne do XFS |
1c0f6863 | 92 | Group: Development/Libraries |
8b4647b2 | 93 | Requires: %{name}-devel = %{version}-%{release} |
1c0f6863 | 94 | |
95 | %description static | |
96 | Static XFS software libraries. | |
97 | ||
ddc220a9 | 98 | %description static -l pl.UTF-8 |
1c0f6863 | 99 | Biblioteki statyczne do XFS. |
100 | ||
80ded214 | 101 | %prep |
600886d5 | 102 | %setup -q |
80ded214 | 103 | %patch0 -p1 |
6ad71900 | 104 | %patch2 -p1 |
f8e91040 | 105 | %patch3 -p1 |
df004a70 | 106 | %patch4 -p1 |
0787bd81 | 107 | |
4e757d0a | 108 | %{?with_tcmalloc:%patch6 -p1} |
9988f6a4 | 109 | %patch7 -p1 |
4ede93fd | 110 | |
80ded214 | 111 | %build |
ff9c0a4e | 112 | %{__aclocal} -I m4 |
551b0d1f | 113 | %{__autoconf} |
1c0f6863 | 114 | %configure \ |
a084b099 | 115 | --sbindir=%{_bindir}\ |
4ede93fd AM |
116 | --enable-gettext \ |
117 | --enable-readline \ | |
528ce8b7 | 118 | --enable-blkid \ |
0c1d4bf9 | 119 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ |
4ede93fd | 120 | OPTIMIZER="%{rpmcflags}" |
00d1530a | 121 | |
03dcab3f JB |
122 | %{__make} -j1 \ |
123 | V=1 | |
80ded214 AM |
124 | |
125 | %install | |
126 | rm -rf $RPM_BUILD_ROOT | |
0efa133e | 127 | install -d $RPM_BUILD_ROOT{%{_libexecdir},/etc} |
df004a70 | 128 | |
9656c3b9 ER |
129 | DIST_ROOT=$RPM_BUILD_ROOT |
130 | DIST_INSTALL=$(pwd)/install.manifest | |
131 | DIST_INSTALL_DEV=$(pwd)/install-dev.manifest | |
59aa30e8 | 132 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV |
ff9c0a4e JB |
133 | |
134 | %{__make} install \ | |
135 | DIST_MANIFEST="$DIST_INSTALL" | |
136 | %{__make} install-dev \ | |
137 | DIST_MANIFEST="$DIST_INSTALL_DEV" | |
80ded214 | 138 | |
a32e9a39 AM |
139 | install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xfs_lsprojid |
140 | ||
9656c3b9 | 141 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libhandle.so.*.*.*) \ |
ff9c0a4e | 142 | $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so |
0c1d4bf9 JB |
143 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxcmd.so.*.*.*) \ |
144 | $RPM_BUILD_ROOT%{_libexecdir}/libxcmd.so | |
9656c3b9 | 145 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxfs.so.*.*.*) \ |
ff9c0a4e | 146 | $RPM_BUILD_ROOT%{_libexecdir}/libxfs.so |
9656c3b9 | 147 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxlog.so.*.*.*) \ |
ff9c0a4e | 148 | $RPM_BUILD_ROOT%{_libexecdir}/libxlog.so |
cb190f67 | 149 | |
51a52578 AM |
150 | mv $RPM_BUILD_ROOT%{_libdir}/lib*.la $RPM_BUILD_ROOT%{_libexecdir} |
151 | mv $RPM_BUILD_ROOT%{_libdir}/lib*.a $RPM_BUILD_ROOT%{_libexecdir} | |
152 | ||
4ede93fd | 153 | %{__sed} -i -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ |
51a52578 | 154 | $RPM_BUILD_ROOT%{_libexecdir}/lib{handle,xcmd,xfs,xlog}.la |
b13dd065 AM |
155 | %{__sed} -i -e "s| %{_libdir}/libxfs.la | %{_libexecdir}/libxfs.la |" \ |
156 | $RPM_BUILD_ROOT%{_libexecdir}/libxlog.la | |
b756248b | 157 | |
6e781c10 PG |
158 | echo "#10:/mnt/ftp/roman" >> $RPM_BUILD_ROOT/etc/projects |
159 | echo "#ftproman:10" >> $RPM_BUILD_ROOT/etc/projid | |
160 | ||
01483858 JB |
161 | %find_lang %{name} |
162 | ||
03dcab3f | 163 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
5e040522 | 164 | |
9656c3b9 | 165 | # already in /usr |
03dcab3f | 166 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{handle,xcmd,xfs,xlog}.so |
9656c3b9 | 167 | |
80ded214 AM |
168 | %clean |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
c5b3782d | 171 | %post -p /sbin/ldconfig |
c7083593 JR |
172 | %postun -p /sbin/ldconfig |
173 | ||
01483858 | 174 | %files -f %{name}.lang |
80ded214 | 175 | %defattr(644,root,root,755) |
636af8bd | 176 | %doc README doc/{CHANGES,CREDITS} |
6e781c10 PG |
177 | %config(noreplace) %verify(not md5 mtime size) /etc/projects |
178 | %config(noreplace) %verify(not md5 mtime size) /etc/projid | |
0c1d4bf9 JB |
179 | %attr(755,root,root) %{_sbindir}/fsck.xfs |
180 | %attr(755,root,root) %{_sbindir}/mkfs.xfs | |
181 | %attr(755,root,root) %{_sbindir}/xfs_repair | |
182 | %attr(755,root,root) %{_bindir}/xfs_* | |
9656c3b9 | 183 | %attr(755,root,root) %{_libdir}/libhandle.so.*.* |
423c4374 | 184 | %attr(755,root,root) %{_libdir}/libxcmd.so.*.* |
9656c3b9 ER |
185 | %attr(755,root,root) %{_libdir}/libxfs.so.*.* |
186 | %attr(755,root,root) %{_libdir}/libxlog.so.*.* | |
9656c3b9 | 187 | %attr(755,root,root) %ghost %{_libdir}/libhandle.so.1 |
423c4374 | 188 | %attr(755,root,root) %ghost %{_libdir}/libxcmd.so.0 |
9656c3b9 ER |
189 | %attr(755,root,root) %ghost %{_libdir}/libxfs.so.0 |
190 | %attr(755,root,root) %ghost %{_libdir}/libxlog.so.0 | |
275db5b4 AM |
191 | %{_mandir}/man5/projects.5* |
192 | %{_mandir}/man5/projid.5* | |
0c1d4bf9 JB |
193 | %{_mandir}/man5/xfs.5* |
194 | %{_mandir}/man8/fsck.xfs.8* | |
195 | %{_mandir}/man8/mkfs.xfs.8* | |
196 | %{_mandir}/man8/xfs_*.8* | |
80ded214 AM |
197 | |
198 | %files devel | |
199 | %defattr(644,root,root,755) | |
0c1d4bf9 JB |
200 | %attr(755,root,root) %{_libexecdir}/libhandle.so |
201 | %attr(755,root,root) %{_libexecdir}/libxcmd.so | |
202 | %attr(755,root,root) %{_libexecdir}/libxfs.so | |
203 | %attr(755,root,root) %{_libexecdir}/libxlog.so | |
0c1d4bf9 JB |
204 | %{_libexecdir}/libhandle.la |
205 | %{_libexecdir}/libxcmd.la | |
206 | %{_libexecdir}/libxfs.la | |
207 | %{_libexecdir}/libxlog.la | |
353bc53d | 208 | %{_includedir}/xfs |
0c1d4bf9 JB |
209 | %{_mandir}/man3/*handle.3* |
210 | %{_mandir}/man3/xfsctl.3* | |
1c0f6863 | 211 | |
212 | %files static | |
213 | %defattr(644,root,root,755) | |
0c1d4bf9 JB |
214 | %{_libexecdir}/libhandle.a |
215 | %{_libexecdir}/libxcmd.a | |
216 | %{_libexecdir}/libxfs.a | |
217 | %{_libexecdir}/libxlog.a |