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