forked from pool/qwtplot3d
Accepting request 122226 from Education
only needed for SciDAVis which is now in science OBS-URL: https://build.opensuse.org/request/show/122226 OBS-URL: https://build.opensuse.org/package/show/science/qwtplot3d?expand=0&rev=2
This commit is contained in:
parent
78df9ce192
commit
846f3191aa
@ -1,5 +0,0 @@
|
||||
<aggregatelist>
|
||||
<aggregate project="Education">
|
||||
<package>qwtplot3d</package>
|
||||
</aggregate>
|
||||
</aggregatelist>
|
14
glu_include.patch
Normal file
14
glu_include.patch
Normal file
@ -0,0 +1,14 @@
|
||||
--- include/qwt3d_openglhelper.h 2005-07-19 17:40:28.000000000 +0200
|
||||
+++ include/qwt3d_openglhelper.h.qt480 2012-03-26 19:42:02.000000000 +0200
|
||||
@@ -4,8 +4,11 @@
|
||||
#include "qglobal.h"
|
||||
#if QT_VERSION < 0x040000
|
||||
#include <qgl.h>
|
||||
+#elif QT_VERSION < 0x040800
|
||||
+#include <QtOpenGL/qgl.h>
|
||||
#else
|
||||
#include <QtOpenGL/qgl.h>
|
||||
+#include <GL/glu.h>
|
||||
#endif
|
||||
|
||||
namespace Qwt3D
|
89
libqwtplot3d.spec
Normal file
89
libqwtplot3d.spec
Normal file
@ -0,0 +1,89 @@
|
||||
#
|
||||
# spec file for package libqwtplot3d (0.2.7)
|
||||
#
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# norootforbuild
|
||||
|
||||
%define realname libqwtplot3d
|
||||
%define soname 0
|
||||
|
||||
Name: %{realname}%{soname}
|
||||
Summary: QwtPlot3D a feature-rich Qt/OpenGL-based C++ programming library
|
||||
Version: 0.2.7
|
||||
Release: 4.1
|
||||
License: zlib
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: http://qwtplot3d.sourceforge.net/
|
||||
Source0: qwtplot3d-%{version}.tar.bz2
|
||||
Patch0: qwtplot3d-gcc43.patch
|
||||
Patch1: glu_include.patch
|
||||
|
||||
%if 0%{?suse_version} < 1120 || 0%{?sles_version} <= 11
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%endif
|
||||
Autoreqprov: on
|
||||
BuildRequires: qt-devel Mesa-devel
|
||||
|
||||
%description
|
||||
QwtPlot3D is not a program, but a feature-rich Qt/OpenGL-based C++
|
||||
programming library. It provides essentially a bunch of 3D-widgets
|
||||
for programmers. The library is zlib licensed.
|
||||
|
||||
%package -n %{realname}-devel
|
||||
Summary: Development tools for programs which uses QwtPlot3D Widget set
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: qt-devel
|
||||
|
||||
%description -n %{realname}-devel
|
||||
QwtPlot3D is a feature-rich Qt/OpenGL-based C++ programming library.
|
||||
It provides essentially a bunch of 3D-widgets for programmers.
|
||||
|
||||
%prep
|
||||
%setup -q -n qwtplot3d
|
||||
%patch0 -p1
|
||||
%patch1 -p0
|
||||
|
||||
%build
|
||||
qmake qwtplot3d.pro -o Makefile
|
||||
%{__make} %{?jobs:-j%{jobs}}
|
||||
|
||||
|
||||
%install
|
||||
%__mkdir -p %{buildroot}%{_includedir}/qwtplot3d
|
||||
%__mkdir -p %{buildroot}%{_libdir}
|
||||
|
||||
for n in include/*.h ; do
|
||||
%__install -m 644 $n %{buildroot}%{_includedir}/qwtplot3d
|
||||
done
|
||||
|
||||
# install, preserving links
|
||||
chmod 644 lib/libqwtplot3d.so*
|
||||
for n in lib/libqwtplot3d.so* ; do
|
||||
cp -d $n %{buildroot}%{_libdir}
|
||||
done
|
||||
|
||||
%if 0%{?suse_version} < 1120 || 0%{?sles_version} <= 11
|
||||
%clean
|
||||
%{__rm} -rf '%{buildroot}'
|
||||
%endif
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/%{realname}.so.*
|
||||
|
||||
|
||||
%files -n %{realname}-devel
|
||||
%defattr(-,root,root)
|
||||
%doc examples
|
||||
%{_libdir}/%{realname}.so
|
||||
%dir %{_includedir}/qwtplot3d
|
||||
%{_includedir}/qwtplot3d/qwt3d*.h
|
||||
|
||||
%changelog
|
2
libqwtplot3d0.changes
Normal file
2
libqwtplot3d0.changes
Normal file
@ -0,0 +1,2 @@
|
||||
* Wed Mar 17 2010 Malcolm Lewis <coyoteuser@gmail.com> - 0.2.7
|
||||
- initial package for OBS based on packman version
|
3
qwtplot3d-0.2.7.tar.bz2
Normal file
3
qwtplot3d-0.2.7.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a02416c73860486879e7ba73dd4231c8abc78af284b96272c812e35fa32c8334
|
||||
size 158156
|
10
qwtplot3d-gcc43.patch
Normal file
10
qwtplot3d-gcc43.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff -Nur qwtplot3d-orig/src/qwt3d_function.cpp qwtplot3d/src/qwt3d_function.cpp
|
||||
--- qwtplot3d-orig/src/qwt3d_function.cpp 2010-02-07 13:47:48.807034954 +0100
|
||||
+++ qwtplot3d/src/qwt3d_function.cpp 2010-02-07 13:52:58.035284843 +0100
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "qwt3d_surfaceplot.h"
|
||||
#include "qwt3d_function.h"
|
||||
+#include <stdio.h>
|
||||
|
||||
using namespace Qwt3D;
|
||||
|
Loading…
Reference in New Issue
Block a user