This repo contains software to build linux from scratch and package it into rpm files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

51 lines
2.0 KiB

  1. #TARBALL: http://download.savannah.gnu.org/releases/attr/attr-2.4.48.tar.gz
  2. #MD5SUM: bc1e5cb5c96d99b24886f1f527d3bb3d;SOURCES/attr-2.4.48.tar.gz
  3. #-----------------------------------------------------------------------------
  4. Summary: The attr package contains utilities to administer the extended attributes on filesystem objects.
  5. Name: attr
  6. Version: 2.4.48
  7. Release: 2
  8. License: GPLv2
  9. URL: http://savannah.nongnu.org/projects/attr
  10. Group: LFS/Base
  11. Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
  12. Requires: filesystem
  13. %description
  14. The attr package contains utilities to administer the extended attributes on filesystem objects.
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. %build
  19. ./configure \
  20. --prefix=%{_prefix} \
  21. --bindir=/bin \
  22. --disable-static \
  23. --sysconfdir=%{_sysconfdir} \
  24. --docdir=%{_docdir}/%{NAME}-%{VERSION}
  25. make %{?_smp_mflags}
  26. %install
  27. make DESTDIR=%{buildroot} install
  28. install -vdm 755 %{buildroot}/lib
  29. install -vdm 755 %{buildroot}/usr/lib
  30. mv -v %{buildroot}/usr/lib/libattr.so.* %{buildroot}/lib
  31. ln -sfv ../../lib/$(readlink %{buildroot}/usr/lib/libattr.so) %{buildroot}/usr/lib/libattr.so
  32. #-----------------------------------------------------------------------------
  33. # Create file list
  34. find %{buildroot} -name '*.la' -delete
  35. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  36. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  37. sed -i '/man\/man/d' filelist.list
  38. sed -i '/\/usr\/share\/info/d' filelist.list
  39. #-----------------------------------------------------------------------------
  40. %files -f filelist.list
  41. %defattr(-,root,root)
  42. %{_mandir}/man1/*
  43. %{_mandir}/man3/*
  44. #-----------------------------------------------------------------------------
  45. %changelog
  46. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 2.4.48-2
  47. * Wed Apr 03 2018 baho-utot <baho-utot@columbus.rr.com> 2.4.48-1
  48. - update
  49. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.4.47-1
  50. - Initial build. First version