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