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.
 
 
 
 

52 lines
1.9 KiB

  1. #TARBALL: http://ftp.gnu.org/gnu/sed/sed-4.8.tar.xz
  2. #MD5SUM: 6d906edfdb3202304059233f51f9a71d;SOURCES/sed-4.8.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Sed package contains a stream editor
  5. Name: sed
  6. Version: 4.8
  7. Release: 1
  8. License: GPLv3
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
  12. Requires: filesystem
  13. %description
  14. The Sed package contains a stream editor
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. sed -i 's/usr/tools/' build-aux/help2man
  19. sed -i 's/testsuite.panic-tests.sh//' Makefile.in
  20. %build
  21. ./configure \
  22. --prefix=%{_prefix} \
  23. --bindir=/bin
  24. make %{?_smp_mflags}
  25. make %{?_smp_mflags} html
  26. %install
  27. make DESTDIR=%{buildroot} install
  28. install -d -m755 %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
  29. install -m644 doc/sed.html %{buildroot}%{_docdir}/%{NAME}-%{VERSION}
  30. rm -rf %{buildroot}/%{_infodir}
  31. #-----------------------------------------------------------------------------
  32. # Copy license/copying file
  33. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  34. #-----------------------------------------------------------------------------
  35. # Create file list
  36. find %{buildroot} -name '*.la' -delete
  37. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  38. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  39. sed -i '/man\/man/d' filelist.list
  40. sed -i '/\/usr\/share\/info/d' filelist.list
  41. #-----------------------------------------------------------------------------
  42. %files -f filelist.list
  43. %defattr(-,root,root)
  44. %{_mandir}/man1/*
  45. #-----------------------------------------------------------------------------
  46. %changelog
  47. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 4.8-1
  48. * Wed Apr 03 2019 baho-utot <baho-utot@columbus.rr.com> 4.7-1
  49. - Update
  50. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 4.4-1
  51. - Initial build. First version