xfsprogs/xfsprogs.spec

88 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:20:10 -04:00
Name: xfsprogs
Version: 4.17.0
Release: 5
Summary: Administration and debugging tools for the XFS file system
License: GPL+ and LGPLv2+
URL: https://xfs.wiki.kernel.org
Source0: http://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.xz
BuildRequires: libtool libattr-devel libuuid-devel gcc git
BuildRequires: readline-devel libblkid-devel >= 2.30 lvm2-devel libicu-devel >= 62.0
Provides: xfs-cmds
Obsoletes: xfs-cmds <= %{version}
Provides: xfsprogs-qa-devel
Obsoletes: xfsprogs-qa-devel <= %{version}
Conflicts: xfsdump < 3.0.1
%description
xfsprogs are the userspace utilities that manage XFS filesystems.
%package devel
Summary: The header files for XFS filesystem
Requires: xfsprogs = %{version}-%{release}, libuuid-devel
%description devel
It contains the header files for the developing of XFS
filesystem.
%package help
Summary: Including man files for xfsprogs
Requires: man
BuildArch: noarch
%description help
This contains man files for the using of xfsprogs.
%prep
%autosetup -n %{name}-%{version} -p1 -S git
%build
export tagname=CC
%configure --enable-readline=yes --enable-blkid=yes --enable-lto=no
make %{?_smp_mflags}
%install
make DIST_ROOT=%{buildroot} install install-dev \
PKG_ROOT_SBIN_DIR=%{_sbindir} PKG_ROOT_LIB_DIR=%{_libdir}
rm -f %{buildroot}{%{_lib}/*.{la,a,so},%{_libdir}/*.{la,a}}
rm -rf %{buildroot}%{_datadir}/doc/xfsprogs/
%find_lang %{name}
%ldconfig_scriptlets
%files -f %{name}.lang
%doc doc/CHANGES README
%license doc/COPYING
%{_libdir}/*.so.*
%dir %{_usr}/%{_lib}/xfsprogs
%{_usr}/%{_lib}/xfsprogs/*
%{_sbindir}/*
%{_unitdir}/*
%files devel
%dir %{_includedir}/xfs
%{_includedir}/xfs/*.h
%{_libdir}/*.so
%files help
%{_mandir}/man*/*
%changelog
* Wed Aug 28 2019 zhanghaibo <ted.zhang@huawei.com> - 4.17.0-5
- Type:enhancemnet
- ID:NA
- SUG:NA
- DESCi:openEuler Debranding
* Mon Aug 12 2019 zhanghaibo <ted.zhang@huawei.com> - 4.17.0-4
- Package init