]>
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 |
825157da | 4 | Version: 2.8.1 |
0c4c51ee | 5 | Release: 0.1 |
dc9af0b2 | 6 | License: OpenSceneGraph Public Licence (based on LGPL with exceptions) |
e14fd2e0 | 7 | Group: X11/Libraries |
825157da | 8 | Source0: http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-%{version}/source/%{name}-%{version}.zip |
9 | # Source0-md5: 18a8d3f01a72b6027147b3918c18c662 | |
aae24add RT |
10 | #Source1: osg-doxygen-0.9.1.tar.gz |
11 | ## Source1-md5: 7e6d785d1b763aaeae03c2dc4c148805 | |
825157da | 12 | URL: http://www.openscenegraph.org/projects/osg/ |
552752e9 | 13 | BuildRequires: cmake |
aa6260c4 | 14 | BuildRequires: freetype-devel |
ec9562e7 | 15 | BuildRequires: giflib-devel |
e14fd2e0 | 16 | BuildRequires: libjpeg-devel |
aa6260c4 | 17 | BuildRequires: libpng-devel |
e14fd2e0 | 18 | BuildRequires: libtiff-devel |
7e1c418e | 19 | BuildRequires: pkgconfig |
aa6260c4 | 20 | BuildRequires: zlib-devel |
b1b72335 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
aa6260c4 | 22 | |
aa6260c4 | 23 | %description |
0a55f959 | 24 | The Open Scene Graph is a cross-platform C++/OpenGL library for |
aa6260c4 | 25 | the real-time visualization. |
26 | ||
4043c7f8 | 27 | %description -l pl.UTF-8 |
e14fd2e0 JB |
28 | Open Scene Graph to wieloplatformowa oparta o C++ i OpenGL biblioteka |
29 | do wizualizacji w czasie rzeczywistym. | |
aa6260c4 | 30 | |
31 | %package devel | |
0a55f959 | 32 | Summary: Header files for Open Scene Graph |
741aa9a5 | 33 | Summary(pl.UTF-8): Pliki nagłówkowe dla Open Scene Graph |
e14fd2e0 | 34 | Group: Development/Libraries |
f372d505 | 35 | Requires: %{name} = %{version}-%{release} |
e14fd2e0 | 36 | |
0a55f959 | 37 | %description devel |
aa6260c4 | 38 | Headers file for OSD library. |
e14fd2e0 | 39 | |
4043c7f8 JR |
40 | %description devel -l pl.UTF-8 |
41 | Pliki nagłówkowe dla biblioteki Open Scene Graph. | |
aa6260c4 | 42 | |
43 | %package examples | |
0a55f959 | 44 | Summary: Examples for Open Scene Graph |
741aa9a5 | 45 | Summary(pl.UTF-8): Przykłady dla Open Scene Graph |
e14fd2e0 | 46 | Group: Development/Libraries |
f372d505 | 47 | Requires: %{name} = %{version}-%{release} |
e14fd2e0 | 48 | |
aa6260c4 | 49 | %description examples |
e14fd2e0 | 50 | Examples for Open Scene Graph Library. |
aa6260c4 | 51 | |
4043c7f8 JR |
52 | %description examples -l pl.UTF-8 |
53 | Przykłady dla biblioteki Open Scene Graph. | |
e14fd2e0 | 54 | |
aae24add RT |
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. | |
aa6260c4 | 66 | |
67 | %prep | |
66751831 | 68 | %setup -q |
aa6260c4 | 69 | |
aa6260c4 | 70 | %build |
d320e70d | 71 | install -d build |
aae24add | 72 | cd build |
d320e70d JB |
73 | %cmake .. \ |
74 | -DCMAKE_BUILD_TYPE=None \ | |
75 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
76 | -DCMAKE_VERBOSE_MAKEFILE=ON | |
aae24add | 77 | %{__make} |
aa6260c4 | 78 | |
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
aae24add | 81 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
dc9af0b2 | 82 | |
aae24add | 83 | cp -r examples/osg* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
bc23ad7f JB |
84 | |
85 | %{__make} -C build install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
aa6260c4 | 87 | |
aa6260c4 | 88 | %clean |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
e14fd2e0 JB |
91 | %post -p /sbin/ldconfig |
92 | %postun -p /sbin/ldconfig | |
93 | ||
aa6260c4 | 94 | %files |
e14fd2e0 | 95 | %defattr(644,root,root,755) |
d320e70d JB |
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 | |
aae24add RT |
128 | |
129 | %files plugins | |
130 | %defattr(644,root,root,755) | |
66751831 BZ |
131 | %dir %{_libdir}/osgPlugins-%{version} |
132 | %attr(755,root,root) %{_libdir}/osgPlugins-%{version}/*.so | |
aa6260c4 | 133 | |
134 | %files devel | |
e14fd2e0 | 135 | %defattr(644,root,root,755) |
d320e70d JB |
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 | |
dc9af0b2 | 153 | %{_includedir}/osg* |
d320e70d JB |
154 | %{_pkgconfigdir}/openscenegraph.pc |
155 | %{_pkgconfigdir}/openthreads.pc | |
aa6260c4 | 156 | |
157 | %files examples | |
e14fd2e0 | 158 | %defattr(644,root,root,755) |
dc9af0b2 | 159 | %attr(755,root,root) %{_bindir}/* |
f372d505 | 160 | %{_examplesdir}/%{name}-%{version} |