qsstv/qsstv.spec

73 lines
1.9 KiB
RPMSpec

# norootforbuild
Name: qsstv
Summary: Qt-based slow-scan TV and fax
Version: 7.1.7
Release: 0
License: GPL-3.0
Group: Productivity/Hamradio/Other
Url: http://users.telenet.be/on4qz/qsstv/
Source: %{name}_%{version}.tar.bz2
Source1: qsstv.desktop
Source2: qsstv.1
Patch0: qsstv-fix-html-doc-path.patch
Patch1: qsstv-fix-target-path.patch
Patch2: qsstv-gcc47_unistd.patch
Patch3: Fix-mix-ui-form.patch
Patch4: fix-no-return-in-nonvoid-function-logging.cpp.patch
BuildRequires: fftw3-devel
BuildRequires: libqt4-devel
BuildRequires: update-desktop-files
BuildRequires: alsa-devel
BuildRequires: hamlib-devel
BuildRequires: libqwt5-devel
BuildRequires: gcc-c++
BuildRequires: fdupes
BuildRoot: %{_tmppath}/build-root-%{name}
%description
Qsstv is a program for receiving slow-scan television and fax. These are
modes used by hamradio operators. Qsstv uses a soundcard to send and
receive images.
%prep
%setup -q -n %{name}_%{version}
%patch0 -p1 -b .docpath
%patch1 -p1 -b .targetpath
%patch2 -p1 -b .gcc47
%patch3 -p1
%patch4 -p1
# Don't strip the executable so debuginfo package can be built.
sed -i 's| strip $(TARGET);||g' src/src.pro
%build
qmake -makefile %{name}_%{version}.pro PREFIX=%{_prefix} QMAKE_CFLAGS="%optflags" QMAKE_CXXFLAGS="%optflags"
%__make %{?_smp_mflags}
%install
mkdir -p %{buildroot}/%{_bindir}
cp -f src/%{name} %{buildroot}/%{_bindir}/%{name}
# Remove redundant documentation files
%fdupes -s src/documentation/html/*
# Make suse_update_desktop_file be able to find the qsstv icon
cp src/icons/%{name}.png %_sourcedir
# Install man page borrowed from Debian
mkdir -p %{buildroot}%{_mandir}/man1
install -pm 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/
%suse_update_desktop_file -i %{name}
%files
%defattr(-,root,root,-)
%doc COPYING src/documentation/html/*
%{_bindir}/*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1*
%changelog