85 lines
3.0 KiB
RPMSpec
85 lines
3.0 KiB
RPMSpec
|
Name: libqwt
|
||
|
Version: 5.2.1
|
||
|
Release: 2mamba
|
||
|
Summary: GUI Components and utility classes which are primarily useful for programs with a technical background
|
||
|
Group: System/Libraries
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://qwt.sourceforge.net/
|
||
|
Source: http://downloads.sourceforge.net/project/qwt/qwt/%{version}/qwt-%{version}.tar.bz2
|
||
|
License: LGPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libqt4-designer
|
||
|
BuildRequires: libqt4-devel
|
||
|
BuildRequires: libstdc++6-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
The Qwt library contains GUI Components and utility classes which are primarily useful for programs with a technical background. Beside a 2D plot widget it provides scales, sliders, dials, compasses, thermometers, wheels and knobs to control or display values, arrays, or ranges of type double.
|
||
|
|
||
|
%package devel
|
||
|
Summary: Development file for libqwt
|
||
|
Group: Development/Libraries
|
||
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
|
||
|
%description devel
|
||
|
The Qwt library contains GUI Components and utility classes which are primarily useful for programs with a technical background. Beside a 2D plot widget it provides scales, sliders, dials, compasses, thermometers, wheels and knobs to control or display values, arrays, or ranges of type double.
|
||
|
|
||
|
This package contains the header files needed for development with %{name}.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n qwt-%{version}
|
||
|
sed -i "s|\(INSTALLBASE[[:space:]]*= \).*|\1%{_prefix}|" qwtconfig.pri
|
||
|
sed -i "s|\(doc.path[[:space:]]*= \).*|\1%{_datadir}|" qwtconfig.pri
|
||
|
sed -i "s|\(target.path[[:space:]]*= \).*|\1%{_libdir}|" qwtconfig.pri
|
||
|
sed -i "s|#\(CONFIG[[:space:]]*+=[[:space:]]*QwtSVGItem.*\)|\1|" qwtconfig.pri
|
||
|
|
||
|
%build
|
||
|
qmake-qt4
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall INSTALL_ROOT=%{buildroot}
|
||
|
|
||
|
mkdir -p %{buildroot}%{_docdir}/qwt-%{version}
|
||
|
mv %{buildroot}%{_datadir}/html %{buildroot}%{_docdir}/qwt-%{version}
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -p /sbin/ldconfig
|
||
|
%postun -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libqwt.so.*
|
||
|
%{_qt4_plugindir}/designer/libqwt_designer_plugin.so
|
||
|
%{_mandir}/man3/controlscreenshots.3.gz
|
||
|
%{_mandir}/man3/curvescreenshots.3.gz
|
||
|
%{_mandir}/man3/deprecated.3.gz
|
||
|
%{_mandir}/man3/histogramscreenshots.3.gz
|
||
|
%{_mandir}/man3/Qwt*.3.gz
|
||
|
%{_mandir}/man3/qwtinstall.3.gz
|
||
|
%{_mandir}/man3/qwtlicense.3.gz
|
||
|
%{_mandir}/man3/scatterscreenshots.3.gz
|
||
|
%{_mandir}/man3/spectrogramscreenshots.3.gz
|
||
|
%{_docdir}/qwt-%{version}/*
|
||
|
%doc CHANGES COPYING README
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libqwt.so
|
||
|
%{_includedir}/qwt*.h
|
||
|
|
||
|
%changelog
|
||
|
* Mon Aug 23 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-2mamba
|
||
|
- enable build of QwtSVGItem as required by kdebindings 4.5.0
|
||
|
|
||
|
* Sun Aug 22 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-1mamba
|
||
|
- package created by autospec
|