Search
j0ke.net Open Build Service
>
Projects
>
graphics
:
openvrml
>
openvrml
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 12
[-]
[+]
Changed
openvrml.spec
@@ -1,95 +1,124 @@ +# -*- rpm-spec -*- Name: openvrml Version: 0.17.4 -Release: 1 -Summary: VRML97 runtime library. -License: LGPL +Release: 1%{?dist} +Summary: VRML/X3D runtime library +License: LGPLv3+ Group: System Environment/Libraries -Packager: The OpenVRML Development Team <openvrml-develop@lists.sf.net> -Source: http://prdownloads.sf.net/openvrml/%{name}-%{version}.tar.gz +Source: http://downloads.sf.net/openvrml/%{name}-%{version}.tar.gz URL: http://openvrml.org -BuildRoot: %{_tmppath}/%{name}-root +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pkgconfig >= 0.12.0 -BuildRequires: boost-devel >= 1.33.1 -BuildRequires: zlib-devel >= 1.1.3 +BuildRequires: boost-devel >= 1.34.1 BuildRequires: libpng-devel >= 1.0.12 BuildRequires: libjpeg-devel >= 6b BuildRequires: fontconfig-devel >= 2.0 +%if 0%{?suse_version} BuildRequires: freetype2-devel >= 2.1.2 -BuildRequires: freeglut-devel -BuildRequires: xorg-x11-Mesa-devel -BuildRequires: gtk2-devel -BuildRequires: freeglut -BuildRequires: gcc-c++ -BuildRequires: libglade2-devel libglade2 curl-devel curl SDL SDL-devel libgnomeui libgnomeui-devel libjs1 js js-devel libgcj42-devel libgcj42 -Requires: zlib >= 1.1.3 -Requires: libpng >= 1.0.12 -Requires: libjpeg >= 6b -Requires: fontconfig >= 2.0 -Requires: freetype2 >= 2.1.2 -Requires: freeglut - -%if 0%{?suse_version} == 1000 -BuildRequires: mozilla-devel >= 1.6 -Requires: mozilla >= 1.6 %else -BuildRequires: mozilla-nspr-devel mozilla-nss-devel -Requires: mozilla-nspr mozilla-nss +BuildRequires: freetype-devel >= 2.1.2 %endif +BuildRequires: gecko-devel >= 1.9 +BuildRequires: libGLU-devel +BuildRequires: libXmu-devel +BuildRequires: glib2-devel >= 2.6 +BuildRequires: gtk2-devel +BuildRequires: libgnomeui-devel >= 2.14 +BuildRequires: curl-devel +Requires: gecko-libs >= 1.9 + %description -OpenVRML is a VRML support library, including a runtime and facilities for -reading and writing VRML models. +OpenVRML is a VRML/X3D support library, including a runtime and facilities +for reading and displaying VRML and X3D models. %package devel -Summary: Headers and static library for developing C++ programs with OpenVRML +Summary: Headers for developing C++ programs with OpenVRML Group: Development/Libraries -Requires: %{name} -Requires: boost-devel >= 1.33.1 +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig +Requires: boost-devel >= 1.34.1 +Requires: libpng-devel +Requires: libjpeg-devel +Requires: fontconfig-devel +%if 0%{?suse_version} +Requires: freetype2-devel +%else +Requires: freetype-devel +%endif +Requires: gecko-devel >= 1.9 %description devel -Headers and static library that programmers will need to develop C++ programs -using OpenVRML +Headers that programmers will need to develop C++ programs using +OpenVRML. %package gl Summary: OpenGL renderer for OpenVRML Group: System Environment/Libraries -Requires: %{name} = %{version} -Requires: freeglut +Requires: %{name} = %{version}-%{release} %description gl OpenGL renderer for OpenVRML. %package gl-devel -Summary: OpenVRML OpenGL renderer headers and static library. +Summary: OpenVRML OpenGL renderer headers Group: Development/Libraries -Requires: %{name}-gl = %{version} -Requires: freeglut-devel +Requires: %{name}-gl = %{version}-%{release} +Requires: %{name}-devel = %{version}-%{release} +Requires: pkgconfig +Requires: libGLU-devel +Requires: libXmu-devel +Requires: gtk2-devel %description gl-devel -Headers and static library that programmers will need to develop C++ programs -using the OpenVRML OpenGL renderer. +Headers that programmers will need to develop C++ programs using the +OpenVRML OpenGL renderer. + +%package xembed +Summary: VRML/X3D browser XEmbed component for embedding in X11 applications +Group: Applications/Internet +License: GPLv3+ +Requires: %{name}-gl = %{version}-%{release} +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info +Obsoletes: %{name}-gtkplug +%description xembed +VRML/X3D browser XEmbed component for embedding in X11 applications. %package mozilla-plugin -Summary: VRML browser plug-in for Mozilla-based browsers. +Summary: VRML/X3D browser plug-in for Mozilla-based browsers Group: Applications/Internet -License: GPL -Requires: %{name}-gl = %{version} -Requires: gtk2 -Requires: mozilla >= 1.6 +License: GPLv3+ +Requires: %{name}-xembed = %{version}-%{release} %description mozilla-plugin -VRML browser plug-in for Mozilla-based browsers. +VRML/X3D browser plug-in for Mozilla-based browsers. Hosts the OpenVRML +XEmbed control. + +%package player +Summary: VRML/X3D player +Group: Applications/Internet +License: GPLv3+ +Requires: %{name}-xembed = %{version}-%{release} +%description player +VRML/X3D player. Hosts the OpenVRML XEmbed control. %prep %setup %build -%configure --with-x --disable-exception-specs --disable-examples --disable-script-node-java --disable-script-node-javascript --with-libjs CPPFLAGS="-DNDEBUG -fpermissive" || cat config.log +%configure --disable-static --disable-exception-specs --disable-gecko-rpath --disable-examples --disable-script-node-java CPPFLAGS="-DNDEBUG" BOOST_LIB_SUFFIX="-mt" %{__make} %{?_smp_mflags} %install -%makeinstall -%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/openvrml.la +%{__make} DESTDIR=%{buildroot} install +%{__rm} %{buildroot}%{_libdir}/*.la +%{__rm} %{buildroot}%{_libdir}/mozilla/plugins/openvrml.la +%{__rm} -f %{buildroot}%{_infodir}/dir %clean -%{__rm} -rf $RPM_BUILD_ROOT +%{__rm} -rf %{buildroot} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig %files %doc AUTHORS COPYING.LESSER ChangeLog NEWS README THANKS @@ -98,40 +127,240 @@ %files devel %doc AUTHORS COPYING.LESSER ChangeLog NEWS README THANKS %doc doc/manual +%dir %{_includedir}/%{name} %{_includedir}/%{name}/openvrml-common.h %{_includedir}/%{name}/openvrml-config.h +%dir %{_includedir}/%{name}/openvrml %{_includedir}/%{name}/openvrml/*.h -%{_libdir}/libopenvrml.la -%{_libdir}/libopenvrml.a %{_libdir}/libopenvrml.so %{_libdir}/pkgconfig/openvrml.pc + +%post gl -p /sbin/ldconfig + +%postun gl -p /sbin/ldconfig + %files gl %doc AUTHORS COPYING.LESSER ChangeLog NEWS README THANKS -#%{_libdir}/libopenvrml-gl.so.* +%{_libdir}/libopenvrml-gl.so.* +