File synfig.spec of Package synfig

#
# spec file for package synfig
#
# Copyright (c) 2026 SUSE LLC
#
# 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/
#


%define __builder ninja
%define libname libsynfig
Name:           synfig
Version:        1.5.5
Release:        0
Summary:        Synfig Studio is a free and open-source 2D animation software
License:        GPL-3.0-or-later
URL:            https://github.com/synfig/synfig
Source:         %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  ccache
BuildRequires:  libboost_filesystem-devel
BuildRequires:  update-desktop-files
BuildRequires:  libltdl-devel
BuildRequires:  ninja
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(MagickCore)
BuildRequires:  pkgconfig(OpenEXR)
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(fribidi)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(glibmm-2.4)
BuildRequires:  pkgconfig(gtkmm-3.0)
BuildRequires:  pkgconfig(harfbuzz)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libxml++-2.6)
BuildRequires:  pkgconfig(sigc++-2.0)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(mlt++-7)

%description
Synfig Studio is a free and open-source 2D animation software,
designed as powerful industrial-strength solution for creating
film-quality animation using a vector and bitmap artwork.
It eliminates the need to create animation frame-by frame,
allowing you to produce 2D animation of a higher quality with fewer people and resources.

%package devel
Summary:        Development files for %{name}
Requires:       %{name} = %{version}
Requires:       %{libname} = %{version}

%description devel
%{summary}.

%package -n %{libname}
Summary:        Library for %{name}
Provides:  	%{libname} = %{version}

%description -n %{libname}
%{summary}.

%lang_package

%prep
%autosetup

%build
%cmake
%cmake_build

%install
%cmake_install
%suse_update_desktop_file -c  synfigstudio "Synfig Studio" "Synfig Studio" synfigstudio org.synfig.SynfigStudio "Graphics;2DGraphics;GTK;"
%find_lang %{name} --all-name
%fdupes %{buildroot}%{_prefix}

%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig

%files
%license LICENSE
%doc README.md
%{_bindir}/synfig
%{_bindir}/synfigstudio
%dir %{_prefix}%{_sysconfdir}/
%{_prefix}%{_sysconfdir}/synfig_modules.cfg
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/*/*.svg
%{_datadir}/applications/org.synfig.SynfigStudio.desktop
%{_datadir}/applications/synfigstudio.desktop
%{_datadir}/appdata/org.synfig.SynfigStudio.appdata.xml

%files -n %{libname}
%{_prefix}/lib/%{name}
%{_prefix}/lib/*.so

%files devel
%{_includedir}/ETL
%{_includedir}/%{name}
%dir %{_prefix}/lib/cmake
%dir %{_prefix}/lib/cmake/synfig/
%{_prefix}/lib/cmake/synfig/*.cmake

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by