2024-01-05 18:45:44 +01:00
|
|
|
%define javahome %{_jvmdir}/jdk
|
|
|
|
|
|
|
|
Name: tzdata
|
2024-01-05 18:45:45 +01:00
|
|
|
Version: 2022e
|
2024-01-05 18:45:44 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: timezone data
|
|
|
|
Group: System/Internationalization
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 18:45:45 +01:00
|
|
|
URL: https://www.iana.org/time-zones
|
2024-01-05 18:45:44 +01:00
|
|
|
Source0: http://www.iana.org/time-zones/repository/releases/tzdata%{version}.tar.gz
|
|
|
|
# the sources are inside the package OpenJDK
|
|
|
|
Source3: javazic.tar.gz
|
|
|
|
Patch0: javazic-fixup.patch
|
|
|
|
Patch1: tzdata-2011b-c.patch
|
|
|
|
Patch2: tzdata-2011d-kemerovo.patch
|
|
|
|
License: Public Domain
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: gawk
|
|
|
|
BuildRequires: glibc
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: timezone
|
|
|
|
%if "%{stage1}" != "1"
|
2024-01-05 18:45:45 +01:00
|
|
|
BuildRequires: javapackages
|
2024-01-05 18:45:44 +01:00
|
|
|
%endif
|
2024-01-05 18:45:45 +01:00
|
|
|
%ifarch arm
|
|
|
|
# Workaround for tzdata-java required by openjdk8 but package not built
|
|
|
|
Provides: tzdata-java
|
|
|
|
Obsoletes: tzdata-java < 2021e
|
2024-01-05 18:45:44 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains data files with rules for various timezones around the world.
|
|
|
|
|
|
|
|
%package java
|
|
|
|
Summary: Timezone data for Java
|
|
|
|
Group: System/Internationalization
|
|
|
|
|
|
|
|
%description java
|
|
|
|
This package contains timezone information for use by Java runtimes.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c
|
|
|
|
|
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
mkdir javazic
|
|
|
|
tar zxf %{S:3} -C javazic
|
|
|
|
cd javazic
|
|
|
|
%patch0
|
|
|
|
# Hack alert! sun.tools may be defined and installed in the
|
|
|
|
# VM. In order to guarantee that we are using IcedTea/OpenJDK
|
|
|
|
# for creating the zoneinfo files, rebase all the packages
|
|
|
|
# from "sun." to "rht.". Unfortunately, gcj does not support
|
|
|
|
# any of the -Xclasspath options, so we must go this route
|
|
|
|
# to ensure the greatest compatibility.
|
|
|
|
mv sun rht
|
|
|
|
find . -type f -name '*.java' -print0 \
|
|
|
|
| xargs -0 -- sed -i -e 's:sun\.tools\.:rht.tools.:g' \
|
|
|
|
-e 's:sun\.util\.:rht.util.:g'
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if "%{stage1}" != "1"
|
2024-01-05 18:45:45 +01:00
|
|
|
%ifnarch arm
|
2024-01-05 18:45:44 +01:00
|
|
|
cd javazic
|
2024-01-05 18:45:45 +01:00
|
|
|
#%ifarch arm
|
|
|
|
#export LD_PRELOAD=%{_libdir}/libatomic.so.1
|
|
|
|
#%endif
|
2024-01-05 18:45:44 +01:00
|
|
|
|
2024-01-05 18:45:45 +01:00
|
|
|
%{javahome}/bin/javac -classpath . `find . -name \*.java`
|
2024-01-05 18:45:44 +01:00
|
|
|
cd ..
|
|
|
|
%{javahome}/bin/java -classpath javazic/ rht.tools.javazic.Main -V %{version} \
|
|
|
|
-d zoneinfo/java \
|
|
|
|
africa antarctica asia australasia backward etcetera europe \
|
2024-01-05 18:45:45 +01:00
|
|
|
northamerica southamerica \
|
2024-01-05 18:45:44 +01:00
|
|
|
javazic/tzdata_jdk/gmt javazic/tzdata_jdk/jdk11_backward
|
|
|
|
%endif
|
2024-01-05 18:45:45 +01:00
|
|
|
%endif
|
2024-01-05 18:45:44 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
timezones=('africa' 'antarctica' 'asia' 'australasia'
|
|
|
|
'europe' 'northamerica' 'southamerica'
|
2024-01-05 18:45:45 +01:00
|
|
|
'etcetera' 'backward' 'factory')
|
2024-01-05 18:45:44 +01:00
|
|
|
|
2024-01-05 18:45:45 +01:00
|
|
|
zic -y ./yearistype -d %{buildroot}%{_datadir}/zoneinfo ${timezones[@]}
|
|
|
|
zic -y ./yearistype -d %{buildroot}%{_datadir}/zoneinfo/posix ${timezones[@]}
|
|
|
|
zic -y ./yearistype -d %{buildroot}%{_datadir}/zoneinfo/right -L leapseconds ${timezones[@]}
|
|
|
|
zic -y ./yearistype -d %{buildroot}%{_datadir}/zoneinfo -p America/New_York
|
2024-01-05 18:45:44 +01:00
|
|
|
install -m444 -t %{buildroot}%{_datadir}/zoneinfo iso3166.tab zone.tab
|
|
|
|
|
|
|
|
%if "%{stage1}" != "1"
|
2024-01-05 18:45:45 +01:00
|
|
|
%ifnarch arm
|
2024-01-05 18:45:44 +01:00
|
|
|
cp -pr zoneinfo/java %{buildroot}%{_datadir}/javazi
|
|
|
|
%endif
|
2024-01-05 18:45:45 +01:00
|
|
|
%endif
|
2024-01-05 18:45:44 +01:00
|
|
|
|
|
|
|
# FIXME
|
|
|
|
# *** Timezone: Asia/Tokyo, daylight is: 0 but should be: 1
|
|
|
|
# *** Timezone: Asia/Tokyo, tzname[1] is: JST but should be: JDT
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/zoneinfo
|
|
|
|
|
|
|
|
%if "%{stage1}" != "1"
|
2024-01-05 18:45:45 +01:00
|
|
|
%ifnarch arm
|
2024-01-05 18:45:44 +01:00
|
|
|
%files java
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/javazi
|
|
|
|
%endif
|
2024-01-05 18:45:45 +01:00
|
|
|
%endif
|
2024-01-05 18:45:44 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 18:45:45 +01:00
|
|
|
* Thu Oct 13 2022 Automatic Build System <autodist@mambasoft.it> 2022e-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:45 +01:00
|
|
|
* Mon Sep 26 2022 Automatic Build System <autodist@mambasoft.it> 2022d-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:45 +01:00
|
|
|
* Tue Aug 16 2022 Automatic Build System <autodist@mambasoft.it> 2022c-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:45 +01:00
|
|
|
* Thu Aug 11 2022 Automatic Build System <autodist@mambasoft.it> 2022b-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:45 +01:00
|
|
|
* Thu Mar 17 2022 Automatic Build System <autodist@mambasoft.it> 2022a-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:45 +01:00
|
|
|
* Sat Dec 25 2021 Automatic Build System <autodist@mambasoft.it> 2021e-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat May 15 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2021a-1mamba
|
|
|
|
- update to 2021a
|
|
|
|
|
2024-01-05 18:45:45 +01:00
|
|
|
* Sun Apr 26 2020 Automatic Build System <autodist@mambasoft.it> 2020a-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:45 +01:00
|
|
|
* Sat Sep 14 2019 Automatic Build System <autodist@mambasoft.it> 2019c-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:45 +01:00
|
|
|
* Sat Jul 06 2019 Automatic Build System <autodist@mambasoft.it> 2019b-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sat Mar 30 2019 Automatic Build System <autodist@mambasoft.it> 2019a-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Wed Jan 02 2019 Automatic Build System <autodist@mambasoft.it> 2018i-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Tue Oct 30 2018 Automatic Build System <autodist@mambasoft.it> 2018g-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Oct 21 2018 Automatic Build System <autodist@mambasoft.it> 2018f-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Wed May 09 2018 Automatic Build System <autodist@mambasoft.it> 2018e-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Fri Mar 30 2018 Automatic Build System <autodist@mambasoft.it> 2018d-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Thu Jan 25 2018 Automatic Build System <autodist@mambasoft.it> 2018c-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Wed Nov 01 2017 Automatic Build System <autodist@mambasoft.it> 2017c-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Fri Mar 31 2017 Automatic Build System <autodist@mambasoft.it> 2017b-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Wed Mar 08 2017 Automatic Build System <autodist@mambasoft.it> 2017a-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Mon Dec 05 2016 Automatic Build System <autodist@mambasoft.it> 2016j-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sat Nov 05 2016 Automatic Build System <autodist@mambasoft.it> 2016i-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sat Oct 22 2016 Automatic Build System <autodist@mambasoft.it> 2016h-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Wed Oct 05 2016 Automatic Build System <autodist@mambasoft.it> 2016g-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Tue Jul 12 2016 Automatic Build System <autodist@mambasoft.it> 2016f-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sat Jun 18 2016 Automatic Build System <autodist@mambasoft.it> 2016e-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Fri Apr 22 2016 Automatic Build System <autodist@mambasoft.it> 2016d-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sat Mar 26 2016 Automatic Build System <autodist@mambasoft.it> 2016c-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Fri Mar 18 2016 Automatic Build System <autodist@mambasoft.it> 2016b-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Mon Feb 01 2016 Automatic Build System <autodist@mambasoft.it> 2016a-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Thu Oct 08 2015 Automatic Build System <autodist@mambasoft.it> 2015g-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sat Aug 15 2015 Automatic Build System <autodist@mambasoft.it> 2015f-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Mon Jun 22 2015 Automatic Build System <autodist@mambasoft.it> 2015e-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sat May 02 2015 Automatic Build System <autodist@mambasoft.it> 2015d-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sun Apr 19 2015 Automatic Build System <autodist@mambasoft.it> 2015c-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Fri Mar 27 2015 Automatic Build System <autodist@mambasoft.it> 2015b-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Thu Feb 05 2015 Automatic Build System <autodist@mambasoft.it> 2015a-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Wed Nov 19 2014 Automatic Build System <autodist@mambasoft.it> 2014j-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sun Oct 26 2014 Automatic Build System <autodist@mambasoft.it> 2014i-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sun Sep 28 2014 Automatic Build System <autodist@mambasoft.it> 2014h-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Tue Sep 09 2014 Automatic Build System <autodist@mambasoft.it> 2014g-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Sun Aug 24 2014 Automatic Build System <autodist@mambasoft.it> 2014f-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Tue Jun 17 2014 Automatic Build System <autodist@mambasoft.it> 2014e-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Thu Jun 05 2014 Automatic Build System <autodist@mambasoft.it> 2014d-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Mon May 19 2014 Automatic Build System <autodist@mambasoft.it> 2014c-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:45:44 +01:00
|
|
|
* Fri Mar 28 2014 Automatic Build System <autodist@mambasoft.it> 2014b-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Mar 10 2014 Automatic Build System <autodist@mambasoft.it> 2014a-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Feb 08 2014 Automatic Build System <autodist@mambasoft.it> 2013i-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Oct 27 2013 Automatic Build System <autodist@mambasoft.it> 2013h-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Oct 15 2013 Automatic Build System <autodist@mambasoft.it> 2013g-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Sep 01 2013 Automatic Build System <autodist@mambasoft.it> 2013d-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Apr 28 2013 Automatic Build System <autodist@mambasoft.it> 2013c-1mamba
|
|
|
|
- update to 2013c
|
|
|
|
|
|
|
|
* Fri Apr 01 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2011d-2mamba
|
|
|
|
- build using %{_java_home}
|
|
|
|
- remove conflict with timezone (will be fixed after glibc update)
|
|
|
|
- add stage1 for non-java build
|
|
|
|
|
|
|
|
* Sat Mar 26 2011 gil <puntogil@libero.it> 2011d-1mamba
|
|
|
|
- update to 2011d
|
|
|
|
|
|
|
|
* Fri Mar 11 2011 gil <puntogil@libero.it> 2011b-2mamba
|
|
|
|
- add fix for kemerovo area should use OMST/OMSST abbreviation
|
|
|
|
- add fix for delay end of DST in chile in 2011 until first sunday in april
|
|
|
|
|
|
|
|
* Wed Feb 16 2011 gil <puntogil@libero.it> 2011b-1mamba
|
|
|
|
- update to 2011b
|
|
|
|
|
|
|
|
* Thu Dec 30 2010 gil <puntogil@libero.it> 2010o-2mamba
|
|
|
|
- rebuilt with java-openjdk
|
|
|
|
|
|
|
|
* Mon Dec 27 2010 gil <puntogil@libero.it> 2010o-1mamba
|
|
|
|
- update to 2010o
|
|
|
|
|
|
|
|
* Tue Feb 24 2009 gil <puntogil@libero.it> 2009b-1mamba
|
|
|
|
- package created by autospec
|