Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > bcdee9349e387d71cb5e8139a1b5c7ef > files > 1

libqwtplot3d-0.2.7-1mdv2008.0.src.rpm

%define name libqwtplot3d
%define version 0.2.7
%define release %mkrel 1

%define fakename  qwtplot3d

%define major 0
%define libname %mklibname %{fakename} %major
%define libnamedev %mklibname %{fakename}  -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: http://puzzle.dl.sourceforge.net/sourceforge/qwtplot3d/qwtplot3d-%version.tar.bz2
# Automatically added by buildreq on Fri Dec 03 2004
BuildRequires: fontconfig 
BuildRequires: freetype2 
BuildRequires: gcc-c++ 
BuildRequires: qt4-devel 
BuildRequires: libstdc++-devel 
BuildRequires: X11-devel 
BuildRequires: xorg-x11 
BuildRoot: %{_tmppath}/%{name}-root

%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-%release
Provides: %{name}-devel = %version-%release
Obsoletes: %{libname}-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
%{qt4dir}/bin/qmake qwtplot3d.pro
make

%install
mkdir -p %buildroot%{_includedir}
mkdir -p %buildroot%_libdir

for n in include/*.h ; do
    install -m 644 $n %buildroot%{_includedir}
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)
%{_includedir}/*
%{_libdir}/*.so


%changelog
* Sat Jul 21 2007 Funda Wang <fundawang@mandriva.org> 0.2.7-1mdv2008.0
+ Revision: 54262
- fix file list
- New version

* Tue Apr 24 2007 Lenny Cartier <lenny@mandriva.org> 0.2.6-2mdv2008.0
+ Revision: 17950
- Rebuild

* Mon Apr 23 2007 Lenny Cartier <lenny@mandriva.org> 0.2.6-1mdv2008.0
+ Revision: 17656
- Update to 0.2.6


* Fri Jul 29 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.2.5-1mdk
- 0.2.5
- Fix qt path
- Fix BuildRequires

* 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 /usr/lib64, fix .so placement

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