Summary: Tools for the XFS filesystem Summary(pl.UTF-8): Narzędzia do systemu plików XFS Name: xfsprogs Version: 4.17.0 Release: 1 License: LGPL v2.1 (libhandle), GPL v2 (the rest) Group: Applications/System Source0: https://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.gz # Source0-md5: fa7d6aee373dbfb722d17f15cc5ef52e Source1: xfs_lsprojid Patch0: %{name}-miscfix-v2.patch Patch1: %{name}-pl.po-update.patch URL: http://www.xfs.org/ BuildRequires: autoconf >= 2.50 BuildRequires: automake BuildRequires: bash BuildRequires: gettext-tools BuildRequires: glibc-static BuildRequires: libblkid-devel BuildRequires: libtool BuildRequires: libuuid-devel BuildRequires: libuuid-static BuildRequires: readline-devel BuildRequires: rpm >= 4.4.9-56 BuildRequires: rpmbuild(macros) >= 1.402 BuildRequires: sed >= 4.0 Obsoletes: xfsprogs-initrd BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %if "%{pld_release}" == "ac" # libtool in ac doesn't do the reordering of args properly %define filterout_ld -Wl,--as-needed %endif %description A set of commands to use the XFS filesystem, including mkfs.xfs. XFS is a high performance journaling filesystem which originated on the SGI IRIX platform. It is completely multi-threaded, can support large files and large filesystems, extended attributes, variable block sizes, is extent based, and makes extensive use of Btrees (directories, extents, free space) to aid both performance and scalability. This implementation is on-disk compatible with the IRIX version of XFS. %description -l pl.UTF-8 Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs. XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy, obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący B-drzewa by uzyskać wysoką wydajność oraz skalowalność. %package scrub Summary: xfs_scrub - XFS online check and repair feature (EXPERIMENTAL!) Summary(pl.UTF-8): xfs_scrub - sprawdzanie i naprawianie zamontowanego systemu plików XFS (EKSPERYMENTALNE!) Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: systemd-units >= 38 %description scrub xfs_scrub is an XFS online check and repair feature. WARNING: EXPERIMENTAL, use at your own risk! %description scrub -l pl.UTF-8 xfs_scrub służy do sprawdzania i naprawiania zamontowanego systmeu plików XFS w locie. UWAGA: EXPERIMENTALNE, użycie na własne ryzyko! %package devel Summary: Header files and libraries to develop XFS software Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: libuuid-devel %description devel Header files and libraries to develop software which operates on XFS filesystems. %description devel -l pl.UTF-8 Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania operującego na systemie plików XFS. %package static Summary: Static XFS software libraries Summary(pl.UTF-8): Biblioteki statyczne do XFS Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static XFS software libraries. %description static -l pl.UTF-8 Biblioteki statyczne do XFS. %prep %setup -q %patch0 -p1 #%patch1 -p1 -b .orig %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' scrub/xfs_scrub_all.in tools/xfsbuflock.py %build %{__aclocal} -I m4 %{__autoconf} %configure \ DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ OPTIMIZER="%{rpmcflags}" \ --enable-blkid \ --enable-gettext \ --enable-readline %{__make} -j1 \ V=1 %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/cron.d DIST_ROOT=$RPM_BUILD_ROOT DIST_INSTALL=$(pwd)/install.manifest DIST_INSTALL_DEV=$(pwd)/install-dev.manifest export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV %{__make} install \ DIST_MANIFEST="$DIST_INSTALL" %{__make} install-dev \ DIST_MANIFEST="$DIST_INSTALL_DEV" install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/xfs_lsprojid # adjust symlink to point to actual library, not libhandle.so symlink, which we remove afterwards ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libhandle.so.*.*.*) \ $RPM_BUILD_ROOT%{_libdir}/libhandle.so # adjust library path used at link time %{__sed} -i -e "s|libdir='/%{_lib}'|libdir='%{_libdir}'|" \ $RPM_BUILD_ROOT%{_libdir}/libhandle.la # already in /usr %{__rm} $RPM_BUILD_ROOT/%{_lib}/libhandle.{so,la,a} # install cron file %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{name}/xfs_scrub_all.cron,/etc/cron.d/xfs_scrub_all} # (config file paths are specified in libfrog/projects.c) echo "#10:/mnt/ftp/roman" >> $RPM_BUILD_ROOT/etc/projects echo "#ftproman:10" >> $RPM_BUILD_ROOT/etc/projid %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post scrub %systemd_reload %files -f %{name}.lang %defattr(644,root,root,755) %doc README doc/{CHANGES,CREDITS} %config(noreplace) %verify(not md5 mtime size) /etc/projects %config(noreplace) %verify(not md5 mtime size) /etc/projid %attr(755,root,root) /sbin/fsck.xfs %attr(755,root,root) /sbin/mkfs.xfs %attr(755,root,root) /sbin/xfs_repair %attr(755,root,root) %{_sbindir}/xfs_* %attr(755,root,root) /%{_lib}/libhandle.so.*.* %attr(755,root,root) %ghost /%{_lib}/libhandle.so.1 %dir %{_libdir}/%{name} %attr(755,root,root) %{_libdir}/%{name}/xfs_scrub_fail %{_mandir}/man5/projects.5* %{_mandir}/man5/projid.5* %{_mandir}/man5/xfs.5* %{_mandir}/man8/fsck.xfs.8* %{_mandir}/man8/mkfs.xfs.8* %{_mandir}/man8/xfs_*.8* %exclude %{_mandir}/man8/xfs_scrub*.8* %files scrub %defattr(644,root,root,755) %attr(755,root,root) /sbin/xfs_scrub %attr(755,root,root) /sbin/xfs_scrub_all %{systemdunitdir}/xfs_scrub@.service %{systemdunitdir}/xfs_scrub_all.service %{systemdunitdir}/xfs_scrub_all.timer %{systemdunitdir}/xfs_scrub_fail@.service %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/xfs_scrub_all %{_mandir}/man8/xfs_scrub.8* %{_mandir}/man8/xfs_scrub_all.8* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libhandle.so %{_libdir}/libhandle.la %{_includedir}/xfs %{_mandir}/man2/ioctl_xfs_scrub_metadata.2* %{_mandir}/man3/*handle.3* %{_mandir}/man3/xfsctl.3* %files static %defattr(644,root,root,755) %{_libdir}/libhandle.a