File engauge-digitizer.spec of Package engauge-digitizer

#
# spec file for package engauge-digitizer
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           engauge-digitizer
Version:        5.2
Release:        0
Summary:        Ditigize old graphs into numbers again
License:        GPL-2.0+
Group:          Productivity/Scientific/Other
Url:            http://digitizer.sourceforge.net/
Source:         http://downloads.sourceforge.net/digitizer/engauge_%{version}.tgz
Source1:        %{name}.desktop
Source2:        %{name}.png
# PATCH-FIX-OPENSUSE doc-path.patch -- fix path to documentation
Patch0:         doc-path.patch
BuildRequires:  fftw3-devel
BuildRequires:  gcc-c++
BuildRequires:  libqt4-devel
BuildRequires:  libqt4-qt3support
BuildRequires:  update-desktop-files
Recommends:     %{name}-doc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This open source, digitizing software converts an image
file showing a graph or map, into numbers. The image file can come
from a scanner, digital camera or screenshot. The numbers can be read
on the screen, and written or copied to a spreadsheet.

%package doc
Summary:        Documentation for Engauge Digitizer
Group:          Documentation/HTML
BuildArch:      noarch
Requires:       %{name} = %{version}

%description doc
This package contains the documentation for Engauge Digitizer.

%prep
%setup -q -n engauge-%{version}
cp %{SOURCE1} .
cp %{SOURCE2} .
%patch0 -p1
chmod 644 usermanual/date*
sed -i 's/\r$//' usermanual/date*

%build
qmake digitizer.pro QMAKE_CFLAGS="%optflags -fno-strict-aliasing" QMAKE_CXXFLAGS="%optflags -fno-strict-aliasing"
make  %{?_smp_mflags}

%install
install -Dm 755 bin/engauge %{buildroot}%{_bindir}/engauge
install -Dm 644 %{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -i %{name}

%files
%defattr(-,root,root)
%doc doc/users/README
%{_bindir}/engauge
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%files doc
%defattr(-,root,root)
%doc usermanual/

%changelog
openSUSE Build Service is sponsored by