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