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