]>
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: 2.8.2 | |
5 | Release: 0.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: 99d0b37f403b85b4559514b6b9849d9e | |
10 | #Source1: osg-doxygen-0.9.1.tar.gz | |
11 | ## Source1-md5: 7e6d785d1b763aaeae03c2dc4c148805 | |
12 | URL: http://www.openscenegraph.org/projects/osg/ | |
13 | BuildRequires: cairo-devel | |
14 | BuildRequires: cmake | |
15 | BuildRequires: freetype-devel | |
16 | BuildRequires: giflib-devel | |
17 | BuildRequires: gtk+2-devel | |
18 | BuildRequires: gtkglext-devel | |
19 | BuildRequires: libjpeg-devel | |
20 | BuildRequires: libpng-devel | |
21 | BuildRequires: librsvg-devel | |
22 | BuildRequires: libtiff-devel | |
23 | BuildRequires: pkgconfig | |
24 | BuildRequires: poppler-glib-devel | |
25 | BuildRequires: unzip | |
26 | #BuildRequires: xulrunner-devel | |
27 | BuildRequires: zlib-devel | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | The Open Scene Graph is a cross-platform C++/OpenGL library for | |
32 | the real-time visualization. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Open Scene Graph to wieloplatformowa oparta o C++ i OpenGL biblioteka | |
36 | do wizualizacji w czasie rzeczywistym. | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for Open Scene Graph | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe dla Open Scene Graph | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
45 | Headers file for OSD library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe dla biblioteki Open Scene Graph. | |
49 | ||
50 | %package examples | |
51 | Summary: Examples for Open Scene Graph | |
52 | Summary(pl.UTF-8): Przykłady dla Open Scene Graph | |
53 | Group: Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | ||
56 | %description examples | |
57 | Examples for Open Scene Graph Library. | |
58 | ||
59 | %description examples -l pl.UTF-8 | |
60 | Przykłady dla biblioteki Open Scene Graph. | |
61 | ||
62 | %package plugins | |
63 | Summary: Plugins for Open Scene Graph | |
64 | Summary(pl): Wtyczki dla biblioteki Open Scene Graph | |
65 | Group: Libraries | |
66 | Requires: %{name} = %{version}-%{release} | |
67 | ||
68 | %description plugins | |
69 | Plugins for Open Scene Graph library. | |
70 | ||
71 | %description plugins -l pl | |
72 | Wtyczki dla biblioteki Open Scene Graph. | |
73 | ||
74 | %prep | |
75 | %setup -q | |
76 | ||
77 | %build | |
78 | install -d build | |
79 | cd build | |
80 | %cmake .. \ | |
81 | -DCMAKE_BUILD_TYPE=None \ | |
82 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
83 | -DCMAKE_VERBOSE_MAKEFILE=ON | |
84 | %{__make} | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
89 | ||
90 | cp -r examples/osg* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
91 | ||
92 | %{__make} -C build install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post -p /sbin/ldconfig | |
99 | %postun -p /sbin/ldconfig | |
100 | ||
101 | %files | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libOpenThreads.so.*.*.* | |
104 | %attr(755,root,root) %ghost %{_libdir}/libOpenThreads.so.11 | |
105 | %attr(755,root,root) %{_libdir}/libosg.so.*.*.* | |
106 | %attr(755,root,root) %ghost %{_libdir}/libosg.so.55 | |
107 | %attr(755,root,root) %{_libdir}/libosgAnimation.so.*.*.* | |
108 | %attr(755,root,root) %ghost %{_libdir}/libosgAnimation.so.55 | |
109 | %attr(755,root,root) %{_libdir}/libosgDB.so.*.*.* | |
110 | %attr(755,root,root) %ghost %{_libdir}/libosgDB.so.55 | |
111 | %attr(755,root,root) %{_libdir}/libosgFX.so.*.*.* | |
112 | %attr(755,root,root) %ghost %{_libdir}/libosgFX.so.55 | |
113 | %attr(755,root,root) %{_libdir}/libosgGA.so.*.*.* | |
114 | %attr(755,root,root) %ghost %{_libdir}/libosgGA.so.55 | |
115 | %attr(755,root,root) %{_libdir}/libosgManipulator.so.*.*.* | |
116 | %attr(755,root,root) %ghost %{_libdir}/libosgManipulator.so.55 | |
117 | %attr(755,root,root) %{_libdir}/libosgParticle.so.*.*.* | |
118 | %attr(755,root,root) %ghost %{_libdir}/libosgParticle.so.55 | |
119 | %attr(755,root,root) %{_libdir}/libosgShadow.so.*.*.* | |
120 | %attr(755,root,root) %ghost %{_libdir}/libosgShadow.so.55 | |
121 | %attr(755,root,root) %{_libdir}/libosgSim.so.*.*.* | |
122 | %attr(755,root,root) %ghost %{_libdir}/libosgSim.so.55 | |
123 | %attr(755,root,root) %{_libdir}/libosgTerrain.so.*.*.* | |
124 | %attr(755,root,root) %ghost %{_libdir}/libosgTerrain.so.55 | |
125 | %attr(755,root,root) %{_libdir}/libosgText.so.*.*.* | |
126 | %attr(755,root,root) %ghost %{_libdir}/libosgText.so.55 | |
127 | %attr(755,root,root) %{_libdir}/libosgUtil.so.*.*.* | |
128 | %attr(755,root,root) %ghost %{_libdir}/libosgUtil.so.55 | |
129 | %attr(755,root,root) %{_libdir}/libosgViewer.so.*.*.* | |
130 | %attr(755,root,root) %ghost %{_libdir}/libosgViewer.so.55 | |
131 | %attr(755,root,root) %{_libdir}/libosgVolume.so.*.*.* | |
132 | %attr(755,root,root) %ghost %{_libdir}/libosgVolume.so.55 | |
133 | %attr(755,root,root) %{_libdir}/libosgWidget.so.*.*.* | |
134 | %attr(755,root,root) %ghost %{_libdir}/libosgWidget.so.55 | |
135 | ||
136 | %files plugins | |
137 | %defattr(644,root,root,755) | |
138 | %dir %{_libdir}/osgPlugins-%{version} | |
139 | %attr(755,root,root) %{_libdir}/osgPlugins-%{version}/*.so | |
140 | ||
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
143 | %attr(755,root,root) %{_libdir}/libOpenThreads.so | |
144 | %attr(755,root,root) %{_libdir}/libosg.so | |
145 | %attr(755,root,root) %{_libdir}/libosgAnimation.so | |
146 | %attr(755,root,root) %{_libdir}/libosgDB.so | |
147 | %attr(755,root,root) %{_libdir}/libosgFX.so | |
148 | %attr(755,root,root) %{_libdir}/libosgGA.so | |
149 | %attr(755,root,root) %{_libdir}/libosgManipulator.so | |
150 | %attr(755,root,root) %{_libdir}/libosgParticle.so | |
151 | %attr(755,root,root) %{_libdir}/libosgShadow.so | |
152 | %attr(755,root,root) %{_libdir}/libosgSim.so | |
153 | %attr(755,root,root) %{_libdir}/libosgTerrain.so | |
154 | %attr(755,root,root) %{_libdir}/libosgText.so | |
155 | %attr(755,root,root) %{_libdir}/libosgUtil.so | |
156 | %attr(755,root,root) %{_libdir}/libosgViewer.so | |
157 | %attr(755,root,root) %{_libdir}/libosgVolume.so | |
158 | %attr(755,root,root) %{_libdir}/libosgWidget.so | |
159 | %{_includedir}/OpenThreads | |
160 | %{_includedir}/osg* | |
161 | %{_pkgconfigdir}/openscenegraph.pc | |
162 | %{_pkgconfigdir}/openthreads.pc | |
163 | ||
164 | %files examples | |
165 | %defattr(644,root,root,755) | |
166 | %attr(755,root,root) %{_bindir}/* | |
167 | %{_examplesdir}/%{name}-%{version} |