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