]> git.pld-linux.org Git - packages/SoQt.git/blame - SoQt.spec
move soqt-config to devel
[packages/SoQt.git] / SoQt.spec
CommitLineData
bc4d8343
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
21be1716 4
bc4d8343
JB
5Summary: Qt GUI component toolkit library for Coin
6Summary(pl.UTF-8): Biblioteka komponentu graficznego interfejsu Qt dla biblioteki Coin
4c1945f6
MK
7Name: SoQt
8Version: 1.5.0
21be1716 9Release: 2
bc4d8343 10License: GPL v2 or Coin PEL
25e879a1 11Group: X11/Libraries
bc4d8343 12Source0: https://bitbucket.org/Coin3D/coin/downloads/%{name}-%{version}.tar.gz
4c1945f6 13# Source0-md5: 9f1e582373d66f556b1db113a93ac68e
bc4d8343 14Patch0: %{name}-pc.patch
25e879a1 15URL: http://www.coin3d.org/lib/soqt/
4c1945f6 16BuildRequires: Coin-devel
bc4d8343
JB
17BuildRequires: OpenGL-GLU-devel
18BuildRequires: OpenGL-GLX-devel
19BuildRequires: QtCore-devel >= 4
20BuildRequires: QtGui-devel >= 4
21BuildRequires: QtOpenGL-devel >= 4
22BuildRequires: libstdc++-devel
23BuildRequires: sed >= 4.0
24BuildRequires: pkgconfig
25BuildRequires: qt4-build >= 4
26BuildRequires: xorg-lib-libX11-devel
27BuildRequires: xorg-lib-libXext-devel
28BuildRequires: xorg-lib-libXmu-devel
4c1945f6
MK
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
bc4d8343
JB
32SoQt is a Qt GUI component toolkit library for Coin. It is also
33compatible with SGI and TGS Open Inventor, and the API is based on the
34API of the InventorXt GUI component toolkit.
4c1945f6
MK
35
36%description -l pl.UTF-8
bc4d8343
JB
37SoQt to biblioteka toolkitu komponentu graficznego interfejsu
38użytkownika (GUI) Qt dla biblioteki Coin. Jest zgodna także z
39biblioteką SGI i TGS Open Inventor, a API jest oparte na API toolkitu
40komponentu graficznego interfejsu użytkownika InventorXt.
4c1945f6
MK
41
42%package devel
bc4d8343
JB
43Summary: Header files for SoQt library
44Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SoQt
45Group: X11/Development/Libraries
25e879a1 46Requires: %{name} = %{version}-%{release}
bc4d8343
JB
47Requires: Coin-devel
48Requires: QtCore-devel >= 4
49Requires: OpenGL-GLX-devel
4c1945f6
MK
50
51%description devel
25e879a1 52Header files for SoQt library.
4c1945f6
MK
53
54%description devel -l pl.UTF-8
bc4d8343
JB
55Pliki nagłówkowe biblioteki SoQt.
56
57%package static
58Summary: Static SoQt library
59Summary(pl.UTF-8): Statyczna biblioteka SoQt
60Group: X11/Development/Libraries
61Requires: %{name} = %{version}-%{release}
4c1945f6 62
bc4d8343
JB
63%description static
64Static SoQt library.
65
66%description static -l pl.UTF-8
67Statyczna biblioteka SoQt.
4c1945f6
MK
68
69%prep
70%setup -q
bc4d8343 71%patch0 -p1
4c1945f6 72
bc4d8343
JB
73%build
74# -DHAVE_GLX is not passed properly from configure
75CXXFLAGS="%{rpmcxxflags} -DHAVE_GLX"
76%configure \
77 %{?with_static_libs:--enable-static}
4c1945f6 78
bc4d8343
JB
79# GL is missing; cannot rebuild auto* because of missing m4 files
80%{__sed} -i -e '/^LIBS =/s/$/ -lGL/' src/Inventor/Qt/Makefile
4c1945f6 81
bc4d8343 82%{__make}
4c1945f6
MK
83
84%install
85rm -rf $RPM_BUILD_ROOT
4c1945f6
MK
86
87%{__make} install \
88 DESTDIR=$RPM_BUILD_ROOT
89
bc4d8343
JB
90# obsoleted by pkg-config
91%{__rm} $RPM_BUILD_ROOT%{_libdir}/libSoQt.la
92
4c1945f6
MK
93%clean
94rm -rf $RPM_BUILD_ROOT
95
4c1945f6
MK
96%post -p /sbin/ldconfig
97%postun -p /sbin/ldconfig
4c1945f6 98
4c1945f6
MK
99%files
100%defattr(644,root,root,755)
bc4d8343 101%doc AUTHORS BUGS.txt COPYING ChangeLog FAQ NEWS README
25e879a1 102%attr(755,root,root) %{_libdir}/libSoQt.so.*.*.*
bc4d8343 103%attr(755,root,root) %ghost %{_libdir}/libSoQt.so.20
25e879a1 104
25e879a1 105%files devel
4c1945f6 106%defattr(644,root,root,755)
bc4d8343 107%attr(755,root,root) %{_libdir}/libSoQt.so
21be1716 108%attr(755,root,root) %{_bindir}/soqt-config
25e879a1 109%{_includedir}/Inventor/Qt
bc4d8343
JB
110%{_pkgconfigdir}/SoQt.pc
111%{_aclocaldir}/soqt.m4
21be1716
ER
112%{_datadir}/Coin/conf/soqt-default.cfg
113%{_mandir}/man1/soqt-config.1*
bc4d8343
JB
114
115%if %{with static_libs}
116%files static
117%defattr(644,root,root,755)
118%{_libdir}/libSoQt.a
119%endif
This page took 0.082057 seconds and 4 git commands to generate.