9df4d0ed417d12a5ace16da29051ae91853f02eb
[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:        3
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 %define         _noautoreq      'libCg.so(VERSION)' 'libCgGL.so(VERSION)'
20
21 %description
22 An interior design application.
23
24 %prep
25 %setup -q -n %{name}-%{version}-src
26 %{__sed} -e 's#exec "$PROGRAM_DIR"/jre1.6.0_23/bin/java#env java#g; 3,8 c\PROGRAM_DIR=%{_javadir}/SweetHome3D' \
27         -e 's#:"$PROGRAM_DIR"/jre1.6.0_23/lib/javaws.jar#:%{_jvmlibdir}/java/jre/lib/javaws.jar#' -i install/linux/SweetHome3D
28 #       -e 's/$1/"$1"/' \
29
30 %build
31 %ant application furniture textures help
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35
36 install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}/%{name}/lib}
37
38 install install/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
39 install -p build/*.jar lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
40 %ifarch %{ix86}
41 install -p lib/linux/i386/libj3dcore-ogl*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
42 %endif
43 %ifarch %{x8664}
44 install -p lib/linux/x64/libj3dcore-ogl.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
45 %endif
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc LICENSE.TXT THIRDPARTY-LICENSE-*.TXT
53 %attr(755,root,root) %{_bindir}/%{name}
54 %{_javadir}/%{name}
This page took 0.056124 seconds and 2 git commands to generate.