Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:hschaa:SweetHome3D
SweetHome3D
SweetHome3D.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File SweetHome3D.spec of Package SweetHome3D
# Copyright (c) 2006-2008 oc2pus # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments to toni@links2linux.de # norootforbuild Name: SweetHome3D Version: 1.5.1 Release: 0 Summary: An application for placing your furniture on a house 2D plan, with a 3D preview License: GPL URL: http://sweethome3d.sourceforge.net/ Group: Productivity/Graphics/3D Editors Source0: %{name}-%{version}-src.zip Source1: %{name}.png Source10: 3DModels-Contributions-1.0.1.zip Source11: 3DModels-KatorLegaz-1.0.1.zip Source12: 3DModels-Scopia-1.0.1.zip BuildRequires: ant BuildRequires: dos2unix %if %suse_version >= 1100 BuildRequires: java-1_6_0-openjdk-devel %else BuildRequires: java-1_5_0-sun-devel %endif BuildRequires: java3d BuildRequires: unzip BuildRequires: update-alternatives BuildRequires: update-desktop-files BuildRequires: xerces-j2 %if %suse_version > 1100 BuildRequires: xmlbeans %endif BuildRequires: xml-commons-apis Requires: java >= 1.5 Requires: java3d >= 1.5.2 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Sweet Home 3D is a free application that helps you placing your furniture on a house 2D plan, with a 3D preview. %package 3DModels Summary: Some extra 3DModels for SweetHome3D. Group: Productivity/Graphics/3D Editors Requires: %{name} Enhances: %{name} %description 3DModels Some extra 3DModels for SweetHome3D. This package contains: * 3DModels-Contributions-1.0.1.zip * 3DModels-KatorLegaz-1.0.1.zip * 3DModels-Scopia-1.0.1.zip %prep %setup -q -n %{name}-%{version}-src %__rm -r lib/linux %__rm -r lib/macosx %__rm -r lib/windows # java3d %__rm lib/j3d*.jar %__rm lib/vecmath*.jar ln -s %{_javadir}/java3d/*.jar lib dos2unix *.TXT %__chmod 644 *.TXT %__install -dm 755 3DModels-Contributions pushd 3DModels-Contributions unzip -q %{SOURCE10} %__mv README.TXT README-3DModels-Contributions.txt %__mv LICENSE.TXT LICENSE-3DModels-Contributions.txt popd %__install -dm 755 3DModels-KatorLegaz pushd 3DModels-KatorLegaz unzip -q %{SOURCE11} %__mv README.TXT README-3DModels-KatorLegaz.txt %__mv LICENSE.TXT LICENSE-3DModels-KatorLegaz.txt popd %__install -dm 755 3DModels-Scopia pushd 3DModels-Scopia unzip -q %{SOURCE12} %__mv README.TXT README-3DModels-Scopia.txt %__mv LICENSE.TXT LICENSE-3DModels-Scopia.txt popd %build %ant application furniture textures help %install # jars %__install -dm 755 %{buildroot}%{_javadir}/%{name} %__install -pm 644 build/%{name}.jar \ %{buildroot}%{_javadir}/%{name}/%{name}-%{version}.jar pushd %{buildroot}%{_javadir}/%{name} for jar in *-%{version}*; do ln -sf ${jar} `echo $jar | sed "s|-%{version}||g"` done popd for i in Furniture Textures Help; do %__install -pm 644 build/$i.jar \ %{buildroot}%{_javadir}/%{name} done # remove java3d links %__rm lib/j3d*.jar lib/vecmath.jar # copy other unpackaged libs %__install -pm 644 lib/*.jar \ %{buildroot}%{_javadir}/%{name} %__install -pm 644 libtest/jnlp.jar \ %{buildroot}%{_javadir}/%{name} # startscript %__install -dm 755 %{buildroot}%{_bindir} %__cat > %{name}.sh << EOF #!/bin/sh # source the jpackage helpers VERBOSE=1 . %{_javadir}-utils/java-functions # set JAVA_* environment variables set_javacmd check_java_env set_jvm_dirs set_options "-Djava.library.path="/usr/lib64:/usr/lib"" CLASSPATH=\`build-classpath %{name} java3d\` MAIN_CLASS="com.eteks.sweethome3d.SweetHome3D" # add some extra catalogs if they exist if [ ! -d \$HOME/.eteks/sweethome3d/furniture ]; then mkdir -p \$HOME/.eteks/sweethome3d/furniture for i in Contributions KatorLegaz Scopia; do if [ -f %{_datadir}/%{name}/$i.sh3f ]; then ln -s %{_datadir}/%{name}/$i.sh3f \ \$HOME/.eteks/sweethome3d/furniture fi done fi run EOF %__install -m 755 %{name}.sh \ %{buildroot}%{_bindir} %__install -dm 755 %{buildroot}%{_datadir}/%{name} for i in Contributions KatorLegaz Scopia; do %__install -m 644 3DModels-$i/*.sh3f \ %{buildroot}%{_datadir}/%{name} done # icon and menu-entry %__install -dm 755 %{buildroot}%{_datadir}/pixmaps %__install -m 644 %{SOURCE1} \ %{buildroot}%{_datadir}/pixmaps %__cat > %{name}.desktop << EOF [Desktop Entry] Comment=A application that helps you placing your furniture on a house 2D plan, with a 3D preview Name=Sweet Home 3D GenericName= Type=Application Exec=%{name}.sh Icon=%{name}.png Encoding=UTF-8 Terminal=false Categories=Graphics;3DGraphics; EOF %suse_update_desktop_file -i %{name} Graphics 3DGraphics %clean [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" %files %defattr(-,root,root,-) %doc COPYING.TXT %{_bindir}/%{name}.sh %dir %{_javadir}/%{name} %{_javadir}/%{name}/*.jar %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/%{name}.desktop %files 3DModels %defattr(-,root,root,-) %doc 3DModels-Contributions/*.txt %doc 3DModels-KatorLegaz/*.txt %doc 3DModels-Scopia/*.txt %dir %{_datadir}/%{name} %{_datadir}/%{name}/*.sh3f %changelog * Wed Dec 17 2008 Toni Graffy <toni@links2linux.de> - 1.5.1-0.pm.1 - update to 1.5.1 * Tue Dec 09 2008 Toni Graffy <toni@links2linux.de> - 1.5-0.pm.1 - update to 1.5 * Wed Oct 08 2008 Toni Graffy <toni@links2linux.de> - 1.4-0.pm.2 - added some 3DModels as subpackage * Tue Oct 07 2008 Toni Graffy <toni@links2linux.de> - 1.4-0.pm.1 - update to 1.4 - dropped own build.xml as upstream provides one * Thu Aug 28 2008 Toni Graffy <toni@links2linux.de> - 1.3.1-0.pm.1 - update to 1.3.1 * Wed Apr 30 2008 Toni Graffy <toni@links2linux.de> - 1.3-0.pm.1 - update to 1.3 * Thu Feb 14 2008 Toni Graffy <toni@links2linux.de> - 1.2.1-0.pm.1 - update to 1.2.1 * Wed Nov 07 2007 Toni Graffy <toni@links2linux.de> - 1.2-0.pm.1 - update to 1.2 - using internal vecmath-1.3 * Mon Sep 24 2007 Toni Graffy <toni@links2linux.de> - 1.1-0.pm.1 - update to 1.1 * Wed Sep 12 2007 Toni Graffy <toni@links2linux.de> - 1.0-0.pm.1 - update to 1.0 - using PM-vecmath package * Sat Jul 21 2007 Toni Graffy <toni@links2linux.de> - 0.18-0.pm.1 - update to 0.18 * Mon Jun 11 2007 Toni Graffy <toni@links2linux.de> - 0.15-0.pm.1 - update to 0.15 * Tue May 29 2007 Toni Graffy <toni@links2linux.de> - 0.12-0.pm.1 - update to 0.12 * Sun Feb 11 2007 Toni Graffy <toni@links2linux.de> - 0.10.0-0.pm.2 - added /usr/lib64 in startscript * Thu Nov 16 2006 Toni Graffy <toni@links2linux.de> - 0.10.0-0.pm.1 - Initial build 0.10.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor