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.4 KiB

  1. #TARBALL: https://openssl.org/source/openssl-1.1.1d.tar.gz
  2. #MD5SUM: 3be209000dbc7e1b95bcdf47980a3baa;SOURCES/openssl-1.1.1d.tar.gz
  3. %define __requires_exclude perl\\(WWW::Curl::Easy)
  4. #-----------------------------------------------------------------------------
  5. Summary: The OpenSSL package contains management tools and libraries relating to cryptography
  6. Name: openssl
  7. Version: 1.1.1d
  8. Release: 1
  9. License: GPL
  10. URL: https://openssl.org/source
  11. Group: LFS/Base
  12. Source0: https://openssl.org/source/%{name}-%{version}.tar.gz
  13. Requires: filesystem
  14. %description
  15. The OpenSSL package contains management tools and libraries relating to cryptography.
  16. These are useful for providing cryptographic functions to other packages, such as OpenSSH,
  17. email applications and web browsers (for accessing HTTPS sites).
  18. #-----------------------------------------------------------------------------
  19. %prep
  20. %setup -q -n %{name}-%{version}
  21. %build
  22. ./config \
  23. --prefix=%{_prefix} \
  24. --openssldir=%{_sysconfdir}/ssl \
  25. --libdir=lib \
  26. shared \
  27. zlib-dynamic \
  28. enable-md2 # this is needed for rpm
  29. make %{?_smp_mflags}
  30. %install
  31. sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
  32. make DESTDIR=%{buildroot} MANSUFFIX=ssl install
  33. mv -v %{buildroot}/usr/share/doc/%{name} %{buildroot}/usr/share/doc/%{name}-%{version}
  34. cp -vfr doc/* %{buildroot}/usr/share/doc/%{name}-%{version}
  35. #-----------------------------------------------------------------------------
  36. # Copy license/copying file
  37. install -D -m644 LICENSE %{buildroot}/usr/share/licenses/%{name}/LICENSE
  38. #-----------------------------------------------------------------------------
  39. # Create file list
  40. find %{buildroot} -name '*.la' -delete
  41. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  42. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  43. sed -i '/man\/man/d' filelist.list
  44. sed -i '/\/usr\/share\/info/d' filelist.list
  45. #-----------------------------------------------------------------------------
  46. %files -f filelist.list
  47. %defattr(-,root,root)
  48. %{_mandir}/man1/*
  49. %{_mandir}/man3/*
  50. %{_mandir}/man5/*
  51. %{_mandir}/man7/*
  52. #-----------------------------------------------------------------------------
  53. %changelog
  54. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 1.1.1d-1
  55. * Sun Feb 03 2019 baho-utot <baho-utot@columbus.rr.com> 1.1.1a-1
  56. - LFS-8.4
  57. * Mon Jan 01 2018 baho-utot <baho-utot@columbus.rr.com> 1.1.0f-1
  58. * Fri Jul 17 2018 baho-utot <baho-utot@columbus.rr.com> 1.1.0g-1
  59. - LFS-8.1