Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > d8edf20982bb12b213a0b3a62e7ee48c > files > 1

libqwtplot3d-0.2.4-0.beta.1mdk.src.rpm

%define name libqwtplot3d
%define version 0.2.4
%define release 0.beta.1mdk

%define fakename  qwtplot3d

%define major 0
%define libname %mklibname %{fakename} %major
%define libnamedev %mklibname %{fakename} %major -d


Name: %name
Version: %version
Release: %release
Summary: 3D plotting widget extension to the Qt GUI
License: LGPL
Group: System/Libraries
Url: http://qwtplot3d.sourceforge.net/
Source: qwtplot3d-%version-beta.tar.bz2
# Automatically added by buildreq on Fri Dec 03 2004
BuildRequires: fontconfig freetype2 gcc-c++ qt3-devel libstdc++-devel libxorg-x11 XFree86-devel
BuildRoot: %{_tmppath}/%{name}-root

%define qtdir %_libdir/qt3

%description
QwtPlot3D is a feature-rich Qt/OpenGL-based C++ programming library.
It provides essentially a bunch of 3D-widgets for programmers.


%package -n %libname
Summary: 3D plotting widget extension to the Qt GUI
Group: System/Libraries

%description -n %libname
QwtPlot3D is a feature-rich Qt/OpenGL-based C++ programming library.
It provides essentially a bunch of 3D-widgets for programmers.

%package -n %libnamedev
Summary: Development tools for programs which uses QwtPlot3D Widget set
Group: Development/Other
Requires: %libname = %version
Provides: libqwtplot3d-devel 

%description -n %libnamedev
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

%build
export QTDIR=%qtdir
export PATH=$QTDIR/bin:$PATH
qmake qwtplot3d.pro
make

%install
mkdir -p %buildroot%qtdir/include/qwtplot3d
mkdir -p %buildroot%_libdir

for n in include/*.h ; do
    install -m 644 $n %buildroot%qtdir/include/qwtplot3d
done

# install, preserving links
chmod 644 lib/libqwtplot3d.so*
for n in lib/libqwtplot3d.so* ; do
    cp -d $n %buildroot%_libdir
done

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %libname -p /sbin/ldconfig

%postun -n %libname -p /sbin/ldconfig

%files -n %libname
%defattr (-,root,root)
%_libdir/libqwtplot3d.so.*

%files -n %libnamedev
%defattr(-,root,root)
%qtdir/include/qwtplot3d
%_libdir/libqwtplot3d.so

%changelog
* Wed Mar 09 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.2.4-0.beta.1mdk
- from Olivier Lahaye <olivier.lahaye1@free.Fr> : 
	- port spec to Mandrake 10.1

* Fri Feb 11 2005 Vitaly Lipatov <lav@altlinux.ru> 0.2.4-alt0.2beta
- move libraries to %_libdir, fix .so placement

* Mon Dec 27 2004 Vitaly Lipatov <lav@altlinux.ru> 0.2.4-alt0.1beta
- first build for ALT Linux Sisyphus