]>
Commit | Line | Data |
---|---|---|
bcc8f09e JB |
1 | # |
2 | # Conditional build: | |
83f8c239 AM |
3 | %bcond_without debug_asserts |
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 |
130616c9 | 8 | Version: 5.6.0 |
e7ecd7c8 | 9 | Release: 1 |
636af8bd | 10 | License: LGPL v2.1 (libhandle), GPL v2 (the rest) |
80ded214 | 11 | Group: Applications/System |
bcc8f09e | 12 | Source0: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.gz |
130616c9 | 13 | # Source0-md5: a03171a50d3e86f568503940e220ff9d |
a32e9a39 | 14 | Source1: xfs_lsprojid |
bc92c0b0 | 15 | Patch0: %{name}-miscfix-v2.patch |
8e06f9de | 16 | Patch1: %{name}-pl.po-update.patch |
36af361b | 17 | # Patch1-md5: 7dc2a7030f234078bc0c667ad6e833ad |
964bc873 | 18 | URL: https://xfs.wiki.kernel.org/ |
058705df JB |
19 | # for <attr/attributes.h> |
20 | BuildRequires: attr-devel | |
1faeb583 | 21 | BuildRequires: autoconf >= 2.50 |
1c0f6863 | 22 | BuildRequires: automake |
cb58e4a3 | 23 | BuildRequires: bash |
1467f630 | 24 | BuildRequires: device-mapper-devel |
7fb2d2e7 | 25 | BuildRequires: gettext-tools |
7f3b3fd0 | 26 | BuildRequires: glibc-static |
51a52578 | 27 | BuildRequires: libblkid-devel |
1467f630 | 28 | BuildRequires: libicu-devel |
92a53cbb | 29 | BuildRequires: libtool |
a5769371 | 30 | BuildRequires: libuuid-devel |
7f3b3fd0 | 31 | BuildRequires: libuuid-static |
99229502 | 32 | BuildRequires: readline-devel |
dec839eb | 33 | BuildRequires: rpm >= 4.4.9-56 |
9656c3b9 | 34 | BuildRequires: rpmbuild(macros) >= 1.402 |
3eb6b74a | 35 | BuildRequires: sed >= 4.0 |
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 | ||
80ded214 AM |
44 | %description |
45 | A set of commands to use the XFS filesystem, including mkfs.xfs. | |
46 | ||
47 | XFS is a high performance journaling filesystem which originated on | |
48 | the SGI IRIX platform. It is completely multi-threaded, can support | |
49 | large files and large filesystems, extended attributes, variable block | |
50 | sizes, is extent based, and makes extensive use of Btrees | |
51 | (directories, extents, free space) to aid both performance and | |
52 | scalability. | |
53 | ||
54 | This implementation is on-disk compatible with the IRIX version of | |
55 | XFS. | |
56 | ||
ddc220a9 JR |
57 | %description -l pl.UTF-8 |
58 | Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs. | |
80ded214 | 59 | |
ddc220a9 JR |
60 | XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie |
61 | był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy, | |
62 | obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych | |
63 | atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący | |
64 | B-drzewa by uzyskać wysoką wydajność oraz skalowalność. | |
80ded214 | 65 | |
3eb6b74a JB |
66 | %package scrub |
67 | Summary: xfs_scrub - XFS online check and repair feature (EXPERIMENTAL!) | |
68 | Summary(pl.UTF-8): xfs_scrub - sprawdzanie i naprawianie zamontowanego systemu plików XFS (EKSPERYMENTALNE!) | |
69 | Group: Applications/System | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | Requires: systemd-units >= 38 | |
72 | ||
73 | %description scrub | |
74 | xfs_scrub is an XFS online check and repair feature. | |
75 | ||
76 | WARNING: EXPERIMENTAL, use at your own risk! | |
77 | ||
78 | %description scrub -l pl.UTF-8 | |
79 | xfs_scrub służy do sprawdzania i naprawiania zamontowanego systmeu | |
80 | plików XFS w locie. | |
81 | ||
82 | UWAGA: EXPERIMENTALNE, użycie na własne ryzyko! | |
83 | ||
80ded214 AM |
84 | %package devel |
85 | Summary: Header files and libraries to develop XFS software | |
809af116 | 86 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki |
80ded214 | 87 | Group: Development/Libraries |
8b4647b2 | 88 | Requires: %{name} = %{version}-%{release} |
2528905a | 89 | Requires: libuuid-devel |
80ded214 AM |
90 | |
91 | %description devel | |
92 | Header files and libraries to develop software which operates on XFS | |
93 | filesystems. | |
94 | ||
ddc220a9 JR |
95 | %description devel -l pl.UTF-8 |
96 | Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania | |
97 | operującego na systemie plików XFS. | |
80ded214 | 98 | |
1c0f6863 | 99 | %package static |
100 | Summary: Static XFS software libraries | |
809af116 | 101 | Summary(pl.UTF-8): Biblioteki statyczne do XFS |
1c0f6863 | 102 | Group: Development/Libraries |
8b4647b2 | 103 | Requires: %{name}-devel = %{version}-%{release} |
1c0f6863 | 104 | |
105 | %description static | |
106 | Static XFS software libraries. | |
107 | ||
ddc220a9 | 108 | %description static -l pl.UTF-8 |
1c0f6863 | 109 | Biblioteki statyczne do XFS. |
110 | ||
80ded214 | 111 | %prep |
600886d5 | 112 | %setup -q |
80ded214 | 113 | %patch0 -p1 |
36af361b | 114 | %patch1 -p1 |
4ede93fd | 115 | |
3eb6b74a JB |
116 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' scrub/xfs_scrub_all.in tools/xfsbuflock.py |
117 | ||
80ded214 | 118 | %build |
ff9c0a4e | 119 | %{__aclocal} -I m4 |
551b0d1f | 120 | %{__autoconf} |
1c0f6863 | 121 | %configure \ |
83f8c239 | 122 | DEBUG="%{?with_debug_asserts:-DDEBUG}%{!?with_debug_asserts:-DNDEBUG}" \ |
8745a86f | 123 | OPTIMIZER="%{rpmcflags}" \ |
1467f630 | 124 | --enable-libicu=yes \ |
eccf9a45 | 125 | --enable-lto=no \ |
8745a86f JB |
126 | --enable-blkid \ |
127 | --enable-gettext \ | |
1467f630 AM |
128 | --enable-readline \ |
129 | --enable-scrub=yes | |
00d1530a | 130 | |
03dcab3f JB |
131 | %{__make} -j1 \ |
132 | V=1 | |
80ded214 AM |
133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
8745a86f | 136 | install -d $RPM_BUILD_ROOT/etc/cron.d |
df004a70 | 137 | |
9656c3b9 ER |
138 | DIST_ROOT=$RPM_BUILD_ROOT |
139 | DIST_INSTALL=$(pwd)/install.manifest | |
140 | DIST_INSTALL_DEV=$(pwd)/install-dev.manifest | |
59aa30e8 | 141 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV |
ff9c0a4e JB |
142 | |
143 | %{__make} install \ | |
144 | DIST_MANIFEST="$DIST_INSTALL" | |
145 | %{__make} install-dev \ | |
146 | DIST_MANIFEST="$DIST_INSTALL_DEV" | |
80ded214 | 147 | |
8745a86f | 148 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/xfs_lsprojid |
cb190f67 | 149 | |
8745a86f JB |
150 | # adjust symlink to point to actual library, not libhandle.so symlink, which we remove afterwards |
151 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libhandle.so.*.*.*) \ | |
152 | $RPM_BUILD_ROOT%{_libdir}/libhandle.so | |
153 | # adjust library path used at link time | |
154 | %{__sed} -i -e "s|libdir='/%{_lib}'|libdir='%{_libdir}'|" \ | |
155 | $RPM_BUILD_ROOT%{_libdir}/libhandle.la | |
156 | # already in /usr | |
157 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/libhandle.{so,la,a} | |
51a52578 | 158 | |
8745a86f JB |
159 | # install cron file |
160 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{name}/xfs_scrub_all.cron,/etc/cron.d/xfs_scrub_all} | |
b756248b | 161 | |
8745a86f | 162 | # (config file paths are specified in libfrog/projects.c) |
6e781c10 PG |
163 | echo "#10:/mnt/ftp/roman" >> $RPM_BUILD_ROOT/etc/projects |
164 | echo "#ftproman:10" >> $RPM_BUILD_ROOT/etc/projid | |
165 | ||
03dcab3f | 166 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
5e040522 | 167 | |
8745a86f | 168 | %find_lang %{name} |
28e86fdc | 169 | |
80ded214 AM |
170 | %clean |
171 | rm -rf $RPM_BUILD_ROOT | |
172 | ||
3eb6b74a | 173 | %post -p /sbin/ldconfig |
c7083593 JR |
174 | %postun -p /sbin/ldconfig |
175 | ||
3eb6b74a JB |
176 | %post scrub |
177 | %systemd_reload | |
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 | |
8745a86f JB |
184 | %attr(755,root,root) /sbin/fsck.xfs |
185 | %attr(755,root,root) /sbin/mkfs.xfs | |
8745a86f JB |
186 | %attr(755,root,root) /sbin/xfs_repair |
187 | %attr(755,root,root) %{_sbindir}/xfs_* | |
1467f630 | 188 | %exclude %{_sbindir}/xfs_scrub* |
8745a86f JB |
189 | %attr(755,root,root) /%{_lib}/libhandle.so.*.* |
190 | %attr(755,root,root) %ghost /%{_lib}/libhandle.so.1 | |
28e86fdc AM |
191 | %dir %{_libdir}/%{name} |
192 | %attr(755,root,root) %{_libdir}/%{name}/xfs_scrub_fail | |
275db5b4 AM |
193 | %{_mandir}/man5/projects.5* |
194 | %{_mandir}/man5/projid.5* | |
0c1d4bf9 JB |
195 | %{_mandir}/man5/xfs.5* |
196 | %{_mandir}/man8/fsck.xfs.8* | |
197 | %{_mandir}/man8/mkfs.xfs.8* | |
198 | %{_mandir}/man8/xfs_*.8* | |
3eb6b74a JB |
199 | %exclude %{_mandir}/man8/xfs_scrub*.8* |
200 | ||
201 | %files scrub | |
202 | %defattr(644,root,root,755) | |
1467f630 AM |
203 | %attr(755,root,root) %{_sbindir}/xfs_scrub |
204 | %attr(755,root,root) %{_sbindir}/xfs_scrub_all | |
3eb6b74a JB |
205 | %{systemdunitdir}/xfs_scrub@.service |
206 | %{systemdunitdir}/xfs_scrub_all.service | |
207 | %{systemdunitdir}/xfs_scrub_all.timer | |
208 | %{systemdunitdir}/xfs_scrub_fail@.service | |
209 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/xfs_scrub_all | |
210 | %{_mandir}/man8/xfs_scrub.8* | |
211 | %{_mandir}/man8/xfs_scrub_all.8* | |
80ded214 AM |
212 | |
213 | %files devel | |
214 | %defattr(644,root,root,755) | |
8745a86f JB |
215 | %attr(755,root,root) %{_libdir}/libhandle.so |
216 | %{_libdir}/libhandle.la | |
353bc53d | 217 | %{_includedir}/xfs |
e7ecd7c8 AM |
218 | %{_mandir}/man2/ioctl_xfs_ag_geometry.2* |
219 | %{_mandir}/man2/ioctl_xfs_bulkstat.2* | |
851787e1 AM |
220 | %{_mandir}/man2/ioctl_xfs_fsbulkstat.2* |
221 | %{_mandir}/man2/ioctl_xfs_fscounts.2* | |
222 | %{_mandir}/man2/ioctl_xfs_fsgetxattr.2* | |
223 | %{_mandir}/man2/ioctl_xfs_fsinumbers.2* | |
224 | %{_mandir}/man2/ioctl_xfs_fsop_geometry.2* | |
225 | %{_mandir}/man2/ioctl_xfs_getbmapx.2* | |
226 | %{_mandir}/man2/ioctl_xfs_getresblks.2* | |
227 | %{_mandir}/man2/ioctl_xfs_goingdown.2* | |
e7ecd7c8 | 228 | %{_mandir}/man2/ioctl_xfs_inumbers.2* |
28e86fdc | 229 | %{_mandir}/man2/ioctl_xfs_scrub_metadata.2* |
0c1d4bf9 JB |
230 | %{_mandir}/man3/*handle.3* |
231 | %{_mandir}/man3/xfsctl.3* | |
1c0f6863 | 232 | |
233 | %files static | |
234 | %defattr(644,root,root,755) | |
8745a86f | 235 | %{_libdir}/libhandle.a |