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.

60 lines
2.5 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #TARBALL: http://anduin.linuxfromscratch.org/LFS/bzip2-1.0.8.tar.gz
  2. #MD5SUM: 67e051268d0c475ea773822f7500d0e5;SOURCES/bzip2-1.0.8.tar.gz
  3. #TARBALL: http://www.linuxfromscratch.org/patches/lfs/9.1/bzip2-1.0.8-install_docs-1.patch
  4. #MD5SUM: 6a5ac7e89b791aae556de0f745916f7f;SOURCES/bzip2-1.0.8-install_docs-1.patch
  5. #-----------------------------------------------------------------------------
  6. Summary: The Bzip2 package contains programs for compressing and decompressing files
  7. Name: bzip2
  8. Version: 1.0.8
  9. Release: 1
  10. License: Other
  11. URL: Any
  12. Group: LFS/Base
  13. Source0: http://www.%{name}.org/%{version}/%{name}-%{version}.tar.gz
  14. Patch0: http://www.linuxfromscratch.org/patches/lfs/9.1/%{name}-%{version}-install_docs-1.patch
  15. Requires: filesystem
  16. %description
  17. The Bzip2 package contains programs for compressing and decompressing files
  18. Compressing text files with bzip2 yields a much better compression percentage
  19. than with the traditional gzip.
  20. #-----------------------------------------------------------------------------
  21. %prep
  22. %setup -q -n %{NAME}-%{VERSION}
  23. %patch0 -p1
  24. sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
  25. sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
  26. %build
  27. make -f Makefile-libbz2_so
  28. make clean
  29. make
  30. %install
  31. make PREFIX=%{buildroot}/%{_prefix} install
  32. install -vdm 755 %{buildroot}/bin
  33. install -vdm 755 %{buildroot}/lib
  34. install -vdm 755 %{buildroot}%{_libdir}
  35. install -vdm 755 %{buildroot}%{_bindir}
  36. cp -v bzip2-shared %{buildroot}/bin/bzip2
  37. cp -av libbz2.so* %{buildroot}/lib
  38. ln -sv ../../lib/libbz2.so.1.0 %{buildroot}%{_libdir}/libbz2.so
  39. rm -v %{buildroot}/%{_bindir}/{bunzip2,bzcat,bzip2}
  40. ln -sv bzip2 %{buildroot}/bin/bunzip2
  41. ln -sv bzip2 %{buildroot}/bin/bzcat
  42. #-----------------------------------------------------------------------------
  43. # Copy license/copying file
  44. install -D -m644 LICENSE %{buildroot}/usr/share/licenses/%{name}/LICENSE
  45. #-----------------------------------------------------------------------------
  46. # Create file list
  47. find %{buildroot} -name '*.la' -delete
  48. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  49. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  50. sed -i '/man\/man/d' filelist.list
  51. sed -i '/\/usr\/share\/info/d' filelist.list
  52. #-----------------------------------------------------------------------------
  53. %files -f filelist.list
  54. %defattr(-,root,root)
  55. %{_mandir}/man1/*
  56. #-----------------------------------------------------------------------------
  57. %changelog
  58. * Sun May 31 2020 Chris Cromer <chris@cromer.cl>
  59. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.0.6-1
  60. - Initial build. First version