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.
 
 
 
 

65 lines
2.7 KiB

  1. %define blddir %{name}-%{version}
  2. #TARBALL: https://www.iana.org/time-zones/repository/releases/tzdata2019c.tar.gz
  3. #MD5SUM: f6987e6dfdb2eb83a1b5076a50b80894;SOURCES/tzdata2019c.tar.gz
  4. #-----------------------------------------------------------------------------
  5. Summary: Time zone data
  6. Name: tzdata
  7. Version: 2019c
  8. Release: 1
  9. URL: http://www.iana.org/time-zones
  10. License: public-domain
  11. Group: LFS/Base
  12. Source0: http://www.iana.org//time-zones/repository/releases/%{name}%{version}.tar.gz
  13. Requires: filesystem
  14. %description
  15. Sources for time zone and daylight saving time data
  16. #-----------------------------------------------------------------------------
  17. %prep
  18. rm -rf %{blddir}
  19. install -vdm 755 %{blddir}
  20. cd %{blddir}
  21. tar xf %{SOURCE0}
  22. %build
  23. cd %{blddir}
  24. %install
  25. cd %{blddir}
  26. ZONEINFO=%{buildroot}/usr/share/zoneinfo
  27. install -vdm 755 $ZONEINFO/{posix,right}
  28. for tz in etcetera southamerica northamerica europe africa antarctica \
  29. asia australasia backward pacificnew systemv; do
  30. zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
  31. zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
  32. zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
  33. done
  34. cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
  35. zic -d $ZONEINFO -p America/New_York
  36. unset ZONEINFO
  37. install -vDm 555 %{buildroot}/usr/share/zoneinfo/America/New_York %{buildroot}/etc/localtime
  38. #-----------------------------------------------------------------------------
  39. # Copy license/copying file
  40. install -D -m644 LICENSE %{buildroot}/usr/share/licenses/%{name}/LICENSE
  41. cd -
  42. #-----------------------------------------------------------------------------
  43. # Create file list
  44. find %{buildroot} -name '*.la' -delete
  45. find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
  46. sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
  47. sed -i '/man\/man/d' filelist.list
  48. sed -i '/\/usr\/share\/info/d' filelist.list
  49. #-----------------------------------------------------------------------------
  50. %files -f filelist.list
  51. %defattr(-,root,root)
  52. #-----------------------------------------------------------------------------
  53. %changelog
  54. * Sun May 31 2020 Chris Cromer <chris@cromer.cl> 2019c-1
  55. * Fri Mar 15 2019 baho-utot <baho-utot@columbus.rr.com> 2018i-1
  56. * Mon Mar 19 2018 baho-utot <baho-utot@columbus.rr.com> 2018c-1
  57. * Wed Dec 20 2014 baho-utot <baho-utot@columbus.rr.com> 2017b-1
  58. - Update to LFS-8.1
  59. * Sat Mar 22 2014 baho-utot <baho-utot@columbus.rr.com> 2013i-1
  60. * Sat Aug 24 2013 baho-utot <baho-utot@columbus.rr.com> 2013d-1
  61. * Fri May 10 2013 baho-utot <baho-utot@columbus.rr.com> 2013c-1
  62. * Sun Mar 24 2013 baho-utot <baho-utot@columbus.rr.com> 2013b-1
  63. * Sun Mar 24 2013 baho-utot <baho-utot@columbus.rr.com> 2012j-1
  64. * Wed Jan 30 2013 baho-utot <baho-utot@columbus.rr.com> 2012e-1