forked from pool/appframework
This commit is contained in:
commit
acf5dc0f3f
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
AppFramework-1.03-src.tar.bz2
Normal file
3
AppFramework-1.03-src.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:108eb17f05201ad74b2c77d313a46091a7ac5dc73d644bbd2397af99d0e8eaa5
|
||||
size 264479
|
47
appframework-1.03-no-local-storage.diff
Normal file
47
appframework-1.03-no-local-storage.diff
Normal file
@ -0,0 +1,47 @@
|
||||
--- src/org/jdesktop/application/LocalStorage.orig 2007-12-13 10:40:54.000000000 +0100
|
||||
+++ src/org/jdesktop/application/LocalStorage.java 2007-12-13 10:42:01.000000000 +0100
|
||||
@@ -31,11 +31,6 @@
|
||||
import java.security.PrivilegedAction;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
-import javax.jnlp.BasicService;
|
||||
-import javax.jnlp.FileContents;
|
||||
-import javax.jnlp.PersistenceService;
|
||||
-import javax.jnlp.ServiceManager;
|
||||
-import javax.jnlp.UnavailableServiceException;
|
||||
|
||||
|
||||
/**
|
||||
@@ -377,7 +372,7 @@
|
||||
}
|
||||
}
|
||||
if (bsFound && psFound) {
|
||||
- return new PersistenceServiceIO();
|
||||
+ //return new PersistenceServiceIO();
|
||||
}
|
||||
}
|
||||
catch (Exception ignore) {
|
||||
@@ -385,7 +380,7 @@
|
||||
}
|
||||
return null;
|
||||
}
|
||||
-
|
||||
+/*
|
||||
private class PersistenceServiceIO extends LocalIO {
|
||||
private BasicService bs;
|
||||
private PersistenceService ps;
|
||||
@@ -442,7 +437,7 @@
|
||||
catch (FileNotFoundException e) {
|
||||
/* Verify that the max size for new PersistenceService
|
||||
* files is >= 100K (2^17) before opening one.
|
||||
- */
|
||||
+ * /
|
||||
long maxSizeRequest = 131072L;
|
||||
long maxSize = ps.create(fileURL, maxSizeRequest);
|
||||
if (maxSize >= maxSizeRequest) {
|
||||
@@ -473,4 +468,5 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
+ */
|
||||
}
|
47
appframework-1.03-openjdk.diff
Normal file
47
appframework-1.03-openjdk.diff
Normal file
@ -0,0 +1,47 @@
|
||||
diff -Nur AppFramework-1.03/nbproject/project.properties AppFramework-1.03.new/nbproject/project.properties
|
||||
--- AppFramework-1.03/nbproject/project.properties 2007-09-20 17:29:34.000000000 +0400
|
||||
+++ AppFramework-1.03.new/nbproject/project.properties 2008-07-15 21:18:28.000000000 +0400
|
||||
@@ -16,9 +16,15 @@
|
||||
dist.dir=dist
|
||||
dist.jar=${dist.dir}/AppFramework.jar
|
||||
dist.javadoc.dir=${dist.dir}/javadoc
|
||||
-file.reference.swing-worker.jar=lib/swing-worker.jar
|
||||
+# As of Java 6, SwingWorker is included in the JRE.
|
||||
+# file.reference.swing-worker.jar=lib/swing-worker.jar
|
||||
+# The SwingWorker class isn't accessible in OpenJDK until rt.jur is added to classpath.
|
||||
+file.reference.swing-worker.jar=/usr/lib/jvm/java/jre/lib/rt.jar
|
||||
osx.jnlp.classpath=/Applications/Utilities/Java/Java\ Web\ Start.app/Contents/MacOS/javaws.jar
|
||||
-jnlp.classpath=${java.home}/lib/javaws.jar
|
||||
+# In OpenJDK (java-1.6.0-openjdk-1.6.0.0-0.10.b09.fc9) the classes of the javaws.jar are placed into rt.jar.
|
||||
+# jnlp.classpath=${java.home}/lib/javaws.jar
|
||||
+# The classes of the javax.jnlp package aren't accessible in OpenJDK until rt.jar is added to classpath.
|
||||
+jnlp.classpath=/usr/lib/jvm/java/jre/lib/rt.jar
|
||||
jar.compress=false
|
||||
javac.classpath=\
|
||||
${jnlp.classpath}:\
|
||||
diff -Nur AppFramework-1.03/src/org/jdesktop/application/Task.java AppFramework-1.03.new/src/org/jdesktop/application/Task.java
|
||||
--- AppFramework-1.03/src/org/jdesktop/application/Task.java 2007-10-31 16:04:48.000000000 +0300
|
||||
+++ AppFramework-1.03.new/src/org/jdesktop/application/Task.java 2008-07-16 01:02:49.000000000 +0400
|
||||
@@ -15,8 +15,8 @@
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
-import org.jdesktop.swingworker.SwingWorker;
|
||||
-import org.jdesktop.swingworker.SwingWorker.StateValue;
|
||||
+import javax.swing.SwingWorker;
|
||||
+import javax.swing.SwingWorker.StateValue;
|
||||
|
||||
|
||||
/**
|
||||
diff -Nur AppFramework-1.03/src/org/jdesktop/application/TaskMonitor.java AppFramework-1.03.new/src/org/jdesktop/application/TaskMonitor.java
|
||||
--- AppFramework-1.03/src/org/jdesktop/application/TaskMonitor.java 2007-09-20 17:29:36.000000000 +0400
|
||||
+++ AppFramework-1.03.new/src/org/jdesktop/application/TaskMonitor.java 2008-07-16 01:01:10.000000000 +0400
|
||||
@@ -9,7 +9,7 @@
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
-import org.jdesktop.swingworker.SwingWorker.StateValue;
|
||||
+import javax.swing.SwingWorker.StateValue;
|
||||
|
||||
|
||||
/**
|
5
appframework.changes
Normal file
5
appframework.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 19 11:29:09 CEST 2009 - mvyskocil@suse.cz
|
||||
|
||||
- 'Initial SUSE packaging (From Fedora 11)'
|
||||
|
93
appframework.spec
Normal file
93
appframework.spec
Normal file
@ -0,0 +1,93 @@
|
||||
#
|
||||
# spec file for package appframework (Version 1.03)
|
||||
#
|
||||
# Copyright (c) 2009 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/
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: appframework
|
||||
Version: 1.03
|
||||
Release: 2
|
||||
Summary: Swing Application Framework
|
||||
License: LGPL v2.0 or later
|
||||
Url: https://appframework.dev.java.net/
|
||||
Group: Development/Libraries/Java
|
||||
Source0: https://appframework.dev.java.net/downloads/AppFramework-%{version}-src.tar.bz2
|
||||
Patch0: %{name}-%{version}-no-local-storage.diff
|
||||
Patch1: %{name}-%{version}-openjdk.diff
|
||||
BuildRequires: ant
|
||||
BuildRequires: ant-nodeps
|
||||
BuildRequires: ant-junit
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: swing-layout >= 1.0.3
|
||||
Requires: java
|
||||
Requires: jpackage-utils
|
||||
Requires: swing-layout >= 1.0.3
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
The JSR-296 Swing Application Framework prototype implementation is a
|
||||
small set of Java classes that simplify building desktop applications.
|
||||
|
||||
|
||||
|
||||
%package javadoc
|
||||
License: LGPL v2.0 or later
|
||||
Summary: Swing Application Framework
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description javadoc
|
||||
The JSR-296 Swing Application Framework prototype implementation is a
|
||||
small set of Java classes that simplify building desktop applications.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n AppFramework-%{version}
|
||||
# remove all binary libs
|
||||
find . -name "*.jar" -exec %{__rm} -f {} \;
|
||||
%patch0 -b .sav
|
||||
%patch1 -p1 -b .sav
|
||||
|
||||
%build
|
||||
%{ant} -Dlibs.swing-layout.classpath=%{_javadir}/swing-layout.jar dist
|
||||
|
||||
%install
|
||||
# jar
|
||||
%{__install} -d -m 755 %{buildroot}%{_javadir}
|
||||
%{__install} -m 644 dist/AppFramework-1.03.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
%{__ln_s} %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
# javadoc
|
||||
%{__install} -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
%{__cp} -pr dist/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_javadir}/*
|
||||
%doc COPYING README
|
||||
|
||||
%files javadoc
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_javadocdir}/%{name}-%{version}
|
||||
%{_javadocdir}/%{name}-%{version}/*
|
||||
|
||||
%changelog
|
||||
* Tue May 19 2009 mvyskocil@suse.cz
|
||||
- 'Initial SUSE packaging (From Fedora 11)'
|
Loading…
x
Reference in New Issue
Block a user