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