1 %define _orgname cult3d
3 Summary: A Mozilla plug-in to view Cult3D objects
4 Summary(pl): Wtyczka dla przegl±darek opartych na Mozilli do obiektów Cult3D
5 Name: browser-plugin-%{_orgname}
8 Release: 0.%{_beta}.%{_rel}
10 Group: X11/Applications/Multimedia
11 Source0: http://host.cycore.net/plugins/linux/netscape4/Cult3D_NS4_%{version}%{_beta}.tar.gz
12 # Source0-md5: 9b559a80ac71d9d9eea75a8bf1769489
14 URL: http://www.cult3d.com/
15 ExclusiveArch: %{ix86}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 # directory where you store the plugin
19 %define _plugindir %{_libdir}/browser-plugins
20 %define _classesdir %{_libdir}/netscape/java/classes
23 The Cult3D Viewer enables you to view and interact with Cult3D objects
24 on the Web, in Microsoft Word, PowerPoint, and Excel, as well as Adobe
27 The Viewer is an incredibly small download that will bring the Web and
28 presentations to life. You can visit any site hosting a Cult3D object
29 and move it around, and play with its components. For example, if you
30 got a Web site with a Cult3D car, you can open the doors, look at the
31 interior - even the backseat, open the hood and trunk, you can even
32 change the color of the car - all with a click of your mouse!
35 %setup -q -n %{_orgname}-%{version}-%{_beta}-linux-x86
36 tar xf %{_orgname}.tar
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_plugindir},%{_classesdir}}
41 cp -a %{_orgname}/com $RPM_BUILD_ROOT%{_classesdir}
42 cp -a %{_orgname}/*.so $RPM_BUILD_ROOT%{_plugindir}
45 rm -rf $RPM_BUILD_ROOT
48 %nsplugin_install -d %{_libdir}/opera/plugins libcult3dplugin.so
51 %nsplugin_uninstall -d %{_libdir}/opera/plugins libcult3dplugin.so
53 %triggerin -- netscape4-common
54 %nsplugin_install -d %{_libdir}/netscape/plugins libcult3dplugin.so
56 %triggerun -- netscape4-common
57 %nsplugin_uninstall -d %{_libdir}/netscape/plugins libcult3dplugin.so
60 %defattr(644,root,root,755)
62 %attr(755,root,root) %{_plugindir}/*.so