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