]> git.pld-linux.org Git - packages/xfsprogs.git/blame - xfsprogs.spec
- up to 4.20.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
1467f630
AM
8Version: 4.20.0
9Release: 1
636af8bd 10License: LGPL v2.1 (libhandle), GPL v2 (the rest)
80ded214 11Group: Applications/System
bcc8f09e 12Source0: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.gz
1467f630 13# Source0-md5: 449e475ff861a184606c7d1500de7fb6
a32e9a39 14Source1: xfs_lsprojid
bc92c0b0 15Patch0: %{name}-miscfix-v2.patch
8e06f9de 16Patch1: %{name}-pl.po-update.patch
bcc8f09e 17# Patch1-md5: 28832d2c0aefb92ec17ebfe924c156e3
1467f630 18Patch2: xfsprogs-small_fixes.patch
51a52578 19URL: http://www.xfs.org/
1faeb583 20BuildRequires: autoconf >= 2.50
1c0f6863 21BuildRequires: automake
cb58e4a3 22BuildRequires: bash
1467f630 23BuildRequires: device-mapper-devel
7fb2d2e7 24BuildRequires: gettext-tools
7f3b3fd0 25BuildRequires: glibc-static
51a52578 26BuildRequires: libblkid-devel
1467f630 27BuildRequires: libicu-devel
92a53cbb 28BuildRequires: libtool
a5769371 29BuildRequires: libuuid-devel
7f3b3fd0 30BuildRequires: libuuid-static
99229502 31BuildRequires: readline-devel
dec839eb 32BuildRequires: rpm >= 4.4.9-56
9656c3b9 33BuildRequires: rpmbuild(macros) >= 1.402
3eb6b74a 34BuildRequires: sed >= 4.0
7c029ef7 35Obsoletes: xfsprogs-initrd
c826f244 36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80ded214 37
dec839eb
ER
38%if "%{pld_release}" == "ac"
39# libtool in ac doesn't do the reordering of args properly
40%define filterout_ld -Wl,--as-needed
41%endif
42
80ded214
AM
43%description
44A set of commands to use the XFS filesystem, including mkfs.xfs.
45
46XFS is a high performance journaling filesystem which originated on
47the SGI IRIX platform. It is completely multi-threaded, can support
48large files and large filesystems, extended attributes, variable block
49sizes, is extent based, and makes extensive use of Btrees
50(directories, extents, free space) to aid both performance and
51scalability.
52
53This implementation is on-disk compatible with the IRIX version of
54XFS.
55
ddc220a9
JR
56%description -l pl.UTF-8
57Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs.
80ded214 58
ddc220a9
JR
59XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie
60był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy,
61obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych
62atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący
63B-drzewa by uzyskać wysoką wydajność oraz skalowalność.
80ded214 64
3eb6b74a
JB
65%package scrub
66Summary: xfs_scrub - XFS online check and repair feature (EXPERIMENTAL!)
67Summary(pl.UTF-8): xfs_scrub - sprawdzanie i naprawianie zamontowanego systemu plików XFS (EKSPERYMENTALNE!)
68Group: Applications/System
69Requires: %{name} = %{version}-%{release}
70Requires: systemd-units >= 38
71
72%description scrub
73xfs_scrub is an XFS online check and repair feature.
74
75WARNING: EXPERIMENTAL, use at your own risk!
76
77%description scrub -l pl.UTF-8
78xfs_scrub służy do sprawdzania i naprawiania zamontowanego systmeu
79plików XFS w locie.
80
81UWAGA: EXPERIMENTALNE, użycie na własne ryzyko!
82
80ded214
AM
83%package devel
84Summary: Header files and libraries to develop XFS software
809af116 85Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki
80ded214 86Group: Development/Libraries
8b4647b2 87Requires: %{name} = %{version}-%{release}
2528905a 88Requires: libuuid-devel
80ded214
AM
89
90%description devel
91Header files and libraries to develop software which operates on XFS
92filesystems.
93
ddc220a9
JR
94%description devel -l pl.UTF-8
95Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania
96operującego na systemie plików XFS.
80ded214 97
1c0f6863 98%package static
99Summary: Static XFS software libraries
809af116 100Summary(pl.UTF-8): Biblioteki statyczne do XFS
1c0f6863 101Group: Development/Libraries
8b4647b2 102Requires: %{name}-devel = %{version}-%{release}
1c0f6863 103
104%description static
105Static XFS software libraries.
106
ddc220a9 107%description static -l pl.UTF-8
1c0f6863 108Biblioteki statyczne do XFS.
109
80ded214 110%prep
600886d5 111%setup -q
80ded214 112%patch0 -p1
83b309da 113%patch1 -p1
eb18ee86 114%patch2 -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
135rm -rf $RPM_BUILD_ROOT
8745a86f 136install -d $RPM_BUILD_ROOT/etc/cron.d
df004a70 137
9656c3b9
ER
138DIST_ROOT=$RPM_BUILD_ROOT
139DIST_INSTALL=$(pwd)/install.manifest
140DIST_INSTALL_DEV=$(pwd)/install-dev.manifest
59aa30e8 141export 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 148install -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
151ln -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
163echo "#10:/mnt/ftp/roman" >> $RPM_BUILD_ROOT/etc/projects
164echo "#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
171rm -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
28e86fdc 218%{_mandir}/man2/ioctl_xfs_scrub_metadata.2*
0c1d4bf9
JB
219%{_mandir}/man3/*handle.3*
220%{_mandir}/man3/xfsctl.3*
1c0f6863 221
222%files static
223%defattr(644,root,root,755)
8745a86f 224%{_libdir}/libhandle.a
This page took 0.166748 seconds and 4 git commands to generate.