Release 2 (by relup.sh)
[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
2b696d1a 4#
23c91702 5Summary: An interior design application
da9d182e 6Summary(pl.UTF-8): Aplikacja do projektowania wnętrz
23c91702 7Name: SweetHome3D
da9d182e 8Version: 6.4.2
f328444a 9Release: 2
2b696d1a
TP
10License: GPL v2
11Group: X11/Applications
12Source0: http://downloads.sourceforge.net/sweethome3d/%{name}-%{version}-src.zip
da9d182e 13# Source0-md5: 488847dfe26fb099feec7d10ce154dcd
23c91702 14URL: http://www.sweethome3d.com/
2b696d1a 15BuildRequires: ant
da9d182e
JB
16BuildRequires: jdk >= 1.5
17BuildRequires: sed >= 4.0
18# because of binary libs
19ExclusiveArch: %{ix86} %{x8664}
20ExcludeArch: i386 i486
23c91702
ZU
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24An interior design application.
25
da9d182e
JB
26%description -l pl.UTF-8
27Aplikacja do projektowania wnętrz.
28
23c91702 29%prep
2b696d1a 30%setup -q -n %{name}-%{version}-src
da9d182e
JB
31
32%{__sed} -e 's#exec "$PROGRAM_DIR"/jre8/bin/java#env java#; 3,8 c\PROGRAM_DIR=%{_javadir}/SweetHome3D' \
33 -e 's#jogl-java3d.jar#&:"$PROGRAM_DIR"/lib/java3d-1.6/jogl-all.jar#' \
34 -e 's#:"$PROGRAM_DIR"/jre8/lib/javaws.jar#:%{_jvmlibdir}/java/jre/lib/javaws.jar#' -i install/linux/SweetHome3D
23c91702
ZU
35
36%build
2b696d1a 37%ant application furniture textures help
23c91702
ZU
38
39%install
40rm -rf $RPM_BUILD_ROOT
da9d182e 41install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}/%{name}/lib/java3d-1.6}
23c91702 42
2b696d1a 43install install/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
da9d182e
JB
44cp -p build/*.jar lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
45%{__rm} $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/{j3dcore,j3dutils,vecmath}.jar
46cp -p lib/java3d-1.6/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/java3d-1.6
47
2b696d1a 48%ifarch %{ix86}
da9d182e 49install -p lib/java3d-1.6/linux/i586/*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/java3d-1.6
2b696d1a
TP
50%endif
51%ifarch %{x8664}
da9d182e 52install -p lib/java3d-1.6/linux/amd64/*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/java3d-1.6
2b696d1a 53%endif
23c91702
ZU
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
2b696d1a 60%doc LICENSE.TXT THIRDPARTY-LICENSE-*.TXT
23c91702
ZU
61%attr(755,root,root) %{_bindir}/%{name}
62%{_javadir}/%{name}
This page took 0.181785 seconds and 4 git commands to generate.