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.
 
 
 
 

47 lines
1.9 KiB

  1. #TARBALL: http://zlib.net/zlib-1.2.11.tar.xz
  2. #MD5SUM: 85adef240c5f370b308da8c938951a68;SOURCES/zlib-1.2.11.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Zlib package contains compression and decompression routines used by some programs.
  5. Name: zlib
  6. Version: 1.2.11
  7. Release: 2
  8. License: Other
  9. URL: http://zlib.net
  10. Group: LFS/Base
  11. Source0: http://zlib.net/%{name}-%{version}.tar.xz
  12. Provides: pkgconfig(zlib) = %{version}
  13. Requires: filesystem
  14. %description
  15. The Zlib package contains compression and decompression routines used by some programs.
  16. #-----------------------------------------------------------------------------
  17. %prep
  18. %setup -q -n %{NAME}-%{VERSION}
  19. %build
  20. ./configure --prefix=%{_prefix}
  21. make %{?_smp_mflags}
  22. %install
  23. make DESTDIR=%{buildroot} install
  24. install -vdm 755 %{buildroot}/lib
  25. install -vdm 755 %{buildroot}/usr/lib
  26. mv -v %{buildroot}/usr/lib/libz.so.* %{buildroot}/lib
  27. ln -sfv ../../lib/$(readlink %{buildroot}/usr/lib/libz.so) %{buildroot}/usr/lib/libz.so
  28. #-----------------------------------------------------------------------------
  29. # Copy license/copying file
  30. install -vDm644 README %{buildroot}/usr/share/licenses/%{name}/LICENSE
  31. #-----------------------------------------------------------------------------
  32. # Create file list
  33. find %{buildroot} -name '*.la' -delete
  34. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  35. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  36. sed -i '/man\/man/d' filelist.list
  37. sed -i '/\/usr\/share\/info/d' filelist.list
  38. #-----------------------------------------------------------------------------
  39. %files -f filelist.list
  40. %defattr(-,root,root)
  41. %_mandir/man3/zlib.3.gz
  42. #-----------------------------------------------------------------------------
  43. %changelog
  44. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 1.2.11-2
  45. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.2.11-1
  46. - Initial build. First version