diff --git a/_aggregate b/_aggregate deleted file mode 100644 index 8ceae2b..0000000 --- a/_aggregate +++ /dev/null @@ -1,5 +0,0 @@ - - - qwtplot3d - - \ No newline at end of file diff --git a/glu_include.patch b/glu_include.patch new file mode 100644 index 0000000..6aafced --- /dev/null +++ b/glu_include.patch @@ -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 ++#elif QT_VERSION < 0x040800 ++#include + #else + #include ++#include + #endif + + namespace Qwt3D diff --git a/libqwtplot3d.spec b/libqwtplot3d.spec new file mode 100644 index 0000000..dc7c234 --- /dev/null +++ b/libqwtplot3d.spec @@ -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 diff --git a/libqwtplot3d0.changes b/libqwtplot3d0.changes new file mode 100644 index 0000000..5d5f4c3 --- /dev/null +++ b/libqwtplot3d0.changes @@ -0,0 +1,2 @@ +* Wed Mar 17 2010 Malcolm Lewis - 0.2.7 +- initial package for OBS based on packman version \ No newline at end of file diff --git a/qwtplot3d-0.2.7.tar.bz2 b/qwtplot3d-0.2.7.tar.bz2 new file mode 100644 index 0000000..6d78857 --- /dev/null +++ b/qwtplot3d-0.2.7.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a02416c73860486879e7ba73dd4231c8abc78af284b96272c812e35fa32c8334 +size 158156 diff --git a/qwtplot3d-gcc43.patch b/qwtplot3d-gcc43.patch new file mode 100644 index 0000000..b906ba1 --- /dev/null +++ b/qwtplot3d-gcc43.patch @@ -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 + + using namespace Qwt3D; +