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