From b42d01db57e9f0f4a039ed0897f6d86b5527ea0d Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 00:03:24 +0100 Subject: [PATCH] update to 0.5.2 [release 0.5.2-1mamba;Fri Feb 04 2011] --- README.md | 7 + java-flexdock-0.5.2-AllDemos.patch | 10 ++ java-flexdock-0.5.2-ResourceManager.patch | 11 ++ java-flexdock-0.5.2-build_xml.patch | 163 ++++++++++++++++++++++ java-flexdock.spec | 148 ++++++++++++++++++++ 5 files changed, 339 insertions(+) create mode 100644 java-flexdock-0.5.2-AllDemos.patch create mode 100644 java-flexdock-0.5.2-ResourceManager.patch create mode 100644 java-flexdock-0.5.2-build_xml.patch create mode 100644 java-flexdock.spec diff --git a/README.md b/README.md index 9ca8c2d..8216491 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ # java-flexdock +A Java docking framework for use in cross-platform Swing applications. It offers features you'd expect in any desktop docking framework such as: +* Tabbed and Split Layouts +* Drag-n-Drop capability (with native drag rubber band painting on some platforms) +* Floating windows +* Collapsible Containers to Save Real Estate +* Layout Persistence + diff --git a/java-flexdock-0.5.2-AllDemos.patch b/java-flexdock-0.5.2-AllDemos.patch new file mode 100644 index 0000000..0bed28a --- /dev/null +++ b/java-flexdock-0.5.2-AllDemos.patch @@ -0,0 +1,10 @@ +--- src/java/demo/org/flexdock/demos/AllDemos.java 2007-01-11 21:52:00.000000000 +0100 ++++ src/java/demo/org/flexdock/demos/AllDemos.java-gil 2011-02-04 12:20:09.000000000 +0100 +@@ -33,7 +33,6 @@ + "org.flexdock.demos.raw.border.BorderDemo", + "org.flexdock.demos.raw.CompoundDemo", + "org.flexdock.demos.raw.elegant.ElegantDemo", +- "org.flexdock.demos.raw.jmf.JMFDemo", + "org.flexdock.demos.raw.SimpleDemo", + "org.flexdock.demos.raw.SplitPaneDemo", + "org.flexdock.demos.raw.TabbedPaneDemo", diff --git a/java-flexdock-0.5.2-ResourceManager.patch b/java-flexdock-0.5.2-ResourceManager.patch new file mode 100644 index 0000000..7c5bb61 --- /dev/null +++ b/java-flexdock-0.5.2-ResourceManager.patch @@ -0,0 +1,11 @@ +--- src/java/core/org/flexdock/util/ResourceManager.java 2007-01-02 16:15:46.000000000 +0100 ++++ src/java/core/org/flexdock/util/ResourceManager.java-gil 2011-02-04 12:17:36.000000000 +0100 +@@ -313,7 +313,7 @@ + } + + // determine a file from which we can load our library. +- File file = new File(System.getProperty("user.home") + "/flexdock"); ++ File file = new File("/usr/lib/java"); + file.mkdirs(); + file = new File(file.getAbsolutePath() + "/" + library + + LIBRARY_EXTENSION); diff --git a/java-flexdock-0.5.2-build_xml.patch b/java-flexdock-0.5.2-build_xml.patch new file mode 100644 index 0000000..bec5278 --- /dev/null +++ b/java-flexdock-0.5.2-build_xml.patch @@ -0,0 +1,163 @@ +--- build.xml 2010-08-18 17:44:16.000000000 +0200 ++++ build.xml-gil 2011-02-04 12:14:33.000000000 +0100 +@@ -40,6 +40,7 @@ + + + ++ + + + +@@ -118,7 +119,7 @@ + + + +- ++ + + + +@@ -135,7 +136,7 @@ + + + ++ description="Compile java sources for the framework and tests"> + + + +@@ -145,12 +146,10 @@ + + + +- +- + + + +- + + +@@ -291,12 +290,15 @@ + + + +- +- ++ ++ ++ ++ + + + + ++ + + + +@@ -333,8 +335,7 @@ + See: http://forum.java.sun.com/thread.jspa?forumID=22&threadID=568620, + I believe this BUG is the cause: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4490798 --> + +- +- ++ + + + +@@ -361,7 +362,7 @@ + + + +- ++ + + + +@@ -414,60 +415,6 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + +@@ -555,9 +502,7 @@ + + + +- + +- + + + +@@ -567,12 +512,6 @@ + jarname="${build.dir}/${dist.jar.name}" + sjarname="${bin.dir.webstart}/${dist.jar.name}"/> + +- +- + +URL: https://flexdock.dev.java.net +Source: https://flexdock.dev.java.net/files/documents/2037/152436/flexdock-%{version}-src.zip +# remove window stuff, compile native, crosslink for javadoc, set X11 include dir, remove classpath from flexdock demo jar +Patch0: java-flexdock-0.5.2-build_xml.patch +Patch1: java-flexdock-0.5.2-ResourceManager.patch +Patch2: java-flexdock-0.5.2-AllDemos.patch +License: MIT +BuildRequires: apache-ant +BuildRequires: apache-ant-regexp +BuildRequires: jakarta-commons-logging == 1.1.1 +BuildRequires: java-openjdk-javadoc +## AUTOBUILDREQ-BEGIN +BuildRequires: apache-ant-commons-logging +BuildRequires: glibc-devel +BuildRequires: java-openjdk +BuildRequires: java-skinlf +BuildRequires: jgoodies-looks +BuildRequires: jpackage-utils +BuildRequires: libX11-devel +## AUTOBUILDREQ-END +Requires: apache-ant-commons-logging +Requires: java-openjdk +Requires: java-skinlf +Requires: jgoodies-looks +Requires: jpackage-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A Java docking framework for use in cross-platform Swing applications. It offers features you'd expect in any desktop docking framework such as: +* Tabbed and Split Layouts +* Drag-n-Drop capability (with native drag rubber band painting on some platforms) +* Floating windows +* Collapsible Containers to Save Real Estate +* Layout Persistence + +%package javadoc +Group: Documentation +Summary: Javadoc for %{name} + +%description javadoc +A Java docking framework for use in cross-platform Swing applications. + +This package contains documentation for %{name}. + +%prep + +%setup -q -c %{name}-%{version} + +%patch0 -p0 +%patch1 -p0 +%patch2 -p0 + +for j in $(find . -name "*.jar"); do + rm -rf $j +done + +for o in $(find . -name "*.so"); do + rm -rf $o +done + +for d in $(find . -name "*.dll"); do + rm -rf $d +done + +# rm -rf ./lib/looks-2.1.1.jar +ln -sf $(build-classpath jgoodies-looks) lib/looks-2.1.1.jar +# rm -rf ./lib/commons-logging-1.1.jar +ln -sf $(build-classpath commons-logging) lib/commons-logging-1.1.jar + +# only for flexdock-demo jar +# rm -rf ./lib/jmf/lib/customizer.jar +# rm -rf ./lib/jmf/lib/multiplayer.jar +# rm -rf ./lib/jmf/lib/jmf.jar +# rm -rf ./lib/jmf/lib/mediaplayer.jar +rm -rf src/java/demo/org/flexdock/demos/raw/jmf + +# rm -rf ./lib/skinlf.jar +ln -sf $(build-classpath skinlf) lib/skinlf.jar + +echo "sdk.home=%javahome" > workingcopy.properties + +for i in README-RELEASE LICENSE.txt README release-notes.txt ; do + sed -i 's/\r//' $i +done + +%build + +export CLASSPATH=$(build-classpath jgoodies-looks ant/ant-apache-regexp ant/ant-commons-logging skinlf commons-logging) +ant -v -Dbuild.sysclasspath=first build.with.native jar +ant -v -Dbuild.sysclasspath=first compile.native +ant -Dj2se.api=%{_javadocdir}/java javadoc + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_jnidir} + +install -pm 644 build/flexdock-%{version}.jar \ + %{buildroot}%{_jnidir}/ + +SOFILE=$(find . -name "libRubberBand*so") +install -pm755 $SOFILE %{buildroot}%{_jnidir}/libRubberBand-0.so + +( + cd %{buildroot}%{_jnidir} + for jar in *-%{version}*; do + ln -sf ${jar} ${jar/-%{version}/} + done +) + +mkdir -p %{buildroot}%{_javadocdir}/flexdock +cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/flexdock + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_jnidir}/flexdock-%{version}.jar +%{_jnidir}/flexdock.jar +%{_jnidir}/libRubberBand-0.so +%doc README README-BUILD README-RELEASE + +%files javadoc +%defattr(-,root,root) +%{_javadocdir}/flexdock + +%changelog +* Fri Feb 04 2011 gil 0.5.2-1mamba +- update to 0.5.2 + +* Fri Feb 04 2011 gil 0.5.1-2mamba +- rebuilt with openjdk support +- add sub package: javadoc +- rebuilt with system libraries +- built libRubberBand + +* Fri Nov 21 2008 Silvan Calarco src-1mamba +- package created by autospec