%global major 0 %define libname %mklibname gltf %major %define devname %mklibname -d gltf %global apiversion 0.0 Name: libgltf Version: 0.0.2 Release: %mkrel 1 Summary: A library for rendering glTF models Group: System/Libraries License: MPLv2.0 URL: https://wiki.documentfoundation.org/Development/libgltf Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.bz2 BuildRequires: boost-devel BuildRequires: glm-devel BuildRequires: pkgconfig(glew) %description %{name} is a library for rendering glTF models -- development glTF, the GL Transmission Format, is the runtime asset format for the GL APIs: WebGL, OpenGL ES, and OpenGL. glTF bridges the gap between formats used by modeling tools and the GL APIs. %{name} provides methods to load the OpenGL scene from glTF format and render it into an existing OpenGL context. %{name} also allows to change the camera position so the scene can be displayed from different points of view. %package -n %libname Summary: A library for rendering glTF models Group: System/Libraries %description -n %libname %{name} is a library for rendering glTF models -- development glTF, the GL Transmission Format, is the runtime asset format for the GL APIs: WebGL, OpenGL ES, and OpenGL. glTF bridges the gap between formats used by modeling tools and the GL APIs. %{name} provides methods to load the OpenGL scene from glTF format and render it into an existing OpenGL context. %{name} also allows to change the camera position so the scene can be displayed from different points of view. %package -n %devname Summary: Development files for %{name} Group: Development/C Requires: %{libname} = %{version}-%{release} %description -n %devname The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -p1 %build %configure2_5x --disable-silent-rules --disable-static --disable-werror sed -i \ -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ libtool %make %install make install DESTDIR=%{buildroot} rm -f %{buildroot}/%{_libdir}/*.la %files -n %libname %doc AUTHORS COPYING NEWS %{_libdir}/%{name}-%{apiversion}.so.* %files -n %devname %doc ChangeLog %{_includedir}/%{name}-%{apiversion} %{_libdir}/%{name}-%{apiversion}.so %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc %changelog * Wed Oct 22 2014 tv <tv> 0.0.2-1.mga5 + Revision: 792481 - imported package libgltf