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.
 
 
 
 

49 lines
2.0 KiB

  1. #TARBALL: https://prdownloads.sourceforge.net/expat/expat-2.2.9.tar.xz
  2. #MD5SUM: d2384fa607223447e713e1b9bd272376;SOURCES/expat-2.2.9.tar.xz
  3. #-----------------------------------------------------------------------------
  4. Summary: The Expat package contains a stream oriented C library for parsing XML.
  5. Name: expat
  6. Version: 2.2.9
  7. Release: 1
  8. License: Other
  9. URL: Any
  10. Group: LFS/Base
  11. Source0: http://prdownloads.sourceforge.net/expat/%{name}-%{version}.tar.xz
  12. Requires: filesystem
  13. %description
  14. The Expat package contains a stream oriented C library for parsing XML.
  15. #-----------------------------------------------------------------------------
  16. %prep
  17. %setup -q -n %{NAME}-%{VERSION}
  18. sed -i 's|usr/bin/env |bin/|' run.sh.in
  19. %build
  20. ./configure \
  21. --prefix=%{_prefix} \
  22. --disable-static \
  23. --docdir=%{_docdir}/%{name}-%{version}
  24. make %{?_smp_mflags}
  25. %install
  26. make DESTDIR=%{buildroot} install
  27. install -v -dm755 %{buildroot}%{_docdir}/%{name}-%{version}
  28. install -v -m644 doc/*.{html,png,css} %{buildroot}%{_docdir}/%{name}-%{version}
  29. #-----------------------------------------------------------------------------
  30. # Copy license/copying file
  31. install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
  32. #-----------------------------------------------------------------------------
  33. # Create file list
  34. find %{buildroot} -name '*.la' -delete
  35. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  36. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  37. sed -i '/man\/man/d' filelist.list
  38. sed -i '/\/usr\/share\/info/d' filelist.list
  39. #-----------------------------------------------------------------------------
  40. %files -f filelist.list
  41. %defattr(-,root,root)
  42. #-----------------------------------------------------------------------------
  43. %changelog
  44. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 2.2.9-1
  45. * Fri Apr 05 2019 baho-utot <baho-utot@columbus.rr.com> 2.2.6-1
  46. - Update for LFS-8.4
  47. * Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.2.5-1
  48. - Initial build. First version