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