File eos-movrec.spec of Package eos-movrec
#
# spec file for package eos-movrec
#
# Copyright (c) 2018 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 https://bugs.opensuse.org/
#
Name: eos-movrec
Version: 0.3.3
Release: 0
Summary: The EOS Camera Movie Record
License: GPL-2.0-only
Group: Hardware/Camera
URL: http://eos-movrec.sourceforge.net/
Source0: https://sourceforge.net/projects/eos-movrec/files/eos-movrec/%{version}_beta/%{name}-%{version}_beta.zip
# PATCH-FIX-UPSTREAM eos-movrec-no_return_in_nonvoid.patch -- aloisio@gmx.com
Patch0: eos-movrec-no_return_in_nonvoid.patch
# PATCH-FIX-UPSTREAM eos-movrec-qt5.patch
Patch1: eos-movrec-qt5.patch
BuildRequires: cmake
BuildRequires: dos2unix
BuildRequires: hicolor-icon-theme
BuildRequires: libgphoto2-devel >= 2.4.10
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: unzip
BuildRequires: update-desktop-files
%description
This software writes short movies with your digital DSLR camera
Canon directly to computer. The camera must have LiveView
feature to work, like in Canon EOS 450D for example. The Program
has preview, Av, Tv and WB control.
%prep
%setup -q -n %{name}-%{version}_beta
%patch0 -p1
%patch1 -p1
dos2unix TODO License.txt
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
for f in 16 32 128 256 512; do
mkdir -pv %{buildroot}%{_datadir}/icons/hicolor/${f}x${f}/apps
install -m0644 mac.icons/${f}.png %{buildroot}%{_datadir}/icons/hicolor/${f}x${f}/apps/%{name}.png
done
%suse_update_desktop_file -c %{name} %{name} "The EOS Camera Movie Record" eos_movrec eos-movrec Graphics Photography
%files
%license License.txt
%doc TODO
%{_bindir}/eos_movrec
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%changelog