#TARBALL: ftp://ftp.astron.com/pub/file/file-5.38.tar.gz #MD5SUM: 3217633ed09c7cd35ed8d04191675574;SOURCES/file-5.38.tar.gz #----------------------------------------------------------------------------- Summary: The File package contains a utility for determining the type of a given file or files Name: file Version: 5.38 Release: 1 License: Other URL: ftp://ftp.astron.com/pub Group: LFS/Base Source0: ftp://ftp.astron.com/pub/%{name}/%{name}-%{version}.tar.gz Requires: filesystem %description The File package contains a utility for determining the type of a given file or files. #----------------------------------------------------------------------------- %prep %setup -q -n %{NAME}-%{VERSION} %build ./configure --prefix=%{_prefix} make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install #----------------------------------------------------------------------------- # Copy license/copying file install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE #----------------------------------------------------------------------------- # Create file list find %{buildroot} -name '*.la' -delete find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list sed -i '/man\/man/d' filelist.list sed -i '/\/usr\/share\/info/d' filelist.list #----------------------------------------------------------------------------- %files -f filelist.list %defattr(-,root,root) %{_mandir}/man1/file.1.gz %{_mandir}/man3/libmagic.3.gz %{_mandir}/man4/magic.4.gz #----------------------------------------------------------------------------- %changelog * Sun May 31 2020 Chris Cromer 5.38-1 * Mon Mar 15 2019 baho-utot 5.36-1 * Mon Mar 19 2018 baho-utot 5.32-1 * Tue Jan 09 2018 baho-utot 5.31-1 - Initial build. First version