- rel 2; BR just jdk instead of java-sun
[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 #       - libCG*.so isn't required, package shouldn't provide libj3dcore-ogl*.so
5 #
6 Summary:        An interior design application
7 Name:           SweetHome3D
8 Version:        3.2
9 Release:        2
10 License:        GPL v2
11 Group:          X11/Applications
12 Source0:        http://downloads.sourceforge.net/sweethome3d/%{name}-%{version}-src.zip
13 # Source0-md5:  73ae64a8d5cfd418df79619d4b792ea9
14 URL:            http://www.sweethome3d.com/
15 BuildRequires:  ant
16 BuildRequires:  jdk
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 An interior design application.
21
22 %prep
23 %setup -q -n %{name}-%{version}-src
24 %{__sed} -e 's#exec "$PROGRAM_DIR"/jre1.6.0_23/bin/java#env java#g; 3,8 c\PROGRAM_DIR=%{_javadir}/SweetHome3D' \
25         -e 's#:"$PROGRAM_DIR"/jre1.6.0_23/lib/javaws.jar#:%{_jvmlibdir}/java/jre/lib/javaws.jar#' -i install/linux/SweetHome3D
26 #       -e 's/$1/"$1"/' \
27
28 %build
29 %ant application furniture textures help
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}/%{name}/lib}
35
36 install install/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
37 install -p build/*.jar lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
38 %ifarch %{ix86}
39 install -p lib/linux/i386/libj3dcore-ogl*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
40 %endif
41 %ifarch %{x8664}
42 install -p lib/linux/x64/libj3dcore-ogl.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
43 %endif
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc LICENSE.TXT THIRDPARTY-LICENSE-*.TXT
51 %attr(755,root,root) %{_bindir}/%{name}
52 %{_javadir}/%{name}
This page took 0.153355 seconds and 3 git commands to generate.