/[packages]/cauldron/libgltf/current/SPECS/libgltf.spec
ViewVC logotype

Contents of /cauldron/libgltf/current/SPECS/libgltf.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1330653 - (show annotations) (download)
Sun Nov 18 01:15:26 2018 UTC (5 years, 5 months ago) by pterjan
File size: 2596 byte(s)
Fix build with current glm
1 # WARNING: This package is synced with FC
2 %global major 1
3 %define libname %mklibname gltf %{apiversion} %{major}
4 %define devname %mklibname -d gltf
5 %global apiversion 0.1
6
7 Name: libgltf
8 Version: 0.1.0
9 Release: %mkrel 3
10 Summary: A library for rendering glTF models
11 Group: System/Libraries
12
13 License: MPLv2.0
14 URL: https://wiki.documentfoundation.org/Development/libgltf
15 Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.gz
16 Patch0: GLM_ENABLE_EXPERIMENTAL.patch
17
18 BuildRequires: boost-devel
19 BuildRequires: glm-devel
20 BuildRequires: pkgconfig(epoxy)
21
22 %description
23 %{name} is a library for rendering glTF models -- development glTF, the GL
24 Transmission Format, is the runtime asset format for the GL APIs: WebGL,
25 OpenGL ES, and OpenGL. glTF bridges the gap between formats used by modeling
26 tools and the GL APIs.
27
28 %{name} provides methods to load the OpenGL scene from glTF format and render
29 it into an existing OpenGL context. %{name} also allows to change the camera
30 position so the scene can be displayed from different points of view.
31
32 %package -n %libname
33 Summary: A library for rendering glTF models
34 Group: System/Libraries
35 Obsoletes: %{_lib}gltf0 >= 0.1.0-1
36
37 %description -n %libname
38 %{name} is a library for rendering glTF models -- development glTF, the GL
39 Transmission Format, is the runtime asset format for the GL APIs: WebGL,
40 OpenGL ES, and OpenGL. glTF bridges the gap between formats used by modeling
41 tools and the GL APIs.
42
43 %{name} provides methods to load the OpenGL scene from glTF format and render
44 it into an existing OpenGL context. %{name} also allows to change the camera
45 position so the scene can be displayed from different points of view.
46
47
48 %package -n %devname
49 Summary: Development files for %{name}
50 Group: Development/C
51 Requires: %{libname} = %{version}-%{release}
52
53 %description -n %devname
54 The %{name}-devel package contains libraries and header files for
55 developing applications that use %{name}.
56
57 %prep
58 %autosetup -p1
59
60 %build
61 autoreconf -fi
62 %configure2_5x --disable-silent-rules --disable-static --disable-werror
63 sed -i \
64 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
65 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
66 libtool
67 %make_build
68
69 %install
70 %make_install
71 rm -f %{buildroot}/%{_libdir}/*.la
72
73
74 %files -n %libname
75 %doc AUTHORS NEWS
76 %license COPYING
77 %{_libdir}/%{name}-%{apiversion}.so.%{major}
78 %{_libdir}/%{name}-%{apiversion}.so.%{major}.*
79
80 %files -n %devname
81 %doc ChangeLog
82 %{_includedir}/%{name}-%{apiversion}
83 %{_libdir}/%{name}-%{apiversion}.so
84 %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc

  ViewVC Help
Powered by ViewVC 1.1.30