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.

63 lines
2.6 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 year ago
  1. #TARBALL: https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz
  2. #MD5SUM: b3fb85fd479c0bf950c626ef80cacb57;SOURCES/Python-3.8.1.tar.xz
  3. #TARBALL: https://docs.python.org/ftp/python/doc/3.8.1/python-3.8.1-docs-html.tar.bz2
  4. #MD5SUM: edc8c97f9680373fcc1dd952f0ea7fcc;SOURCES/python-3.8.1-docs-html.tar.bz2
  5. #-----------------------------------------------------------------------------
  6. Summary: The Python 3 package contains the Python development environment.
  7. Name: python3
  8. Version: 3.8.1
  9. Release: 1
  10. License: Any
  11. URL: Any
  12. Group: LFS/Base
  13. Source0: Python-%{VERSION}.tar.xz
  14. Source1: python-%{VERSION}-docs-html.tar.bz2
  15. Requires: filesystem
  16. %description
  17. The Python 3 package contains the Python development environment.
  18. This is useful for object-oriented programming, writing scripts,
  19. prototyping large programs or developing entire applications.
  20. #-----------------------------------------------------------------------------
  21. %prep
  22. cd %{_builddir}
  23. %setup -q -n "Python-%{VERSION}"
  24. %setup -q -T -D -a 1 -n Python-%{VERSION}
  25. %build
  26. ./configure \
  27. --prefix=%{_prefix} \
  28. --enable-shared \
  29. --with-system-expat \
  30. --with-system-ffi \
  31. --with-ensurepip=yes
  32. make %{?_smp_mflags}
  33. %install
  34. make DESTDIR=%{buildroot} install
  35. chmod -v 755 %{buildroot}/usr/lib/libpython3.8.so
  36. chmod -v 755 %{buildroot}/usr/lib/libpython3.so
  37. ln -sfv pip3.8 %{buildroot}/usr/bin/pip3
  38. install -v -dm755 %{buildroot}/usr/share/doc/python-%{version}/html
  39. cp -var python-%{version}-docs-html/* %{buildroot}/usr/share/doc/python-%{version}/html
  40. ln -sfv python3 %{buildroot}/usr/bin/python
  41. install -v -dm755 %{buildroot}/usr/local/bin
  42. ln -sfv python3 %{buildroot}/usr/local/bin/python
  43. #-----------------------------------------------------------------------------
  44. # Copy license/copying file
  45. install -D -m644 LICENSE %{buildroot}/usr/share/licenses/%{name}/LICENSE
  46. #-----------------------------------------------------------------------------
  47. # Create file list
  48. find %{buildroot} -name '*.la' -delete
  49. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  50. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  51. sed -i '/man\/man/d' filelist.list
  52. sed -i '/\/usr\/share\/info/d' filelist.list
  53. #-----------------------------------------------------------------------------
  54. %files -f filelist.list
  55. %defattr(-,root,root)
  56. %{_mandir}/man1/*
  57. #-----------------------------------------------------------------------------
  58. %changelog
  59. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 3.8.1-1
  60. * Sat Apr 06 2019 baho-utot <baho-utot@columbus.rr.com> Python-3.7.2-1
  61. - LFS-8.4
  62. * Fri Jul 17 2018 baho-utot <baho-utot@columbus.rr.com> Python-3.6.4-1
  63. - Initial build. First version