commit 1b0927897fb7f8816c9b434f5a745057645487a708def9df73528f4acb528331 Author: OBS User unknown Date: Wed Sep 24 14:55:33 2008 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/javazic?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/javazic-fixup.patch b/javazic-fixup.patch new file mode 100644 index 0000000..67bd882 --- /dev/null +++ b/javazic-fixup.patch @@ -0,0 +1,34 @@ +--- sun/util/calendar/LocalGregorianCalendar.java.keiths 2007-09-07 14:48:19.000000000 -0700 ++++ sun/util/calendar/LocalGregorianCalendar.java 2007-09-07 14:52:58.000000000 -0700 +@@ -120,8 +120,7 @@ public class LocalGregorianCalendar exte + static LocalGregorianCalendar getLocalGregorianCalendar(String name) { + Properties calendarProps = null; + try { +- String homeDir = (String) AccessController.doPrivileged( +- new sun.security.action.GetPropertyAction("java.home")); ++ String homeDir = (String) System.getProperty("java.home"); + final String fname = homeDir + File.separator + "lib" + File.separator + + "calendars.properties"; + calendarProps = (Properties) AccessController.doPrivileged(new PrivilegedExceptionAction() { +--- sun/util/calendar/ZoneInfoFile.java.keiths 2007-09-07 14:54:58.000000000 -0700 ++++ sun/util/calendar/ZoneInfoFile.java 2007-09-07 14:55:36.000000000 -0700 +@@ -1021,8 +1021,7 @@ public class ZoneInfoFile { + byte[] buffer = null; + + try { +- String zi_dir = (String) AccessController.doPrivileged( +- new sun.security.action.GetPropertyAction("user.zoneinfo.dir")); ++ String zi_dir = (String) System.getProperty("user.zoneinfo.dir"); + File dir = null; + if (zi_dir != null) + dir = new File(zi_dir); +@@ -1035,8 +1034,7 @@ public class ZoneInfoFile { + } + + if (dir == null) { +- String homeDir = (String) AccessController.doPrivileged( +- new sun.security.action.GetPropertyAction("java.home")); ++ String homeDir = (String) System.getProperty("java.home"); + zi_dir = homeDir + File.separator + "lib" + File.separator + + "zi"; + } diff --git a/javazic.changes b/javazic.changes new file mode 100644 index 0000000..31dd0f4 --- /dev/null +++ b/javazic.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Sep 10 11:07:14 CEST 2008 - mvyskocil@suse.cz + +- Initial packaging of javazic (used for timezone-java package) + diff --git a/javazic.spec b/javazic.spec new file mode 100644 index 0000000..ef609a3 --- /dev/null +++ b/javazic.spec @@ -0,0 +1,70 @@ +# +# spec file for package javazic (Version 1.6.0) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: javazic +BuildRequires: gcc-java +BuildRequires: fastjar +License: GPL v2 only; GPLv2 with Classpath Exception +Summary: A time zone compiler for Java +Group: Development/Libraries/Java +# javazic source codes comes from openjdk6-b09 source archive +# see package java-1_6_0-java for details and source code +Version: 1.6.0 +Release: 2 +Url: http://icedtea.classpath.org +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +Source0: javazic.tar.gz +Patch0: javazic-fixup.patch + +%description +This is a time zone compiler for opensource Java Virtual Machine +derived from openjdk6 source code. + + + +%prep +%setup -q -c %{name}-%{version} +%patch0 -b .javazic-fixup + +%build +gcj -C $(find sun/ -iname '*.java') +echo "Main-Class: sun.tools.javazic.Main" > manifest.txt +fastjar -cfm %{name}-%{version}.jar manifest.txt $(find . -iname '*.class') + +%install +install -d -m 0755 $RPM_BUILD_ROOT/%{_javadir} +install -m 0644 %{name}-%{version}.jar $RPM_BUILD_ROOT/%{_javadir}/ +# jars +(cd $RPM_BUILD_ROOT%{_javadir}/ && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done) +install -d -m 0755 $RPM_BUILD_ROOT/%{_datadir}/%{name} +cp -rp tzdata_jdk $RPM_BUILD_ROOT/%{_datadir}/%{name}/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,0755) +%{_javadir}/%{name}*.jar +%{_datadir}/%{name} + +%changelog +* Wed Sep 10 2008 mvyskocil@suse.cz +- Initial packaging of javazic (used for timezone-java package) diff --git a/javazic.tar.gz b/javazic.tar.gz new file mode 100644 index 0000000..2dab533 --- /dev/null +++ b/javazic.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb7cc0c75205e6aed9cf6dee2a9c84f5a91e3790afadb8f3361b849ddf642838 +size 57271 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4