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