1a3db90feceb8f486af474ea06e62bda9e23f782
[packages/SweetHome3D.git] / SweetHome3D.spec
1 #
2 # TODO: - use system java3d (it's GPL now), maybe other libs too
3 #       - build and package applet
4 #
5 Summary:        An interior design application
6 Summary(pl.UTF-8):      Aplikacja do projektowania wnętrz
7 Name:           SweetHome3D
8 Version:        6.4.2
9 Release:        1
10 License:        GPL v2
11 Group:          X11/Applications
12 Source0:        http://downloads.sourceforge.net/sweethome3d/%{name}-%{version}-src.zip
13 # Source0-md5:  488847dfe26fb099feec7d10ce154dcd
14 URL:            http://www.sweethome3d.com/
15 BuildRequires:  ant
16 BuildRequires:  jdk >= 1.5
17 BuildRequires:  sed >= 4.0
18 # because of binary libs
19 ExclusiveArch:  %{ix86} %{x8664}
20 ExcludeArch:    i386 i486
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 An interior design application.
25
26 %description -l pl.UTF-8
27 Aplikacja do projektowania wnętrz.
28
29 %prep
30 %setup -q -n %{name}-%{version}-src
31
32 %{__sed} -e 's#exec "$PROGRAM_DIR"/jre8/bin/java#env java#; 3,8 c\PROGRAM_DIR=%{_javadir}/SweetHome3D' \
33         -e 's#jogl-java3d.jar#&:"$PROGRAM_DIR"/lib/java3d-1.6/jogl-all.jar#' \
34         -e 's#:"$PROGRAM_DIR"/jre8/lib/javaws.jar#:%{_jvmlibdir}/java/jre/lib/javaws.jar#' -i install/linux/SweetHome3D
35
36 %build
37 %ant application furniture textures help
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}/%{name}/lib/java3d-1.6}
42
43 install install/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
44 cp -p build/*.jar lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
45 %{__rm} $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/{j3dcore,j3dutils,vecmath}.jar
46 cp -p lib/java3d-1.6/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/java3d-1.6
47
48 %ifarch %{ix86}
49 install -p lib/java3d-1.6/linux/i586/*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/java3d-1.6
50 %endif
51 %ifarch %{x8664}
52 install -p lib/java3d-1.6/linux/amd64/*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/java3d-1.6
53 %endif
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc LICENSE.TXT THIRDPARTY-LICENSE-*.TXT
61 %attr(755,root,root) %{_bindir}/%{name}
62 %{_javadir}/%{name}
This page took 0.23376 seconds and 2 git commands to generate.