|
|
eb70aa2 |
%define qtinc %(qmake -query QT_INSTALL_PREFIX)/include
|
|
|
eb70aa2 |
%define qtlib %(qmake -query QT_INSTALL_PREFIX)/lib
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
Name: qwtplot3d
|
|
|
1806799 |
Version: 0.2.7
|
|
|
610c0dc |
Release: 9%{?dist}
|
|
|
f652a24 |
Summary: Qt/OpenGL-based C++ library providing a bunch of 3D-widgets
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
Group: System Environment/Libraries
|
|
|
f652a24 |
#zlib/libpng License
|
|
|
f652a24 |
License: zlib
|
|
|
eb70aa2 |
URL: http://qwtplot3d.sourceforge.net/
|
|
|
1806799 |
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tgz
|
|
|
1806799 |
|
|
|
eb70aa2 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
eb70aa2 |
|
|
|
9319d60 |
BuildRequires: qt3-devel
|
|
|
eb70aa2 |
BuildRequires: libXmu-devel
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
%description
|
|
|
f652a24 |
QwtPlot3D is not a program, but a feature-rich Qt/OpenGL-based C++
|
|
|
f652a24 |
programming library, providing essentially a bunch of 3D-widgets for
|
|
|
f652a24 |
programmers.
|
|
|
f652a24 |
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
%package devel
|
|
|
eb70aa2 |
Summary: Development files for %{name}
|
|
|
eb70aa2 |
Group: Development/Libraries
|
|
|
eb70aa2 |
Requires: %{name} = %{version}-%{release}
|
|
|
9319d60 |
Requires: qt3-devel
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
%description devel
|
|
|
eb70aa2 |
The %{name}-devel package contains libraries and header files for
|
|
|
eb70aa2 |
developing applications that use %{name}.
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
|
|
|
f652a24 |
|
|
|
f652a24 |
%package qt4
|
|
|
f652a24 |
Summary: Qt4/OpenGL-based C++ library providing a bunch of 3D-widgets
|
|
|
f652a24 |
Group: System Environment/Libraries
|
|
|
f652a24 |
BuildRequires: qt4-devel
|
|
|
f652a24 |
|
|
|
f652a24 |
%description qt4
|
|
|
f652a24 |
QwtPlot3D is not a program, but a feature-rich Qt4/OpenGL-based C++
|
|
|
f652a24 |
programming library, providing essentially a bunch of 3D-widgets for
|
|
|
f652a24 |
programmers.
|
|
|
f652a24 |
|
|
|
f652a24 |
%package qt4-devel
|
|
|
f652a24 |
Summary: Development files for %{name}
|
|
|
f652a24 |
Group: Development/Libraries
|
|
|
f652a24 |
Requires: %{name}-qt4 = %{version}-%{release}
|
|
|
f652a24 |
Requires: qt4-devel
|
|
|
f652a24 |
|
|
|
f652a24 |
%description qt4-devel
|
|
|
f652a24 |
The %{name}-devel package contains qt4 libraries and header files for
|
|
|
f652a24 |
developing applications that use %{name}.
|
|
|
f652a24 |
|
|
|
f652a24 |
|
|
|
f652a24 |
|
|
|
eb70aa2 |
%prep
|
|
|
eb70aa2 |
%setup -q -n %{name}
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
#fix line endings
|
|
|
1806799 |
%{__sed} -i 's/\r//' COPYING
|
|
|
eb70aa2 |
find examples -type f | xargs %{__sed} -i 's/\r//'
|
|
|
eb70aa2 |
|
|
|
1806799 |
%{__sed} -i "s|-fno-exceptions|-fno-exceptions %{optflags} |" qwtplot3d.pro examples/common.pro
|
|
|
1806799 |
%{__sed} -i "s|0.2.6|%{version}|" qwtplot3d.pro
|
|
|
eb70aa2 |
|
|
|
f652a24 |
# treating soname
|
|
|
f652a24 |
%{__sed} -i "s|TARGET *= qwtplot3d|TARGET = qwtplot3d-qt4|" qwtplot3d.pro
|
|
|
f652a24 |
|
|
|
a300608 |
# fixing gcc4.4 build
|
|
|
a300608 |
%{__sed} -i "4i\#include <cstdio>" src/qwt3d_function.cpp
|
|
|
f652a24 |
|
|
|
f652a24 |
%{__mkdir} qt4
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
%build
|
|
|
1806799 |
|
|
|
f652a24 |
#QT4
|
|
|
f652a24 |
|
|
|
f652a24 |
cd qt4
|
|
|
f652a24 |
qmake-qt4 ../qwtplot3d.pro
|
|
|
f652a24 |
%{__make} %{?_smp_mflags}
|
|
|
f652a24 |
|
|
|
f652a24 |
%{__make} clean
|
|
|
f652a24 |
cd ..
|
|
|
f652a24 |
# treating soname
|
|
|
f652a24 |
%{__sed} -i "s|TARGET *= qwtplot3d-qt4|TARGET = qwtplot3d|" qwtplot3d.pro
|
|
|
f652a24 |
|
|
|
f652a24 |
#QT3
|
|
|
1806799 |
|
|
|
eb70aa2 |
qmake qwtplot3d.pro
|
|
|
1806799 |
%{__make} %{?_smp_mflags}
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
%install
|
|
|
1806799 |
%{__rm} -rf %{buildroot}
|
|
|
1806799 |
|
|
|
f652a24 |
#QT3
|
|
|
1806799 |
%{__mkdir} -p %{buildroot}%{qtlib}
|
|
|
1806799 |
%{__install} -p -m 0755 lib/libqwtplot3d.so.%{version} %{buildroot}%{qtlib}
|
|
|
1806799 |
ln -s libqwtplot3d.so.%{version} %{buildroot}%{qtlib}/libqwtplot3d.so
|
|
|
f652a24 |
#rm -f %{buildroot}%{qtlib}/libqwtplot3d.so.0
|
|
|
1806799 |
ln -s libqwtplot3d.so.%{version} %{buildroot}%{qtlib}/libqwtplot3d.so.0
|
|
|
1806799 |
|
|
|
1806799 |
|
|
|
1806799 |
%{__mkdir} -p %{buildroot}%{qtinc}/qwtplot3d
|
|
|
1806799 |
%{__install} -p -m 0644 include/* %{buildroot}%{qtinc}/qwtplot3d
|
|
|
1806799 |
|
|
|
1806799 |
|
|
|
f652a24 |
# QT4
|
|
|
f652a24 |
|
|
|
f652a24 |
%{__mkdir} -p %{buildroot}%{_qt4_headerdir}/qwtplot3d
|
|
|
f652a24 |
%{__install} -p -m 0644 include/* %{buildroot}%{_qt4_headerdir}/qwtplot3d
|
|
|
f652a24 |
|
|
|
f652a24 |
cd qt4
|
|
|
f652a24 |
%{__mkdir} -p %{buildroot}%{_qt4_libdir}
|
|
|
f652a24 |
%{__install} -p -m 0755 lib/libqwtplot3d-qt4.so.%{version} %{buildroot}%{_qt4_libdir}
|
|
|
f652a24 |
ln -s libqwtplot3d-qt4.so.%{version} %{buildroot}%{_qt4_libdir}/libqwtplot3d-qt4.so
|
|
|
f652a24 |
#rm -f %{buildroot}%{_qt4_libdir}/libqwtplot3d-qt4.so.0
|
|
|
f652a24 |
ln -s libqwtplot3d-qt4.so.%{version} %{buildroot}%{_qt4_libdir}/libqwtplot3d-qt4.so.0
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
%clean
|
|
|
1806799 |
%{__rm} -rf %{buildroot}
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
%post -p /sbin/ldconfig
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
%postun -p /sbin/ldconfig
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
|
|
|
f652a24 |
%post qt4 -p /sbin/ldconfig
|
|
|
f652a24 |
|
|
|
f652a24 |
%postun qt4 -p /sbin/ldconfig
|
|
|
f652a24 |
|
|
|
f652a24 |
|
|
|
eb70aa2 |
%files
|
|
|
eb70aa2 |
%defattr(-,root,root,-)
|
|
|
1806799 |
%doc COPYING
|
|
|
eb70aa2 |
%{qtlib}/libqwtplot3d.so.*
|
|
|
eb70aa2 |
|
|
|
f652a24 |
%files qt4
|
|
|
f652a24 |
%doc COPYING
|
|
|
f652a24 |
%defattr(-,root,root,-)
|
|
|
f652a24 |
%{_qt4_libdir}/libqwtplot3d-qt4.so.*
|
|
|
f652a24 |
|
|
|
f652a24 |
%files qt4-devel
|
|
|
f652a24 |
%defattr(-,root,root,-)
|
|
|
f652a24 |
%doc examples
|
|
|
f652a24 |
%{_qt4_headerdir}/%{name}/
|
|
|
f652a24 |
%{_qt4_libdir}/libqwtplot3d-qt4.so
|
|
|
1806799 |
|
|
|
eb70aa2 |
%files devel
|
|
|
eb70aa2 |
%defattr(-,root,root,-)
|
|
|
eb70aa2 |
%doc examples
|
|
|
1806799 |
%{qtinc}/%{name}/
|
|
|
eb70aa2 |
%{qtlib}/libqwtplot3d.so
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
%changelog
|
|
|
610c0dc |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-9
|
|
|
610c0dc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
610c0dc |
|
|
|
a300608 |
* Thu Mar 05 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 0.2.7-8
|
|
|
a300608 |
- fixed failed build on gcc 4.4
|
|
|
a300608 |
|
|
|
3948bef |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-7
|
|
|
3948bef |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
3948bef |
|
|
|
d9acaf0 |
* Wed Apr 02 2008 Rex Dieter <rdieter@fedoraproject.org> - 0.2.7-6
|
|
|
d9acaf0 |
- s/qt-devel/qt3-devel/
|
|
|
d9acaf0 |
|
|
|
78c85de |
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.7-5
|
|
|
78c85de |
- Autorebuild for GCC 4.3
|
|
|
78c85de |
|
|
|
f652a24 |
* Thu Aug 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 0.2.7-4
|
|
|
f652a24 |
- fixed -qt4 symbolic links
|
|
|
f652a24 |
- update license to zlib
|
|
|
f652a24 |
|
|
|
f652a24 |
* Thu Aug 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 0.2.7-3
|
|
|
f652a24 |
- queued for mass rebuild for Fedora 8 - BuildID
|
|
|
f652a24 |
|
|
|
f652a24 |
* Wed Aug 08 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 0.2.7-2
|
|
|
f652a24 |
- built and shipped qwtplot3d-qt4 and devel
|
|
|
f652a24 |
|
|
|
f652a24 |
* Mon Jul 30 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 0.2.7-1
|
|
|
1806799 |
- New upstream release
|
|
|
1806799 |
- Added optflags to the make process
|
|
|
1806799 |
- fix ownership
|
|
|
1806799 |
|
|
|
eb70aa2 |
* Tue Jan 02 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.2.6-2
|
|
|
eb70aa2 |
- Added qt-devel to -devel subpackage requires
|
|
|
eb70aa2 |
|
|
|
eb70aa2 |
* Sun Dec 31 2006 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.2.6-1
|
|
|
eb70aa2 |
- Initial RPM release
|