|
|
@ -9,41 +9,38 @@ Group: System Environment/Base |
|
|
|
URL: https://www.iana.org/time-zones |
|
|
|
URL: https://www.iana.org/time-zones |
|
|
|
Source0: ftp://ftp.iana.org/tz/releases/tzdata%{tzdata_version}.tar.gz |
|
|
|
Source0: ftp://ftp.iana.org/tz/releases/tzdata%{tzdata_version}.tar.gz |
|
|
|
Source1: ftp://ftp.iana.org/tz/releases/tzcode%{tzcode_version}.tar.gz |
|
|
|
Source1: ftp://ftp.iana.org/tz/releases/tzcode%{tzcode_version}.tar.gz |
|
|
|
|
|
|
|
|
|
|
|
Patch002: 0002-Fix-have-snprintf.patch |
|
|
|
Patch002: 0002-Fix-have-snprintf.patch |
|
|
|
Patch003: 0003-continue-to-ship-posixrules.patch |
|
|
|
Patch003: 0003-continue-to-ship-posixrules.patch |
|
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|
|
|
BuildRequires: gawk, glibc, perl |
|
|
|
BuildRequires: gawk, glibc, perl |
|
|
|
BuildRequires: glibc-common >= 2.5.90-7 |
|
|
|
BuildRequires: glibc-common >= 2.5.90-7 |
|
|
|
BuildRequires: java-devel |
|
|
|
#BuildRequires: java-devel |
|
|
|
|
|
|
|
|
|
|
|
Conflicts: glibc-common <= 2.3.2-63 |
|
|
|
Conflicts: glibc-common <= 2.3.2-63 |
|
|
|
BuildArchitectures: noarch |
|
|
|
BuildArchitectures: noarch |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description |
|
|
|
%description |
|
|
|
This package contains data files with rules for various timezones around |
|
|
|
This package contains data files with rules for various timezones around |
|
|
|
the world. |
|
|
|
the world. |
|
|
|
|
|
|
|
|
|
|
|
%package java |
|
|
|
|
|
|
|
Summary: Timezone data for Java |
|
|
|
|
|
|
|
Group: System Environment/Base |
|
|
|
|
|
|
|
Source3: javazic.tar.gz |
|
|
|
|
|
|
|
Source4: http://omajid.fedorapeople.org/javazic-1.8-37392f2f5d59.tar.xz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Patch100: javazic-fixup.patch |
|
|
|
#%package java |
|
|
|
Patch101: rebase-01.patch |
|
|
|
#Summary: Timezone data for Java |
|
|
|
Patch102: rebase-02.patch |
|
|
|
#Group: System Environment/Base |
|
|
|
Patch103: 7090844.patch |
|
|
|
#Source3: javazic.tar.gz |
|
|
|
Patch104: 7133138.patch |
|
|
|
#Source4: http://omajid.fedorapeople.org/javazic-1.8-37392f2f5d59.tar.xz |
|
|
|
Patch105: 8051641.patch |
|
|
|
#Patch100: javazic-fixup.patch |
|
|
|
|
|
|
|
#Patch101: rebase-01.patch |
|
|
|
|
|
|
|
#Patch102: rebase-02.patch |
|
|
|
|
|
|
|
#Patch103: 7090844.patch |
|
|
|
|
|
|
|
#Patch104: 7133138.patch |
|
|
|
|
|
|
|
#Patch105: 8051641.patch |
|
|
|
|
|
|
|
#%description java |
|
|
|
|
|
|
|
#This package contains timezone information for use by Java runtimes. |
|
|
|
|
|
|
|
|
|
|
|
%description java |
|
|
|
|
|
|
|
This package contains timezone information for use by Java runtimes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
%prep |
|
|
|
%setup -q -c -a 1 |
|
|
|
%setup -q -c -a 1 |
|
|
|
|
|
|
|
|
|
|
|
%patch002 -p1 |
|
|
|
%patch002 -p1 |
|
|
|
%patch003 -p1 |
|
|
|
%patch003 -p1 |
|
|
|
|
|
|
|
|
|
|
@ -66,14 +63,14 @@ tar zxf tzdata%{version}-rearguard.tar.gz |
|
|
|
rm tzdata.zi |
|
|
|
rm tzdata.zi |
|
|
|
make VERSION=%{version} DATAFORM=rearguard tzdata.zi |
|
|
|
make VERSION=%{version} DATAFORM=rearguard tzdata.zi |
|
|
|
|
|
|
|
|
|
|
|
mkdir javazic |
|
|
|
#mkdir javazic |
|
|
|
tar zxf %{SOURCE3} -C javazic |
|
|
|
#tar zxf %{SOURCE3} -C javazic |
|
|
|
pushd javazic |
|
|
|
#pushd javazic |
|
|
|
%patch100 |
|
|
|
#%patch100 |
|
|
|
%patch101 |
|
|
|
#%patch101 |
|
|
|
%patch102 |
|
|
|
#%patch102 |
|
|
|
%patch103 |
|
|
|
#%patch103 |
|
|
|
%patch104 |
|
|
|
#%patch104 |
|
|
|
|
|
|
|
|
|
|
|
# Hack alert! sun.tools may be defined and installed in the |
|
|
|
# Hack alert! sun.tools may be defined and installed in the |
|
|
|
# VM. In order to guarantee that we are using IcedTea/OpenJDK |
|
|
|
# VM. In order to guarantee that we are using IcedTea/OpenJDK |
|
|
@ -81,14 +78,14 @@ pushd javazic |
|
|
|
# from "sun." to "rht.". Unfortunately, gcj does not support |
|
|
|
# from "sun." to "rht.". Unfortunately, gcj does not support |
|
|
|
# any of the -Xclasspath options, so we must go this route |
|
|
|
# any of the -Xclasspath options, so we must go this route |
|
|
|
# to ensure the greatest compatibility. |
|
|
|
# to ensure the greatest compatibility. |
|
|
|
mv sun rht |
|
|
|
#mv sun rht |
|
|
|
find . -type f -name '*.java' -print0 \ |
|
|
|
#find . -type f -name '*.java' -print0 \ |
|
|
|
| xargs -0 -- sed -i -e 's:sun\.tools\.:rht.tools.:g' \ |
|
|
|
# | xargs -0 -- sed -i -e 's:sun\.tools\.:rht.tools.:g' \ |
|
|
|
-e 's:sun\.util\.:rht.util.:g' |
|
|
|
# -e 's:sun\.util\.:rht.util.:g' |
|
|
|
popd |
|
|
|
#popd |
|
|
|
|
|
|
|
|
|
|
|
tar xf %{SOURCE4} |
|
|
|
#tar xf %{SOURCE4} |
|
|
|
%patch105 |
|
|
|
#%patch105 |
|
|
|
|
|
|
|
|
|
|
|
echo "%{name}%{tzdata_version}" >> VERSION |
|
|
|
echo "%{name}%{tzdata_version}" >> VERSION |
|
|
|
|
|
|
|
|
|
|
@ -103,35 +100,35 @@ zic -y ./yearistype -d zoneinfo/posix -L /dev/null $FILES |
|
|
|
zic -y ./yearistype -d zoneinfo/right -L leapseconds $FILES |
|
|
|
zic -y ./yearistype -d zoneinfo/right -L leapseconds $FILES |
|
|
|
|
|
|
|
|
|
|
|
# grep -v tz-art.htm tz-link.htm > tz-link.html |
|
|
|
# grep -v tz-art.htm tz-link.htm > tz-link.html |
|
|
|
|
|
|
|
# |
|
|
|
# Java 6/7 tzdata |
|
|
|
# Java 6/7 tzdata |
|
|
|
pushd javazic |
|
|
|
#pushd javazic |
|
|
|
javac -source 1.5 -target 1.5 -classpath . `find . -name \*.java` |
|
|
|
#javac -source 1.5 -target 1.5 -classpath . `find . -name \*.java` |
|
|
|
popd |
|
|
|
#popd |
|
|
|
|
|
|
|
# |
|
|
|
java -classpath javazic/ rht.tools.javazic.Main -V %{version} \ |
|
|
|
#java -classpath javazic/ rht.tools.javazic.Main -V %{version} \ |
|
|
|
-d javazi \ |
|
|
|
# -d javazi \ |
|
|
|
$FILES javazic/tzdata_jdk/gmt javazic/tzdata_jdk/jdk11_backward |
|
|
|
# $FILES javazic/tzdata_jdk/gmt javazic/tzdata_jdk/jdk11_backward |
|
|
|
|
|
|
|
|
|
|
|
# Java 8 tzdata |
|
|
|
# Java 8 tzdata |
|
|
|
pushd javazic-1.8 |
|
|
|
#pushd javazic-1.8 |
|
|
|
javac -source 1.7 -target 1.7 -classpath . `find . -name \*.java` |
|
|
|
#javac -source 1.7 -target 1.7 -classpath . `find . -name \*.java` |
|
|
|
popd |
|
|
|
#popd |
|
|
|
|
|
|
|
# |
|
|
|
java -classpath javazic-1.8 build.tools.tzdb.TzdbZoneRulesCompiler \ |
|
|
|
#java -classpath javazic-1.8 build.tools.tzdb.TzdbZoneRulesCompiler \ |
|
|
|
-srcdir . -dstfile tzdb.dat \ |
|
|
|
# -srcdir . -dstfile tzdb.dat \ |
|
|
|
-verbose \ |
|
|
|
# -verbose \ |
|
|
|
$FILES javazic-1.8/tzdata_jdk/gmt javazic-1.8/tzdata_jdk/jdk11_backward |
|
|
|
# $FILES javazic-1.8/tzdata_jdk/gmt javazic-1.8/tzdata_jdk/jdk11_backward |
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
%install |
|
|
|
rm -fr $RPM_BUILD_ROOT |
|
|
|
rm -fr $RPM_BUILD_ROOT |
|
|
|
install -d $RPM_BUILD_ROOT%{_datadir} |
|
|
|
install -d $RPM_BUILD_ROOT%{_datadir} |
|
|
|
cp -prd zoneinfo $RPM_BUILD_ROOT%{_datadir} |
|
|
|
cp -prd zoneinfo $RPM_BUILD_ROOT%{_datadir} |
|
|
|
install -p -m 644 zone.tab zone1970.tab iso3166.tab leapseconds tzdata.zi $RPM_BUILD_ROOT%{_datadir}/zoneinfo |
|
|
|
install -p -m 644 zone.tab zone1970.tab iso3166.tab leapseconds tzdata.zi $RPM_BUILD_ROOT%{_datadir}/zoneinfo |
|
|
|
cp -prd javazi $RPM_BUILD_ROOT%{_datadir}/javazi |
|
|
|
#cp -prd javazi $RPM_BUILD_ROOT%{_datadir}/javazi |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/javazi-1.8 |
|
|
|
#mkdir -p $RPM_BUILD_ROOT%{_datadir}/javazi-1.8 |
|
|
|
install -p -m 644 tzdb.dat $RPM_BUILD_ROOT%{_datadir}/javazi-1.8/ |
|
|
|
#install -p -m 644 tzdb.dat $RPM_BUILD_ROOT%{_datadir}/javazi-1.8/ |
|
|
|
|
|
|
|
|
|
|
|
%clean |
|
|
|
%clean |
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
@ -144,10 +141,10 @@ rm -rf $RPM_BUILD_ROOT |
|
|
|
%doc tz-link.html |
|
|
|
%doc tz-link.html |
|
|
|
%doc tz-art.html |
|
|
|
%doc tz-art.html |
|
|
|
|
|
|
|
|
|
|
|
%files java |
|
|
|
#%files java |
|
|
|
%defattr(-,root,root) |
|
|
|
#%defattr(-,root,root) |
|
|
|
%{_datadir}/javazi |
|
|
|
#%{_datadir}/javazi |
|
|
|
%{_datadir}/javazi-1.8 |
|
|
|
#%{_datadir}/javazi-1.8 |
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
%changelog |
|
|
|
* Sun Jan 24 2021 Patsy Griffin <patsy@redhat.com> - 2021a-1 |
|
|
|
* Sun Jan 24 2021 Patsy Griffin <patsy@redhat.com> - 2021a-1 |
|
|
|