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