SPECS/xfsprogs/xfsprogs.spec
0451a3f6
 Summary:        Utilities for managing the XFS filesystem
 Name:           xfsprogs
 Version:        4.10.0
a26f86e3
 Release:        3%{?dist}
0451a3f6
 License:        GPL+ and LGPLv2+
 URL:            http://oss.sgi.com/projects/xfs/
 Group:          System Environment/Base
 Vendor:         VMware, Inc.
 Distribution:   Photon
 Source0:        http://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.xz
 %define sha1    xfsprogs=cd6750ea88133092815aad37fad993c17a80f9c3
84faf496
 BuildRequires:  gettext
 BuildRequires:  readline-devel
 
 %description
 The xfsprogs package contains administration and debugging tools for the
 XFS file system.
 
 %package devel
 Summary: XFS filesystem-specific static libraries and headers
 Group: Development/Libraries
 Requires: xfsprogs = %{version}-%{release}
 
 %description devel
 Libraries and header files needed to develop XFS filesystem-specific programs.
 
 %package lang
 Summary: Additional language files for xfsprogs
 Group: System Environment/Base
 Requires: %{name} = %{version}-%{release}
 %description lang
 These are the additional language files of xfsprogs.
 
 %prep
 %setup -q
 
 %build
a26f86e3
 %configure \
         --enable-readline=yes	\
 	--enable-blkid=yes
 
84faf496
 make DEBUG=-DNDEBUG     \
      INSTALL_USER=root  \
a26f86e3
      INSTALL_GROUP=root  %{?_smp_mflags}
84faf496
 
 %install
 make DESTDIR=%{buildroot} PKG_DOC_DIR=%{_usr}/share/doc/%{name}-%{version} install
 make DESTDIR=%{buildroot} PKG_DOC_DIR=%{_usr}/share/doc/%{name}-%{version} install-dev
 
 #find %{buildroot}/lib64/ -name '*.so' -delete
 find %{buildroot}/%{_lib64dir} -name '*.la' -delete
 find %{buildroot}/%{_lib64dir} -name '*.a' -delete
 
 %find_lang %{name}
 
 %check
 make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
 
 %clean
 rm -rf %{buildroot}/*
 
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root)
 %doc doc/CHANGES doc/COPYING doc/CREDITS README
 /sbin/*
 /lib64/*.so.*.*
 %{_mandir}/man8/*
 %{_mandir}/man5/*
 %{_sbindir}/*
421d1f6b
 %exclude %{_docdir}/%{name}-%{version}/CHANGES.gz
84faf496
 
 %files devel
 %defattr(-,root,root)
 %dir %{_includedir}/xfs
 %{_includedir}/xfs/*
 /lib64/*.so
 /lib64/*.so.1
 %{_mandir}/man3/*
 
 %files lang -f %{name}.lang
 %defattr(-,root,root)
 
 %changelog
a26f86e3
 *   Fri Oct 13 2017 Alexey Makhalov <amakhalov@vmware.com> 4.10.0-3
 -   Use standard configure macros
421d1f6b
 *   Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 4.10.0-2
 -   Ensure non empty debuginfo
0451a3f6
 *   Wed Apr 05 2017 Xiaolin Li <xiaolinl@vmware.com> 4.10.0-1
 -   Updated to version 4.10.0.
84faf496
 *   Fri Jan 6 2017 Dheeraj Shetty <dheerajs@vmware.com> 4.9.0-1
 -   Initial build.  First version