From eb70aa29d77313e35c8d3ed0613f867d9103e9a7 Mon Sep 17 00:00:00 2001 From: belegdol Date: Jan 03 2007 08:33:46 +0000 Subject: auto-import qwtplot3d-0.2.6-2 on branch devel from qwtplot3d-0.2.6-2.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..3e7622d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +qwtplot3d-0.2.6.tgz diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..abb97f0 --- /dev/null +++ b/license.txt @@ -0,0 +1,23 @@ +/* + + QwtPlot3D license -- January 5th, 2005 + + Copyright (C) 2003-2005 Michael Bieber + + This software is provided 'as-is', without any express or implied + warranty. In no event will the author be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + +*/ diff --git a/qwtplot3d.spec b/qwtplot3d.spec new file mode 100644 index 0000000..4c22ef9 --- /dev/null +++ b/qwtplot3d.spec @@ -0,0 +1,88 @@ +%define qtinc %(qmake -query QT_INSTALL_PREFIX)/include +%define qtlib %(qmake -query QT_INSTALL_PREFIX)/lib + +Name: qwtplot3d +Version: 0.2.6 +Release: 2%{?dist} +Summary: Qt/OpenGL-based C++ library providing a bunch of 3D-widgets for programmers + +Group: System Environment/Libraries +License: zlib/libpng License +URL: http://qwtplot3d.sourceforge.net/ +Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tgz +Source1: http://qwtplot3d.sourceforge.net/web/navigation/license.txt +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: qt-devel +BuildRequires: libXmu-devel + +%description +QwtPlot3D is not a program, but a feature-rich Qt/OpenGL-based C++ +programming library, providing essentially a bunch of 3D-widgets for +programmers + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: qt-devel + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q -n %{name} +install -pm 644 %{SOURCE1} license.txt + +#fix line endings +%{__sed} -i 's/\r//' license.txt +find examples -type f | xargs %{__sed} -i 's/\r//' + +#fix premissions +chmod 644 examples/dsp.bat + + +%build +qmake qwtplot3d.pro +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{qtlib} +%{__install} -p -m 0755 lib/libqwtplot3d.so.0.2.6 $RPM_BUILD_ROOT%{qtlib} +ln -s libqwtplot3d.so.0.2.6 $RPM_BUILD_ROOT%{qtlib}/libqwtplot3d.so +ln -s libqwtplot3d.so.0.2.6 $RPM_BUILD_ROOT%{qtlib}/libqwtplot3d.so.0 +mkdir -p $RPM_BUILD_ROOT%{qtinc}/qwtplot3d +%{__install} -p -m 0644 include/* $RPM_BUILD_ROOT%{qtinc}/qwtplot3d + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc license.txt +%{qtlib}/libqwtplot3d.so.* + +%files devel +%defattr(-,root,root,-) +%doc examples +%{qtinc}/* +%{qtlib}/libqwtplot3d.so + + +%changelog +* Tue Jan 02 2007 Julian Sikorski - 0.2.6-2 +- Added qt-devel to -devel subpackage requires + +* Sun Dec 31 2006 Julian Sikorski - 0.2.6-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..9b12bb0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7ef960d7874f78162d6c9d241de2843e qwtplot3d-0.2.6.tgz