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.
 
 
 
 

86 lines
3.1 KiB

  1. #TARBALL: ftp.rpm.org/releases/rpm-4.15.x/rpm-4.15.1.tar.bz2
  2. #TARBALL: http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz
  3. #MD5SUM: ed72147451a5ed93b2a48e2f8f5413c3;SOURCES/rpm-4.15.1.tar.bz2
  4. #MD5SUM: b99454564d5b4479750567031d66fe24;SOURCES/db-5.3.28.tar.gz
  5. #-----------------------------------------------------------------------------
  6. Summary: Package manager
  7. Name: rpm
  8. Version: 4.15.1
  9. Release: 1
  10. License: GPLv2
  11. URL: http://rpm.org
  12. Group: LFS/BASE
  13. Source0: http://ftp.rpm.org/releases/rpm-4.15.x/%{name}-%{version}.tar.bz2
  14. Source1: http://download.oracle.com/berkeley-db/db-5.3.28.tar.gz
  15. Source2: macros
  16. Requires: filesystem
  17. %description
  18. Package manager
  19. #-----------------------------------------------------------------------------
  20. %prep
  21. %setup -q -n %{name}-%{version}
  22. %setup -q -T -D -a 1 -n %{name}-%{version}
  23. sed -i 's/--srcdir=$db_dist/--srcdir=$db_dist --with-pic/' db3/configure
  24. %build
  25. ln -vs db-5.3.28 db
  26. ./configure \
  27. --prefix=%{_prefix} \
  28. --program-prefix= \
  29. --sysconfdir=%{_sysconfdir} \
  30. --with-crypto=openssl \
  31. --with-cap \
  32. --with-acl \
  33. --without-external-db \
  34. --without-archive \
  35. --without-lua \
  36. --disable-dependency-tracking \
  37. --disable-silent-rules \
  38. --disable-rpath \
  39. --disable-plugins \
  40. --disable-inhibit-plugin
  41. make %{?_smp_mflags}
  42. %install
  43. make DESTDIR=%{buildroot} install
  44. install -vdm 755 %{buildroot}/%{_sysconfdir}/rpm
  45. install -vm 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/rpm
  46. #-----------------------------------------------------------------------------
  47. # Copy license/copying file
  48. install -D -m644 COPYING %{buildroot}%{_datarootdir}/licenses/%{name}-%{version}/COPYING
  49. install -D -m644 INSTALL %{buildroot}%{_datarootdir}/licenses/%{name}-%{version}/INSTALL
  50. #-----------------------------------------------------------------------------
  51. # Create file list
  52. find %{buildroot} -name '*.la' -delete
  53. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  54. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  55. sed -i '/man\/man/d' filelist.list
  56. sed -i '/\/usr\/share\/info/d' filelist.list
  57. sed -i '/man\/fr/d' filelist.list
  58. sed -i '/man\/pl/d' filelist.list
  59. sed -i '/man\/sk/d' filelist.list
  60. sed -i '/man\/ko/d' filelist.list
  61. sed -i '/man\/ja/d' filelist.list
  62. sed -i '/man\/ru/d' filelist.list
  63. #-----------------------------------------------------------------------------
  64. %files -f filelist.list
  65. %defattr(-,root,root)
  66. %{_mandir}/man1/*
  67. %{_mandir}/man8/*
  68. %{_mandir}/fr/man8/*
  69. %{_mandir}/ja/man8/*
  70. %{_mandir}/ko/man8/*
  71. %{_mandir}/pl/man1/*
  72. %{_mandir}/pl/man8/*
  73. %{_mandir}/ru/man8/*
  74. %{_mandir}/sk/man8/*
  75. #-----------------------------------------------------------------------------
  76. %changelog
  77. * Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 4.15.1-1
  78. * Wed Sep 26 2018 baho-utot <baho-utot@columbus.rr.com> 4.14.1-2
  79. * Sat Jul 28 2018 baho-utot <baho-utot@columbus.rr.com> 4.14.1-1
  80. * Sat Mar 10 2018 baho-utot <baho-utot@columbus.rr.com> 4.14.0-4
  81. - Added acl and cap Removed plugins and disabled python
  82. * Tue Feb 20 2018 baho-utot <baho-utot@columbus.rr.com> 4.14.0-3
  83. - Added python bindings for rpmlint
  84. * Mon Jan 01 2018 baho-utot <baho-utot@columbus.rr.com> 4.14.0-1
  85. - LFS-8.1