Except false-positives from deps
[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 8Version: 3.2
340d40d3 9Release: 3
2b696d1a
TP
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 15BuildRequires: ant
b5a95e3e 16BuildRequires: jdk
23c91702
ZU
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
340d40d3
JR
19%define _noautoreq 'libCg.so(VERSION)' 'libCgGL.so(VERSION)'
20
23c91702
ZU
21%description
22An interior design application.
23
24%prep
2b696d1a
TP
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"/' \
23c91702
ZU
29
30%build
2b696d1a 31%ant application furniture textures help
23c91702
ZU
32
33%install
34rm -rf $RPM_BUILD_ROOT
35
2b696d1a 36install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}/%{name}/lib}
23c91702 37
2b696d1a
TP
38install install/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
39install -p build/*.jar lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
40%ifarch %{ix86}
41install -p lib/linux/i386/libj3dcore-ogl*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
42%endif
43%ifarch %{x8664}
44install -p lib/linux/x64/libj3dcore-ogl.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
45%endif
23c91702
ZU
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%files
51%defattr(644,root,root,755)
2b696d1a 52%doc LICENSE.TXT THIRDPARTY-LICENSE-*.TXT
23c91702
ZU
53%attr(755,root,root) %{_bindir}/%{name}
54%{_javadir}/%{name}
This page took 0.039827 seconds and 4 git commands to generate.