- up to 6.6
[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
692f8812
JR
8Version: 6.6
9Release: 1
2b696d1a
TP
10License: GPL v2
11Group: X11/Applications
12Source0: http://downloads.sourceforge.net/sweethome3d/%{name}-%{version}-src.zip
692f8812 13# Source0-md5: 4f63d8f39afdcdebfb7429ef6486b564
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
692f8812
JR
23%define _debugsource_packages 0
24
23c91702
ZU
25%description
26An interior design application.
27
da9d182e
JB
28%description -l pl.UTF-8
29Aplikacja do projektowania wnętrz.
30
23c91702 31%prep
2b696d1a 32%setup -q -n %{name}-%{version}-src
da9d182e
JB
33
34%{__sed} -e 's#exec "$PROGRAM_DIR"/jre8/bin/java#env java#; 3,8 c\PROGRAM_DIR=%{_javadir}/SweetHome3D' \
35 -e 's#jogl-java3d.jar#&:"$PROGRAM_DIR"/lib/java3d-1.6/jogl-all.jar#' \
36 -e 's#:"$PROGRAM_DIR"/jre8/lib/javaws.jar#:%{_jvmlibdir}/java/jre/lib/javaws.jar#' -i install/linux/SweetHome3D
23c91702
ZU
37
38%build
2b696d1a 39%ant application furniture textures help
23c91702
ZU
40
41%install
42rm -rf $RPM_BUILD_ROOT
da9d182e 43install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}/%{name}/lib/java3d-1.6}
23c91702 44
2b696d1a 45install install/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
da9d182e
JB
46cp -p build/*.jar lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib
47%{__rm} $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/{j3dcore,j3dutils,vecmath}.jar
48cp -p lib/java3d-1.6/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/java3d-1.6
49
2b696d1a 50%ifarch %{ix86}
da9d182e 51install -p lib/java3d-1.6/linux/i586/*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/java3d-1.6
2b696d1a
TP
52%endif
53%ifarch %{x8664}
da9d182e 54install -p lib/java3d-1.6/linux/amd64/*.so $RPM_BUILD_ROOT%{_javadir}/%{name}/lib/java3d-1.6
2b696d1a 55%endif
23c91702
ZU
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
60%files
61%defattr(644,root,root,755)
2b696d1a 62%doc LICENSE.TXT THIRDPARTY-LICENSE-*.TXT
23c91702
ZU
63%attr(755,root,root) %{_bindir}/%{name}
64%{_javadir}/%{name}
This page took 0.290847 seconds and 5 git commands to generate.