]>
Commit | Line | Data |
---|---|---|
aa6260c4 | 1 | Summary: Open Scene Graph - real-time visualization library |
741aa9a5 | 2 | Summary(pl.UTF-8): Open Scene Graph - biblioteka do wizualizacji |
aa6260c4 | 3 | Name: OpenSceneGraph |
30ed4bf8 | 4 | Version: 3.5.1 |
2937ae77 | 5 | Release: 15 |
dc9af0b2 | 6 | License: OpenSceneGraph Public Licence (based on LGPL with exceptions) |
e14fd2e0 | 7 | Group: X11/Libraries |
30ed4bf8 JR |
8 | Source0: http://trac.openscenegraph.org/downloads/developer_releases/%{name}-%{version}.zip |
9 | # Source0-md5: 71b97b18f11b6c361631fc3e34fb4b67 | |
aae24add RT |
10 | #Source1: osg-doxygen-0.9.1.tar.gz |
11 | ## Source1-md5: 7e6d785d1b763aaeae03c2dc4c148805 | |
30ed4bf8 | 12 | Patch0: ffmpeg3.patch |
41ae154e | 13 | Patch1: %{name}-asio.patch |
825157da | 14 | URL: http://www.openscenegraph.org/projects/osg/ |
0019aed0 JB |
15 | BuildRequires: Qt5Core-devel >= 5 |
16 | BuildRequires: Qt5Gui-devel >= 5 | |
17 | BuildRequires: Qt5OpenGL-devel >= 5 | |
18 | BuildRequires: Qt5Widgets-devel >= 5 | |
41ae154e JB |
19 | BuildRequires: asio-devel >= 1.11 |
20 | BuildRequires: boost-devel >= 1.37 | |
21b804c4 | 21 | BuildRequires: cairo-devel |
552752e9 | 22 | BuildRequires: cmake |
aa6260c4 | 23 | BuildRequires: freetype-devel |
ec9562e7 | 24 | BuildRequires: giflib-devel |
21b804c4 | 25 | BuildRequires: gtk+2-devel |
26 | BuildRequires: gtkglext-devel | |
e14fd2e0 | 27 | BuildRequires: libjpeg-devel |
aa6260c4 | 28 | BuildRequires: libpng-devel |
21b804c4 | 29 | BuildRequires: librsvg-devel |
e14fd2e0 | 30 | BuildRequires: libtiff-devel |
7e1c418e | 31 | BuildRequires: pkgconfig |
21b804c4 | 32 | BuildRequires: poppler-glib-devel |
0019aed0 JB |
33 | BuildRequires: qt5-build >= 5 |
34 | BuildRequires: qt5-qmake >= 5 | |
82ff5fc4 | 35 | BuildRequires: rpmbuild(macros) >= 1.600 |
654f31ce | 36 | BuildRequires: unzip |
21b804c4 | 37 | #BuildRequires: xulrunner-devel |
aa6260c4 | 38 | BuildRequires: zlib-devel |
b1b72335 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
aa6260c4 | 40 | |
6ea9c807 JR |
41 | %define specflags -std=c++11 |
42 | ||
aa6260c4 | 43 | %description |
30ec309c | 44 | The Open Scene Graph is a cross-platform C++/OpenGL library for the |
45 | real-time visualization. | |
aa6260c4 | 46 | |
4043c7f8 | 47 | %description -l pl.UTF-8 |
e14fd2e0 JB |
48 | Open Scene Graph to wieloplatformowa oparta o C++ i OpenGL biblioteka |
49 | do wizualizacji w czasie rzeczywistym. | |
aa6260c4 | 50 | |
51 | %package devel | |
0a55f959 | 52 | Summary: Header files for Open Scene Graph |
741aa9a5 | 53 | Summary(pl.UTF-8): Pliki nagłówkowe dla Open Scene Graph |
e14fd2e0 | 54 | Group: Development/Libraries |
f372d505 | 55 | Requires: %{name} = %{version}-%{release} |
e14fd2e0 | 56 | |
0a55f959 | 57 | %description devel |
aa6260c4 | 58 | Headers file for OSD library. |
e14fd2e0 | 59 | |
4043c7f8 JR |
60 | %description devel -l pl.UTF-8 |
61 | Pliki nagłówkowe dla biblioteki Open Scene Graph. | |
aa6260c4 | 62 | |
63 | %package examples | |
0a55f959 | 64 | Summary: Examples for Open Scene Graph |
741aa9a5 | 65 | Summary(pl.UTF-8): Przykłady dla Open Scene Graph |
e14fd2e0 | 66 | Group: Development/Libraries |
f372d505 | 67 | Requires: %{name} = %{version}-%{release} |
e14fd2e0 | 68 | |
aa6260c4 | 69 | %description examples |
e14fd2e0 | 70 | Examples for Open Scene Graph Library. |
aa6260c4 | 71 | |
4043c7f8 JR |
72 | %description examples -l pl.UTF-8 |
73 | Przykłady dla biblioteki Open Scene Graph. | |
e14fd2e0 | 74 | |
aae24add RT |
75 | %package plugins |
76 | Summary: Plugins for Open Scene Graph | |
101ff356 | 77 | Summary(pl.UTF-8): Wtyczki dla biblioteki Open Scene Graph |
aae24add RT |
78 | Group: Libraries |
79 | Requires: %{name} = %{version}-%{release} | |
80 | ||
81 | %description plugins | |
82 | Plugins for Open Scene Graph library. | |
83 | ||
ea82ecbb | 84 | %description plugins -l pl.UTF-8 |
aae24add | 85 | Wtyczki dla biblioteki Open Scene Graph. |
aa6260c4 | 86 | |
87 | %prep | |
66751831 | 88 | %setup -q |
dc4bfa5c | 89 | %patch0 -p1 |
41ae154e | 90 | %patch1 -p1 |
aa6260c4 | 91 | |
aa6260c4 | 92 | %build |
d320e70d | 93 | install -d build |
aae24add | 94 | cd build |
41ae154e | 95 | CXXFLAGS="%{rpmcxxflags} -DASIO_ENABLE_BOOST=1" |
a8c0448b | 96 | %cmake \ |
0019aed0 | 97 | -DDESIRED_QT_VERSION=5 \ |
564f3b9e JR |
98 | %ifarch x32 |
99 | -DLIB_POSTFIX=x32 \ | |
100 | %endif | |
a8c0448b | 101 | ../ |
aae24add | 102 | %{__make} |
aa6260c4 | 103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
aae24add | 106 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
dc9af0b2 | 107 | |
82ff5fc4 | 108 | cp -a examples/osg* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
bc23ad7f JB |
109 | |
110 | %{__make} -C build install \ | |
111 | DESTDIR=$RPM_BUILD_ROOT | |
aa6260c4 | 112 | |
aa6260c4 | 113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
e14fd2e0 JB |
116 | %post -p /sbin/ldconfig |
117 | %postun -p /sbin/ldconfig | |
118 | ||
aa6260c4 | 119 | %files |
e14fd2e0 | 120 | %defattr(644,root,root,755) |
d320e70d | 121 | %attr(755,root,root) %{_libdir}/libOpenThreads.so.*.*.* |
6cc0d00c | 122 | %attr(755,root,root) %ghost %{_libdir}/libOpenThreads.so.20 |
d320e70d | 123 | %attr(755,root,root) %{_libdir}/libosg.so.*.*.* |
30ed4bf8 | 124 | %attr(755,root,root) %ghost %{_libdir}/libosg.so.141 |
d320e70d | 125 | %attr(755,root,root) %{_libdir}/libosgAnimation.so.*.*.* |
30ed4bf8 | 126 | %attr(755,root,root) %ghost %{_libdir}/libosgAnimation.so.141 |
d320e70d | 127 | %attr(755,root,root) %{_libdir}/libosgDB.so.*.*.* |
30ed4bf8 | 128 | %attr(755,root,root) %ghost %{_libdir}/libosgDB.so.141 |
d320e70d | 129 | %attr(755,root,root) %{_libdir}/libosgFX.so.*.*.* |
30ed4bf8 | 130 | %attr(755,root,root) %ghost %{_libdir}/libosgFX.so.141 |
d320e70d | 131 | %attr(755,root,root) %{_libdir}/libosgGA.so.*.*.* |
30ed4bf8 | 132 | %attr(755,root,root) %ghost %{_libdir}/libosgGA.so.141 |
d320e70d | 133 | %attr(755,root,root) %{_libdir}/libosgManipulator.so.*.*.* |
30ed4bf8 | 134 | %attr(755,root,root) %ghost %{_libdir}/libosgManipulator.so.141 |
d320e70d | 135 | %attr(755,root,root) %{_libdir}/libosgParticle.so.*.*.* |
30ed4bf8 | 136 | %attr(755,root,root) %ghost %{_libdir}/libosgParticle.so.141 |
7362f54e | 137 | %attr(755,root,root) %{_libdir}/libosgPresentation.so.*.*.* |
30ed4bf8 | 138 | %attr(755,root,root) %ghost %{_libdir}/libosgPresentation.so.141 |
7362f54e | 139 | %attr(755,root,root) %{_libdir}/libosgQt.so.*.*.* |
30ed4bf8 | 140 | %attr(755,root,root) %ghost %{_libdir}/libosgQt.so.141 |
d320e70d | 141 | %attr(755,root,root) %{_libdir}/libosgShadow.so.*.*.* |
30ed4bf8 | 142 | %attr(755,root,root) %ghost %{_libdir}/libosgShadow.so.141 |
d320e70d | 143 | %attr(755,root,root) %{_libdir}/libosgSim.so.*.*.* |
30ed4bf8 | 144 | %attr(755,root,root) %ghost %{_libdir}/libosgSim.so.141 |
d320e70d | 145 | %attr(755,root,root) %{_libdir}/libosgTerrain.so.*.*.* |
30ed4bf8 | 146 | %attr(755,root,root) %ghost %{_libdir}/libosgTerrain.so.141 |
d320e70d | 147 | %attr(755,root,root) %{_libdir}/libosgText.so.*.*.* |
30ed4bf8 | 148 | %attr(755,root,root) %ghost %{_libdir}/libosgText.so.141 |
a08cd58a | 149 | %attr(755,root,root) %{_libdir}/libosgUI.so.*.*.* |
30ed4bf8 | 150 | %attr(755,root,root) %ghost %{_libdir}/libosgUI.so.141 |
d320e70d | 151 | %attr(755,root,root) %{_libdir}/libosgUtil.so.*.*.* |
30ed4bf8 | 152 | %attr(755,root,root) %ghost %{_libdir}/libosgUtil.so.141 |
d320e70d | 153 | %attr(755,root,root) %{_libdir}/libosgViewer.so.*.*.* |
30ed4bf8 | 154 | %attr(755,root,root) %ghost %{_libdir}/libosgViewer.so.141 |
d320e70d | 155 | %attr(755,root,root) %{_libdir}/libosgVolume.so.*.*.* |
30ed4bf8 | 156 | %attr(755,root,root) %ghost %{_libdir}/libosgVolume.so.141 |
d320e70d | 157 | %attr(755,root,root) %{_libdir}/libosgWidget.so.*.*.* |
30ed4bf8 | 158 | %attr(755,root,root) %ghost %{_libdir}/libosgWidget.so.141 |
aae24add RT |
159 | |
160 | %files plugins | |
161 | %defattr(644,root,root,755) | |
66751831 BZ |
162 | %dir %{_libdir}/osgPlugins-%{version} |
163 | %attr(755,root,root) %{_libdir}/osgPlugins-%{version}/*.so | |
aa6260c4 | 164 | |
165 | %files devel | |
e14fd2e0 | 166 | %defattr(644,root,root,755) |
d320e70d JB |
167 | %attr(755,root,root) %{_libdir}/libOpenThreads.so |
168 | %attr(755,root,root) %{_libdir}/libosg.so | |
169 | %attr(755,root,root) %{_libdir}/libosgAnimation.so | |
170 | %attr(755,root,root) %{_libdir}/libosgDB.so | |
171 | %attr(755,root,root) %{_libdir}/libosgFX.so | |
172 | %attr(755,root,root) %{_libdir}/libosgGA.so | |
173 | %attr(755,root,root) %{_libdir}/libosgManipulator.so | |
174 | %attr(755,root,root) %{_libdir}/libosgParticle.so | |
7362f54e SS |
175 | %attr(755,root,root) %{_libdir}/libosgPresentation.so |
176 | %attr(755,root,root) %{_libdir}/libosgQt.so | |
d320e70d JB |
177 | %attr(755,root,root) %{_libdir}/libosgShadow.so |
178 | %attr(755,root,root) %{_libdir}/libosgSim.so | |
179 | %attr(755,root,root) %{_libdir}/libosgTerrain.so | |
180 | %attr(755,root,root) %{_libdir}/libosgText.so | |
a08cd58a | 181 | %attr(755,root,root) %{_libdir}/libosgUI.so |
d320e70d JB |
182 | %attr(755,root,root) %{_libdir}/libosgUtil.so |
183 | %attr(755,root,root) %{_libdir}/libosgViewer.so | |
184 | %attr(755,root,root) %{_libdir}/libosgVolume.so | |
185 | %attr(755,root,root) %{_libdir}/libosgWidget.so | |
186 | %{_includedir}/OpenThreads | |
dc9af0b2 | 187 | %{_includedir}/osg* |
d320e70d JB |
188 | %{_pkgconfigdir}/openscenegraph.pc |
189 | %{_pkgconfigdir}/openthreads.pc | |
5ecf278e SS |
190 | %{_pkgconfigdir}/openscenegraph-osg.pc |
191 | %{_pkgconfigdir}/openscenegraph-osgAnimation.pc | |
192 | %{_pkgconfigdir}/openscenegraph-osgDB.pc | |
193 | %{_pkgconfigdir}/openscenegraph-osgFX.pc | |
194 | %{_pkgconfigdir}/openscenegraph-osgGA.pc | |
195 | %{_pkgconfigdir}/openscenegraph-osgManipulator.pc | |
196 | %{_pkgconfigdir}/openscenegraph-osgParticle.pc | |
197 | %{_pkgconfigdir}/openscenegraph-osgQt.pc | |
198 | %{_pkgconfigdir}/openscenegraph-osgShadow.pc | |
199 | %{_pkgconfigdir}/openscenegraph-osgSim.pc | |
200 | %{_pkgconfigdir}/openscenegraph-osgTerrain.pc | |
201 | %{_pkgconfigdir}/openscenegraph-osgText.pc | |
202 | %{_pkgconfigdir}/openscenegraph-osgUtil.pc | |
203 | %{_pkgconfigdir}/openscenegraph-osgViewer.pc | |
204 | %{_pkgconfigdir}/openscenegraph-osgVolume.pc | |
205 | %{_pkgconfigdir}/openscenegraph-osgWidget.pc | |
aa6260c4 | 206 | |
207 | %files examples | |
e14fd2e0 | 208 | %defattr(644,root,root,755) |
dc9af0b2 | 209 | %attr(755,root,root) %{_bindir}/* |
f372d505 | 210 | %{_examplesdir}/%{name}-%{version} |