File pencil2d.spec of Package pencil2d

#
# spec file for package pencil2d
#
# Copyright (c) 2023 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:           pencil2d
Version:        0.6.6
Release:        0
Summary:        2D vectorial/animation tool
License:        GPL-2.0-or-later
Group:          Productivity/Graphics/Vector Editors
URL:            https://www.pencil2d.org
Source0:        https://github.com/pencil2d/pencil/archive/v%{version}.tar.gz#/pencil-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libqt5-linguist
BuildRequires:  libquazip-qt5-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Core) >= 5.2.0
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5UiTools)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(Qt5XmlPatterns)
BuildRequires:  pkgconfig(zlib)
Recommends:     ffmpeg

%description
An easy, intuitive tool to make 2D hand-drawn animations.

%prep
%setup -q -n pencil-%{version}

%build
mkdir build
pushd build
%qmake5 PREFIX=%{_prefix} ../%{name}.pro
%make_jobs sub-app-all
popd

%install
pushd build
%qmake5_install
popd

%suse_update_desktop_file -r %{buildroot}%{_datadir}/applications/org.%{name}.Pencil2D.desktop Qt Graphics 2DGraphics RasterGraphics
%fdupes %{buildroot}/%{_datadir}

%files
%license LICENSE.TXT
%doc ChangeLog.md README.md
%{_bindir}/%{name}
%{_datadir}/applications/org.%{name}.Pencil2D.desktop
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/icons/hicolor/*/apps/org.%{name}.Pencil2D.??g
%{_datadir}/metainfo/org.%{name}.Pencil2D.metainfo.xml
%{_datadir}/mime/packages/org.%{name}.Pencil2D.xml
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_%{name}

%changelog
openSUSE Build Service is sponsored by