- upgraded to 3.2, switched to build bytecode and resource jars from sources, auto/th/SweetHome3D-3_2-1
authorTomasz Pala <gotar@pld-linux.org>
Wed, 29 Jun 2011 18:53:30 +0000 (18:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fixed javaws.jar path for the program to work, some lib issues still to resolve

Changed files:
    SweetHome3D.spec -> 1.3

SweetHome3D.spec

index 94b231025aca69d99f08152d2a1dd0136504b242..15dd5117eb2b47bea07385f923fd7040d4cff252 100644 (file)
@@ -1,55 +1,53 @@
-# TODO
-#$ SweetHome3D 
-# Exception in thread "main" java.lang.NoClassDefFoundError: javax/jnlp/UnavailableServiceException
-# Caused by: java.lang.ClassNotFoundException: javax.jnlp.UnavailableServiceException
-#      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
-#      at java.security.AccessController.doPrivileged(Native Method)
-#      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
-#      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
-#      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
-#      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
-# Could not find the main class: com.eteks.sweethome3d.SweetHome3D.  Program will exit.
+#
+# TODO:        - use system java3d (it's GPL now), maybe other libs too
+#      - build and package applet
+#      - libCG*.so isn't required, package shouldn't provide libj3dcore-ogl*.so
+#
 Summary:       An interior design application
 Name:          SweetHome3D
-Version:       3.0
-Release:       0.1
-License:       GPL
-Group:         Applications
-Source0:       http://downloads.sourceforge.net/sweethome3d/%{name}-%{version}-linux-x86.tgz
-# Source0-md5: 75d12e5972053ace7583a33c03afccc3
-Source1:       http://downloads.sourceforge.net/sweethome3d/%{name}-%{version}-linux-x64.tgz
-# Source1-md5: 21fbfcd53c71b2f730f4bba5f5082092
+Version:       3.2
+Release:       1
+License:       GPL v2
+Group:         X11/Applications
+Source0:       http://downloads.sourceforge.net/sweethome3d/%{name}-%{version}-src.zip
+# Source0-md5: 73ae64a8d5cfd418df79619d4b792ea9
 URL:           http://www.sweethome3d.com/
+BuildRequires: ant
+BuildRequires: java-sun
+ExclusiveArch: %{ix86} %{x8664}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 An interior design application.
 
 %prep
-%ifarch %{ix86}
-%setup -q -T -b0
-%endif
-%ifarch %{x8664}
-%setup -q -T -b1
-%endif
-
-%{__sed} -i 's#exec "$PROGRAM_DIR"/jre1.6.0_22/bin/java#env java#g; 3,8 c\PROGRAM_DIR=%{_javadir}/SweetHome3D' SweetHome3D
+%setup -q -n %{name}-%{version}-src
+%{__sed} -e 's#exec "$PROGRAM_DIR"/jre1.6.0_23/bin/java#env java#g; 3,8 c\PROGRAM_DIR=%{_javadir}/SweetHome3D' \
+       -e 's#:"$PROGRAM_DIR"/jre1.6.0_23/lib/javaws.jar#:%{_jvmlibdir}/java/jre/lib/javaws.jar#' -i install/linux/SweetHome3D
+#      -e 's/$1/"$1"/' \
 
 %build
+%ant application furniture textures help
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_bindir}
-install %{name} $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}/%{name}/lib}
 
-install -d $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
-install lib/* $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
+install install/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
+install -p build/*.jar lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
+%ifarch %{ix86}
+install -p lib/linux/i386/libj3dcore-ogl*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
+%endif
+%ifarch %{x8664}
+install -p lib/linux/x64/libj3dcore-ogl.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc LICENSE.TXT THIRDPARTY-LICENSE-*.TXT
 %attr(755,root,root) %{_bindir}/%{name}
 %{_javadir}/%{name}
This page took 0.06372 seconds and 4 git commands to generate.