- no java-sun for pre-i586
[packages/SweetHome3D.git] / SweetHome3D.spec
CommitLineData
2b696d1a
TP
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#
23c91702
ZU
6Summary: An interior design application
7Name: SweetHome3D
2b696d1a
TP
8Version: 3.2
9Release: 1
10License: GPL v2
11Group: X11/Applications
12Source0: http://downloads.sourceforge.net/sweethome3d/%{name}-%{version}-src.zip
13# Source0-md5: 73ae64a8d5cfd418df79619d4b792ea9
23c91702 14URL: http://www.sweethome3d.com/
2b696d1a
TP
15BuildRequires: ant
16BuildRequires: java-sun
c71962e7 17ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664}
23c91702
ZU
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21An interior design application.
22
23%prep
2b696d1a
TP
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"/' \
23c91702
ZU
28
29%build
2b696d1a 30%ant application furniture textures help
23c91702
ZU
31
32%install
33rm -rf $RPM_BUILD_ROOT
34
2b696d1a 35install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}/%{name}/lib}
23c91702 36
2b696d1a
TP
37install install/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
38install -p build/*.jar lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
39%ifarch %{ix86}
40install -p lib/linux/i386/libj3dcore-ogl*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
41%endif
42%ifarch %{x8664}
43install -p lib/linux/x64/libj3dcore-ogl.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
44%endif
23c91702
ZU
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%files
50%defattr(644,root,root,755)
2b696d1a 51%doc LICENSE.TXT THIRDPARTY-LICENSE-*.TXT
23c91702
ZU
52%attr(755,root,root) %{_bindir}/%{name}
53%{_javadir}/%{name}
This page took 0.163723 seconds and 4 git commands to generate.