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