File qtiplot.spec of Package qtiplot

Name:           qtiplot
%if 0%{?suse_version}
BuildRequires:  libqt4-devel >= 4.7
#BuildRequires:  python-qt4-devel
#BuildRequires:  python-sip
#BuildRequires:  docbook-dsssl-stylesheets
#BuildRequires:  texlive-jadetex
#%define qmake qmake
#%define lupdate lupdate
#%define lrelease lrelease
%else if 0%{?fedora_version}%{?centos_version}
#BuildRequires:  qt-devel >= 1:4.5
#BuildRequires:  PyQt4-devel
BuildRequires:  gcc-c++
#BuildRequires:  sip-devel
#BuildRequires:  docbook-style-dsssl
#BuildRequires:  docbook-utils-pdf
#BuildRequires:  openjade
#%define qmake qmake-qt4
#%define lupdate lupdate-qt4
#%define lrelease lrelease-qt4
%define _docdir %{_datadir}/doc
%endif
#BuildRequires:  dblatex
BuildRequires:  gsl-devel
BuildRequires:  boost-devel >= 1.33
#BuildRequires:  docbook-utils
#BuildRequires:  libxslt
#BuildRequires:  python-devel
BuildRequires:  libmuparser-devel = 1.32
BuildRequires:  qt4-assistant-adp-devel
#BuildRequires:  QTeXEngine-devel
#%if 0%{?suse_version} > 1120
#%endif
License:        GPL
Group:          Productivity/Graphics/Visualization/Other
AutoReqProv:    on
Summary:        Data Analysis and Scientific Plotting
Version:        0.9.8.2
Release:        0
Source0:        %{name}-%{version}.tar.gz
Source6:        qtiplot.png
Source7:        qtiplot.desktop
#Patch1:         1-stdio.patch
#Patch2:         2-build.conf.patch
#%if 0%{?suse_version}
#Patch3:         3-sip.patch
#%endif
#Patch4:         4-manual.patch
#Patch5:         5-qwt-path.patch
#Patch6:         6-nonvoid-return.patch
#Patch7:         7-docbook.patch
#Patch8:         8-installbase.patch
#Patch9:         9-install-path.patch
#Patch10:        10-qt-tools.patch
#Patch12:        12-include-qwtplot.patch
#Patch13:        13-qassistant.patch
Patch14:        14-qwtplot-target.patch
Patch16:        16-Note.cpp.patch
#BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRoot:       %{_builddir}/%{name}-root

%package devel
Summary:        Data Analysis and Scientific Plotting
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

#%package doc
#Summary:        Data Analysis and Scientific Plotting
#Group:          Productivity/Graphics/Visualization/Other

%description
Scientists often need to use data analysis and plotting software. The
purpose of this project is to develop an open source platform
independent alternative to proprietary scientific software like
Origin, SigmaPlot, Regressi or Igor Pro. QtiPlot can be successfully
used for teaching as well as for complex data analysis and
visualisation and is being used in companies, high schools,
universities and reseach institutes all over the world.

This package contains liborigin2.

Authors
--------
    Ion Vasilief

%description devel
Scientists often need to use data analysis and plotting software. The
purpose of this project is to develop an open source platform
independent alternative to proprietary scientific software like
Origin, SigmaPlot, Regressi or Igor Pro. QtiPlot can be successfully
used for teaching as well as for complex data analysis and
visualisation and is being used in companies, high schools,
universities and reseach institutes all over the world.

This package contains headers and libraries.

Authors
--------
    Ion Vasilief

#%description doc
#Scientists often need to use data analysis and plotting software. The
#purpose of this project is to develop an open source platform
#independent alternative to proprietary scientific software like
#Origin, SigmaPlot, Regressi or Igor Pro. QtiPlot can be successfully
#used for teaching as well as for complex data analysis and
#visualisation and is being used in companies, high schools,
#universities and reseach institutes all over the world.
#
#This package contains documentation.
#
#Authors
#--------
#    Ion Vasilief


%prep
%setup -q 
#%patch1 -p1
#%patch2
#%if 0%{?suse_version}
#%patch3
#%endif
#%patch4 -p1
#%patch5 -p1
#%patch6 -p1
#%patch7 -p1
#%patch8
#%patch9 -p1
#%patch10 -p1
#%patch12 -p1
#%patch13 -p1
%patch14 -p1
%patch16 -p1
sed -i 's/\r//' gpl_licence.txt
sed -i 's/\r//' qtiplot/qti_wordlist.txt
sed -i 's/\r//' qtiplot/qtiplotrc.py

%build
#%qmake LIB=%{_libdir} DOCDIR=%{_docdir} LUPDATE=%{lupdate} LRELEASE=%{lrelease} qtiplot.pro
qmake
make 

%install
make INSTALL_ROOT=$RPM_BUILD_ROOT install
#mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}
#rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}/manual/html
#cd manual
#install qtiplot-manual-en.pdf $RPM_BUILD_ROOT/%{_docdir}/%{name}
rm -f $RPM_BUILD_ROOT/%{_libdir}/libqwt.a
rm -f $RPM_BUILD_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a
#rm -f %{_builddir}/%{name}-%{version}/3rdparty/qwtplot3d/lib/libqwtplot3d.a
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/
 
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE7} %{buildroot}%{_datadir}/applications/
%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/*.so.*
#echo %{_libdir}/%{name}/plugins/*.so.*
#%dir %{_datadir}/%{name}
#%attr (0644,root,root) %{_datadir}/%{name}/qtiplotrc.py
#%attr (0644,root,root) %{_datadir}/%{name}/qtiUtil.py
#%attr (0644,root,root) %{_datadir}/%{name}/qti_wordlist.txt
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*

%files devel
%defattr(0644,root,root)
%{_libdir}/%{name}/plugins/*.so
#%{_includedir}/qwt_*.h
#%{_includedir}/qwt.h
/usr/local/qwt-5.2.0/
#/usr/local/qwt-5.2.0/include/*.h
#/usr/local/qwt-5.2.0/lib/libqwt.a

#%files doc
#%defattr(0644,root,root)
#%dir %attr(0755,root,root) %{_docdir}/%{name}
#%dir %attr(0755,root,root) %{_docdir}/%{name}/html
#%dir %attr(0755,root,root) %{_docdir}/%{name}/html/common
#%dir %attr(0755,root,root) %{_docdir}/%{name}/html/equations
#%dir %attr(0755,root,root) %{_docdir}/%{name}/html/icons
#%dir %attr(0755,root,root) %{_docdir}/%{name}/html/pics
#%dir %attr(0755,root,root) %{_docdir}/%{name}/html/tutorial
#%{_docdir}/%{name}/html/*
#%dir %attr(0755,root,root) %{_docdir}/%{name}/manual
#%{_docdir}/%{name}/manual/qtiplot-manual-en.pdf
#%{_docdir}/%{name}/README.html
#%{_docdir}/%{name}/gpl_licence.txt
#%{_mandir}/man1/%{name}.1.gz

%changelog
openSUSE Build Service is sponsored by