]>
Commit | Line | Data |
---|---|---|
8d929887 JB |
1 | # TODO: nvtt |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with fbx # Autodesk FBX SDK support (proprietary) | |
5 | ||
aa6260c4 | 6 | Summary: Open Scene Graph - real-time visualization library |
741aa9a5 | 7 | Summary(pl.UTF-8): Open Scene Graph - biblioteka do wizualizacji |
aa6260c4 | 8 | Name: OpenSceneGraph |
8d929887 JB |
9 | Version: 3.6.5 |
10 | Release: 1 | |
dc9af0b2 | 11 | License: OpenSceneGraph Public Licence (based on LGPL with exceptions) |
e14fd2e0 | 12 | Group: X11/Libraries |
8d929887 JB |
13 | #Source0Download: https://github.com/openscenegraph/OpenSceneGraph/releases |
14 | Source0: https://github.com/openscenegraph/OpenSceneGraph/archive/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: 51b1c6ee5627246e78b23adbf0aa48f8 | |
16 | # https://src.fedoraproject.org/rpms/OpenSceneGraph/blob/rawhide/f/OpenSceneGraph_asio.patch | |
17 | Patch0: %{name}-asio.patch | |
18 | Patch1: %{name}-OpenCASCADE.patch | |
19 | Patch2: %{name}-gta.patch | |
20 | # https://src.fedoraproject.org/rpms/OpenSceneGraph/blob/rawhide/f/OpenSceneGraph-openexr3.patch | |
21 | Patch3: %{name}-openexr3.patch | |
22 | URL: https://www.openscenegraph.org/index.php/33-openscenegraph/4-front-page | |
23 | BuildRequires: Coin-devel | |
24 | BuildRequires: EGL-devel | |
25 | BuildRequires: OpenCASCADE-devel | |
26 | BuildRequires: OpenEXR-devel | |
27 | BuildRequires: OpenGL-devel >= 2 | |
0019aed0 JB |
28 | BuildRequires: Qt5Core-devel >= 5 |
29 | BuildRequires: Qt5Gui-devel >= 5 | |
30 | BuildRequires: Qt5OpenGL-devel >= 5 | |
31 | BuildRequires: Qt5Widgets-devel >= 5 | |
8d929887 JB |
32 | BuildRequires: SoXt-devel |
33 | BuildRequires: EGL-devel | |
34 | BuildRequires: SDL2-devel >= 2 | |
41ae154e JB |
35 | BuildRequires: asio-devel >= 1.11 |
36 | BuildRequires: boost-devel >= 1.37 | |
21b804c4 | 37 | BuildRequires: cairo-devel |
8d929887 JB |
38 | BuildRequires: cmake >= 2.8.0 |
39 | BuildRequires: collada-dom-devel | |
40 | BuildRequires: curl-devel | |
41 | BuildRequires: dcmtk-devel | |
42 | %{?with_fbx:BuildRequires: fbxsdk-devel} | |
43 | BuildRequires: ffmpeg-devel | |
44 | BuildRequires: fontconfig-devel | |
45 | BuildRequires: freetype-devel >= 2 | |
46 | BuildRequires: gdal-devel | |
ec9562e7 | 47 | BuildRequires: giflib-devel |
8d929887 JB |
48 | BuildRequires: glib2-devel >= 2.0 |
49 | BuildRequires: gstreamer-plugins-base-devel | |
21b804c4 | 50 | BuildRequires: gtk+2-devel |
8d929887 JB |
51 | # only for osgviewerGTK, which is not built |
52 | #BuildRequires: gtkglext-devel | |
53 | BuildRequires: jasper-devel | |
54 | BuildRequires: libgta-devel | |
e14fd2e0 | 55 | BuildRequires: libjpeg-devel |
8d929887 | 56 | BuildRequires: liblas-devel |
aa6260c4 | 57 | BuildRequires: libpng-devel |
8d929887 | 58 | BuildRequires: librsvg-devel >= 1:2.35 |
e14fd2e0 | 59 | BuildRequires: libtiff-devel |
8d929887 JB |
60 | BuildRequires: libvncserver-devel |
61 | BuildRequires: lua52-devel >= 5.2 | |
7e1c418e | 62 | BuildRequires: pkgconfig |
21b804c4 | 63 | BuildRequires: poppler-glib-devel |
0019aed0 JB |
64 | BuildRequires: qt5-build >= 5 |
65 | BuildRequires: qt5-qmake >= 5 | |
8d929887 | 66 | BuildRequires: rpmbuild(macros) >= 1.605 |
654f31ce | 67 | BuildRequires: unzip |
8d929887 JB |
68 | BuildRequires: xorg-lib-libX11-devel |
69 | BuildRequires: xorg-lib-libXinerama-devel | |
70 | BuildRequires: xorg-lib-libXrandr-devel | |
aa6260c4 | 71 | BuildRequires: zlib-devel |
b1b72335 | 72 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
aa6260c4 | 73 | |
6ea9c807 JR |
74 | %define specflags -std=c++11 |
75 | ||
aa6260c4 | 76 | %description |
30ec309c | 77 | The Open Scene Graph is a cross-platform C++/OpenGL library for the |
78 | real-time visualization. | |
aa6260c4 | 79 | |
4043c7f8 | 80 | %description -l pl.UTF-8 |
e14fd2e0 JB |
81 | Open Scene Graph to wieloplatformowa oparta o C++ i OpenGL biblioteka |
82 | do wizualizacji w czasie rzeczywistym. | |
aa6260c4 | 83 | |
8d929887 JB |
84 | %package plugins |
85 | Summary: Plugins for Open Scene Graph | |
86 | Summary(pl.UTF-8): Wtyczki dla biblioteki Open Scene Graph | |
87 | Group: Libraries | |
88 | Requires: %{name} = %{version}-%{release} | |
89 | Requires: librsvg-devel >= 1:2.35 | |
90 | ||
91 | %description plugins | |
92 | Plugins for Open Scene Graph library. | |
93 | ||
94 | %description plugins -l pl.UTF-8 | |
95 | Wtyczki dla biblioteki Open Scene Graph. | |
96 | ||
aa6260c4 | 97 | %package devel |
0a55f959 | 98 | Summary: Header files for Open Scene Graph |
741aa9a5 | 99 | Summary(pl.UTF-8): Pliki nagłówkowe dla Open Scene Graph |
e14fd2e0 | 100 | Group: Development/Libraries |
f372d505 | 101 | Requires: %{name} = %{version}-%{release} |
e14fd2e0 | 102 | |
0a55f959 | 103 | %description devel |
aa6260c4 | 104 | Headers file for OSD library. |
e14fd2e0 | 105 | |
4043c7f8 JR |
106 | %description devel -l pl.UTF-8 |
107 | Pliki nagłówkowe dla biblioteki Open Scene Graph. | |
aa6260c4 | 108 | |
109 | %package examples | |
0a55f959 | 110 | Summary: Examples for Open Scene Graph |
741aa9a5 | 111 | Summary(pl.UTF-8): Przykłady dla Open Scene Graph |
e14fd2e0 | 112 | Group: Development/Libraries |
f372d505 | 113 | Requires: %{name} = %{version}-%{release} |
e14fd2e0 | 114 | |
aa6260c4 | 115 | %description examples |
e14fd2e0 | 116 | Examples for Open Scene Graph Library. |
aa6260c4 | 117 | |
4043c7f8 JR |
118 | %description examples -l pl.UTF-8 |
119 | Przykłady dla biblioteki Open Scene Graph. | |
e14fd2e0 | 120 | |
aa6260c4 | 121 | %prep |
8d929887 | 122 | %setup -q -n %{name}-%{name}-%{version} |
dc4bfa5c | 123 | %patch0 -p1 |
41ae154e | 124 | %patch1 -p1 |
8d929887 JB |
125 | %patch2 -p1 |
126 | %patch3 -p1 | |
aa6260c4 | 127 | |
aa6260c4 | 128 | %build |
d320e70d | 129 | install -d build |
aae24add | 130 | cd build |
8d929887 | 131 | %cmake .. \ |
0019aed0 | 132 | -DDESIRED_QT_VERSION=5 \ |
8d929887 JB |
133 | %if "%{_lib}" == "lib64" |
134 | -DLIB_POSTFIX=64 \ | |
135 | %endif | |
136 | %if "%{_lib}" == "libx32" | |
564f3b9e JR |
137 | -DLIB_POSTFIX=x32 \ |
138 | %endif | |
8d929887 JB |
139 | -DOSG_USE_LOCAL_LUA_SOURCE=OFF |
140 | ||
aae24add | 141 | %{__make} |
aa6260c4 | 142 | |
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
aae24add | 145 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
dc9af0b2 | 146 | |
82ff5fc4 | 147 | cp -a examples/osg* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
bc23ad7f JB |
148 | |
149 | %{__make} -C build install \ | |
150 | DESTDIR=$RPM_BUILD_ROOT | |
aa6260c4 | 151 | |
aa6260c4 | 152 | %clean |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
e14fd2e0 JB |
155 | %post -p /sbin/ldconfig |
156 | %postun -p /sbin/ldconfig | |
157 | ||
aa6260c4 | 158 | %files |
e14fd2e0 | 159 | %defattr(644,root,root,755) |
8d929887 | 160 | %doc AUTHORS.txt ChangeLog LICENSE.txt NEWS.txt README.md |
d320e70d | 161 | %attr(755,root,root) %{_libdir}/libOpenThreads.so.*.*.* |
8d929887 | 162 | %attr(755,root,root) %ghost %{_libdir}/libOpenThreads.so.21 |
d320e70d | 163 | %attr(755,root,root) %{_libdir}/libosg.so.*.*.* |
8d929887 | 164 | %attr(755,root,root) %ghost %{_libdir}/libosg.so.161 |
d320e70d | 165 | %attr(755,root,root) %{_libdir}/libosgAnimation.so.*.*.* |
8d929887 | 166 | %attr(755,root,root) %ghost %{_libdir}/libosgAnimation.so.161 |
d320e70d | 167 | %attr(755,root,root) %{_libdir}/libosgDB.so.*.*.* |
8d929887 | 168 | %attr(755,root,root) %ghost %{_libdir}/libosgDB.so.161 |
d320e70d | 169 | %attr(755,root,root) %{_libdir}/libosgFX.so.*.*.* |
8d929887 | 170 | %attr(755,root,root) %ghost %{_libdir}/libosgFX.so.161 |
d320e70d | 171 | %attr(755,root,root) %{_libdir}/libosgGA.so.*.*.* |
8d929887 | 172 | %attr(755,root,root) %ghost %{_libdir}/libosgGA.so.161 |
d320e70d | 173 | %attr(755,root,root) %{_libdir}/libosgManipulator.so.*.*.* |
8d929887 | 174 | %attr(755,root,root) %ghost %{_libdir}/libosgManipulator.so.161 |
d320e70d | 175 | %attr(755,root,root) %{_libdir}/libosgParticle.so.*.*.* |
8d929887 | 176 | %attr(755,root,root) %ghost %{_libdir}/libosgParticle.so.161 |
7362f54e | 177 | %attr(755,root,root) %{_libdir}/libosgPresentation.so.*.*.* |
8d929887 JB |
178 | %attr(755,root,root) %ghost %{_libdir}/libosgPresentation.so.161 |
179 | #%attr(755,root,root) %{_libdir}/libosgQt.so.*.*.* | |
180 | #%attr(755,root,root) %ghost %{_libdir}/libosgQt.so.141 | |
d320e70d | 181 | %attr(755,root,root) %{_libdir}/libosgShadow.so.*.*.* |
8d929887 | 182 | %attr(755,root,root) %ghost %{_libdir}/libosgShadow.so.161 |
d320e70d | 183 | %attr(755,root,root) %{_libdir}/libosgSim.so.*.*.* |
8d929887 | 184 | %attr(755,root,root) %ghost %{_libdir}/libosgSim.so.161 |
d320e70d | 185 | %attr(755,root,root) %{_libdir}/libosgTerrain.so.*.*.* |
8d929887 | 186 | %attr(755,root,root) %ghost %{_libdir}/libosgTerrain.so.161 |
d320e70d | 187 | %attr(755,root,root) %{_libdir}/libosgText.so.*.*.* |
8d929887 | 188 | %attr(755,root,root) %ghost %{_libdir}/libosgText.so.161 |
a08cd58a | 189 | %attr(755,root,root) %{_libdir}/libosgUI.so.*.*.* |
8d929887 | 190 | %attr(755,root,root) %ghost %{_libdir}/libosgUI.so.161 |
d320e70d | 191 | %attr(755,root,root) %{_libdir}/libosgUtil.so.*.*.* |
8d929887 | 192 | %attr(755,root,root) %ghost %{_libdir}/libosgUtil.so.161 |
d320e70d | 193 | %attr(755,root,root) %{_libdir}/libosgViewer.so.*.*.* |
8d929887 | 194 | %attr(755,root,root) %ghost %{_libdir}/libosgViewer.so.161 |
d320e70d | 195 | %attr(755,root,root) %{_libdir}/libosgVolume.so.*.*.* |
8d929887 | 196 | %attr(755,root,root) %ghost %{_libdir}/libosgVolume.so.161 |
d320e70d | 197 | %attr(755,root,root) %{_libdir}/libosgWidget.so.*.*.* |
8d929887 | 198 | %attr(755,root,root) %ghost %{_libdir}/libosgWidget.so.161 |
aae24add RT |
199 | |
200 | %files plugins | |
201 | %defattr(644,root,root,755) | |
66751831 BZ |
202 | %dir %{_libdir}/osgPlugins-%{version} |
203 | %attr(755,root,root) %{_libdir}/osgPlugins-%{version}/*.so | |
aa6260c4 | 204 | |
205 | %files devel | |
e14fd2e0 | 206 | %defattr(644,root,root,755) |
d320e70d JB |
207 | %attr(755,root,root) %{_libdir}/libOpenThreads.so |
208 | %attr(755,root,root) %{_libdir}/libosg.so | |
209 | %attr(755,root,root) %{_libdir}/libosgAnimation.so | |
210 | %attr(755,root,root) %{_libdir}/libosgDB.so | |
211 | %attr(755,root,root) %{_libdir}/libosgFX.so | |
212 | %attr(755,root,root) %{_libdir}/libosgGA.so | |
213 | %attr(755,root,root) %{_libdir}/libosgManipulator.so | |
214 | %attr(755,root,root) %{_libdir}/libosgParticle.so | |
7362f54e | 215 | %attr(755,root,root) %{_libdir}/libosgPresentation.so |
8d929887 | 216 | #%attr(755,root,root) %{_libdir}/libosgQt.so |
d320e70d JB |
217 | %attr(755,root,root) %{_libdir}/libosgShadow.so |
218 | %attr(755,root,root) %{_libdir}/libosgSim.so | |
219 | %attr(755,root,root) %{_libdir}/libosgTerrain.so | |
220 | %attr(755,root,root) %{_libdir}/libosgText.so | |
a08cd58a | 221 | %attr(755,root,root) %{_libdir}/libosgUI.so |
d320e70d JB |
222 | %attr(755,root,root) %{_libdir}/libosgUtil.so |
223 | %attr(755,root,root) %{_libdir}/libosgViewer.so | |
224 | %attr(755,root,root) %{_libdir}/libosgVolume.so | |
225 | %attr(755,root,root) %{_libdir}/libosgWidget.so | |
226 | %{_includedir}/OpenThreads | |
dc9af0b2 | 227 | %{_includedir}/osg* |
d320e70d JB |
228 | %{_pkgconfigdir}/openscenegraph.pc |
229 | %{_pkgconfigdir}/openthreads.pc | |
5ecf278e SS |
230 | %{_pkgconfigdir}/openscenegraph-osg.pc |
231 | %{_pkgconfigdir}/openscenegraph-osgAnimation.pc | |
232 | %{_pkgconfigdir}/openscenegraph-osgDB.pc | |
233 | %{_pkgconfigdir}/openscenegraph-osgFX.pc | |
234 | %{_pkgconfigdir}/openscenegraph-osgGA.pc | |
235 | %{_pkgconfigdir}/openscenegraph-osgManipulator.pc | |
236 | %{_pkgconfigdir}/openscenegraph-osgParticle.pc | |
8d929887 | 237 | #%{_pkgconfigdir}/openscenegraph-osgQt.pc |
5ecf278e SS |
238 | %{_pkgconfigdir}/openscenegraph-osgShadow.pc |
239 | %{_pkgconfigdir}/openscenegraph-osgSim.pc | |
240 | %{_pkgconfigdir}/openscenegraph-osgTerrain.pc | |
241 | %{_pkgconfigdir}/openscenegraph-osgText.pc | |
242 | %{_pkgconfigdir}/openscenegraph-osgUtil.pc | |
243 | %{_pkgconfigdir}/openscenegraph-osgViewer.pc | |
244 | %{_pkgconfigdir}/openscenegraph-osgVolume.pc | |
245 | %{_pkgconfigdir}/openscenegraph-osgWidget.pc | |
aa6260c4 | 246 | |
247 | %files examples | |
e14fd2e0 | 248 | %defattr(644,root,root,755) |
8d929887 JB |
249 | %attr(755,root,root) %{_bindir}/osgarchive |
250 | %attr(755,root,root) %{_bindir}/osgconv | |
251 | %attr(755,root,root) %{_bindir}/osgfilecache | |
252 | %attr(755,root,root) %{_bindir}/osgversion | |
253 | %attr(755,root,root) %{_bindir}/osgviewer | |
254 | %attr(755,root,root) %{_bindir}/present3D | |
f372d505 | 255 | %{_examplesdir}/%{name}-%{version} |