3 %bcond_without apidocs # API documentation
4 %bcond_without static_libs # static library
5 %bcond_with qt4 # Qt4 instead of Qt5
6 %bcond_without qt5 # Qt5 (default)
7 %bcond_with qt6 # Qt6 instead of Qt5
9 %if %{with qt4} || %{with qt6}
12 %if %{without qt4} && %{without qt5} && %{without qt6}
13 %{error: at least one Qt version must be enabled}
16 Summary: Qt GUI component toolkit library for Coin
17 Summary(pl.UTF-8): Biblioteka komponentu graficznego interfejsu Qt dla biblioteki Coin
23 #Source0Download: https://github.com/coin3d/soqt/releases
24 Source0: https://github.com/coin3d/soqt/releases/download/v%{version}/soqt-%{version}-src.tar.gz
25 # Source0-md5: 70ef0990e009d806c59941d819a62c98
26 Patch0: %{name}-pc.patch
27 URL: https://github.com/coin3d/soqt
28 BuildRequires: Coin-devel >= 4.0.0
29 BuildRequires: OpenGL-GLX-devel
31 BuildRequires: QtCore-devel >= 4
32 BuildRequires: QtGui-devel >= 4
33 BuildRequires: QtOpenGL-devel >= 4
36 BuildRequires: Qt5Core-devel >= 5
37 BuildRequires: Qt5Gui-devel >= 5
38 BuildRequires: Qt5OpenGL-devel >= 5
39 BuildRequires: Qt5Widgets-devel >= 5
42 BuildRequires: Qt6Core-devel >= 6
43 BuildRequires: Qt6Gui-devel >= 6
44 BuildRequires: Qt6OpenGL-devel >= 6
45 BuildRequires: Qt6Widgets-devel >= 6
47 BuildRequires: cmake >= 3.0
48 %{?with_apidocs:BuildRequires: doxygen}
49 BuildRequires: libstdc++-devel
50 BuildRequires: pkgconfig
52 BuildRequires: qt4-build >= 4
55 BuildRequires: qt5-build >= 5
58 BuildRequires: qt6-build >= 6
60 BuildRequires: rpmbuild(macros) >= 1.752
61 BuildRequires: xorg-lib-libX11-devel
62 BuildRequires: xorg-lib-libXext-devel
63 BuildRequires: xorg-lib-libXmu-devel
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 SoQt is a Qt GUI component toolkit library for Coin. It is also
68 compatible with SGI and TGS Open Inventor, and the API is based on the
69 API of the InventorXt GUI component toolkit.
71 %description -l pl.UTF-8
72 SoQt to biblioteka toolkitu komponentu graficznego interfejsu
73 użytkownika (GUI) Qt dla biblioteki Coin. Jest zgodna także z
74 biblioteką SGI i TGS Open Inventor, a API jest oparte na API toolkitu
75 komponentu graficznego interfejsu użytkownika InventorXt.
78 Summary: Header files for SoQt library
79 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SoQt
80 Group: X11/Development/Libraries
81 Requires: %{name} = %{version}-%{release}
82 Requires: Coin-devel >= 4.0.0
84 Requires: QtCore-devel >= 4
85 Requires: QtGui-devel >= 4
86 Requires: QtOpenGL-devel >= 4
89 Requires: Qt5Core-devel >= 5
90 Requires: Qt5Gui-devel >= 5
91 Requires: Qt5OpenGL-devel >= 5
92 Requires: Qt5Widgets-devel >= 5
95 Requires: Qt6Core-devel >= 6
96 Requires: Qt6Gui-devel >= 6
97 Requires: Qt6OpenGL-devel >= 6
98 Requires: Qt6Widgets-devel >= 6
102 Header files for SoQt library.
104 %description devel -l pl.UTF-8
105 Pliki nagłówkowe biblioteki SoQt.
108 Summary: Static SoQt library
109 Summary(pl.UTF-8): Statyczna biblioteka SoQt
110 Group: X11/Development/Libraries
111 Requires: %{name} = %{version}-%{release}
116 %description static -l pl.UTF-8
117 Statyczna biblioteka SoQt.
120 Summary: API documentation for SoQt library
121 Summary(pl.UTF-8): Dokumentacja API biblioteki SoQt
126 API documentation for SoQt library.
128 %description apidocs -l pl.UTF-8
129 Dokumentacja API biblioteki SoQt.
140 -DSOQT_BUILD_DOCUMENTATION=ON \
141 -DSOQT_BUILD_DOC_MAN=ON \
143 %{!?with_qt5:-DSOQT_USE_QT5=OFF} \
144 %{!?with_qt6:-DSOQT_USE_QT6=OFF}
149 %if %{with static_libs}
150 install -d builddir-static
153 -DSOQT_BUILD_SHARED_LIBS=OFF \
154 %{!?with_qt5:-DSOQT_USE_QT5=OFF} \
155 %{!?with_qt6:-DSOQT_USE_QT6=OFF}
162 rm -rf $RPM_BUILD_ROOT
164 %if %{with static_libs}
165 %{__make} -C builddir-static install \
166 DESTDIR=$RPM_BUILD_ROOT
169 %{__make} -C builddir install \
170 DESTDIR=$RPM_BUILD_ROOT
174 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/html
175 # to common names etc.
176 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{_*_,components,devices,misc,viewers}.3
180 rm -rf $RPM_BUILD_ROOT
182 %post -p /sbin/ldconfig
183 %postun -p /sbin/ldconfig
186 %defattr(644,root,root,755)
187 %doc AUTHORS BUGS.txt COPYING ChangeLog FAQ NEWS README
188 %attr(755,root,root) %{_libdir}/libSoQt.so.*.*.*
189 %attr(755,root,root) %ghost %{_libdir}/libSoQt.so.20
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_libdir}/libSoQt.so
195 %{_includedir}/Inventor/Qt
196 %{_pkgconfigdir}/SoQt.pc
197 %{_libdir}/cmake/SoQt-%{version}
199 %{_mandir}/man3/SoQt*.3*
202 %if %{with static_libs}
204 %defattr(644,root,root,755)
210 %defattr(644,root,root,755)
211 %doc builddir/html/*.{css,html,js,png}