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