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