2018-02-01 17:08:44 +01:00
|
|
|
#
|
|
|
|
# spec file for package tupitube
|
|
|
|
#
|
2020-06-06 13:17:07 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-02-01 17:08:44 +01:00
|
|
|
# Copyright (c) 2016 Packman Team <packman@links2linux.de>
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-04-22 13:59:43 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-02-01 17:08:44 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define _qtdir %{_libdir}/qt5/
|
|
|
|
%define _tupibin %{_libdir}/%{name}/bin
|
|
|
|
%define _tupilib %{_libdir}/%{name}
|
|
|
|
%define _tupidata %{_datadir}/%{name}
|
|
|
|
Name: tupitube
|
2020-11-08 21:52:23 +01:00
|
|
|
Version: 0.2.16
|
2018-02-01 17:08:44 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: 2D vectorial/animation tool
|
2020-07-07 13:45:55 +02:00
|
|
|
License: GPL-2.0-or-later AND GPL-3.0-or-later
|
2018-02-01 17:08:44 +01:00
|
|
|
Group: Productivity/Graphics/Vector Editors
|
|
|
|
URL: https://maefloresta.com
|
|
|
|
Source0: https://sourceforge.net/projects/tupi2d/files/Source%20Code/tupitube.desk-%{version}.tar.gz
|
2020-07-07 13:45:55 +02:00
|
|
|
Source99: tupitube-rpmlintrc
|
2018-02-01 17:08:44 +01:00
|
|
|
Patch0: tupitube.quazip5.patch
|
2020-06-06 13:17:07 +02:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch1: 0001-Fix-build-with-Qt-5.15.patch
|
|
|
|
BuildRequires: dos2unix
|
2018-02-01 17:08:44 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: libquazip-qt5-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: update-desktop-files
|
2020-06-06 13:17:07 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.13.0
|
2018-02-01 17:08:44 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Multimedia)
|
|
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
|
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavformat)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
BuildRequires: pkgconfig(libswscale)
|
|
|
|
BuildRequires: pkgconfig(ogg)
|
|
|
|
BuildRequires: pkgconfig(theora)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
Requires: %{name}-plugins
|
|
|
|
Requires: ffmpeg
|
2019-04-22 13:59:43 +02:00
|
|
|
Requires: %(rpm -qf $(readlink -qne %{_libdir}/libogg.so) --qf '%%{NAME} >= %%{VERSION}')
|
|
|
|
Requires: %(rpm -qf $(readlink -qne %{_libdir}/libtheora.so) --qf '%%{NAME} >= %%{VERSION}')
|
2018-02-01 17:08:44 +01:00
|
|
|
Provides: ktoon = %{version}
|
|
|
|
Obsoletes: ktoon < %{version}
|
|
|
|
Provides: tupi = %{version}
|
|
|
|
Obsoletes: tupi < %{version}
|
|
|
|
|
|
|
|
%description
|
2018-02-02 04:05:12 +01:00
|
|
|
Tupitube is a design and authoring tool for digital artists
|
|
|
|
interested in 2D animation. Its source code is based on the KTooN
|
2018-02-01 17:08:44 +01:00
|
|
|
project.
|
|
|
|
|
2018-02-02 04:05:12 +01:00
|
|
|
Some of its main features are: basic illustration tools (shapes, fill,
|
|
|
|
text), gradient tools, onion skin, brushes editor, pencil with smoothness
|
|
|
|
support and a basic object library (for SVG files and raster images).
|
2018-02-01 17:08:44 +01:00
|
|
|
|
2018-02-02 04:05:12 +01:00
|
|
|
Using its modules of animation and reproduction, 2D projects can be exported
|
|
|
|
to several formats such as OGG, MPEG, AVI, MOV and SWF. Additionally, the
|
|
|
|
option of exporting image arrays as output is available.
|
2018-02-01 17:08:44 +01:00
|
|
|
|
|
|
|
%package plugins
|
|
|
|
Summary: Tupi plugins
|
|
|
|
Group: Productivity/Graphics/Vector Editors
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description plugins
|
2018-02-02 04:05:12 +01:00
|
|
|
A design and authoring tool for 2D animation.
|
2018-02-01 17:08:44 +01:00
|
|
|
|
|
|
|
This package contains plugins for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2020-06-06 13:17:07 +02:00
|
|
|
%autosetup -p1 -n tupitube.desk
|
|
|
|
|
2020-11-08 21:52:23 +01:00
|
|
|
# Fix `require': cannot load such file -- os (LoadError)
|
|
|
|
sed -i '/require .os/d' qonf/configure.rb
|
|
|
|
|
2020-06-06 13:17:07 +02:00
|
|
|
# Fix 'E: spurious-executable-perm'
|
2020-07-07 13:45:55 +02:00
|
|
|
chmod -x COPYING README* launcher/tupitube.xml
|
2020-06-06 13:17:07 +02:00
|
|
|
|
|
|
|
# Fix 'W: wrong-script-end-of-line-encoding'
|
|
|
|
dos2unix src/shell/html/css/tupitube.css
|
2018-02-01 17:08:44 +01:00
|
|
|
|
|
|
|
# Add path to ffmpeg
|
|
|
|
ffmpeg_include=$(pkg-config --cflags-only-I libavutil)
|
|
|
|
find . -type f -name \*.pro | while read f; do
|
|
|
|
echo "QMAKE_CXXFLAGS += %{optflags} ${ffmpeg_include}" >> "$f"
|
|
|
|
done
|
|
|
|
|
2020-07-07 13:45:55 +02:00
|
|
|
# Remove shebang
|
|
|
|
sed -i '/^#!/d' src/mypaint/raster/main/brushes/label-brush-mypaint.sh
|
|
|
|
|
2018-02-01 17:08:44 +01:00
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--with-qtdir=%{_qtdir} \
|
|
|
|
--bindir=%{_tupibin} \
|
|
|
|
--libdir=%{_tupilib} \
|
|
|
|
--sharedir=%{_tupidata}
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
# Create symbolic link
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
|
|
ln -s %{_tupibin}/%{name}.desk %{buildroot}%{_bindir}/%{name}
|
2020-06-06 13:17:07 +02:00
|
|
|
|
2018-02-01 17:08:44 +01:00
|
|
|
# Remove unneeded links
|
|
|
|
pushd %{buildroot}%{_tupilib}
|
|
|
|
for so in $(find . -maxdepth 1 -name \*.so); do
|
|
|
|
rm -f $so; done
|
|
|
|
popd
|
2020-06-06 13:17:07 +02:00
|
|
|
|
2018-02-01 17:08:44 +01:00
|
|
|
# SVG icon
|
|
|
|
install -Dm 0644 launcher/icons/icon.svg \
|
|
|
|
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
2020-06-06 13:17:07 +02:00
|
|
|
|
2018-02-01 17:08:44 +01:00
|
|
|
# fix icon name
|
|
|
|
mv %{buildroot}%{_datadir}/pixmaps/%{name}.desk.png \
|
|
|
|
%{buildroot}%{_datadir}/pixmaps/%{name}.png
|
2020-06-06 13:17:07 +02:00
|
|
|
|
2018-02-01 17:08:44 +01:00
|
|
|
# fix .desktop
|
|
|
|
sed -i -e '/^Exec/cExec=%{name}' -e '/^Icon/cIcon=%{name}' \
|
|
|
|
%{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
2020-06-06 13:17:07 +02:00
|
|
|
# Fix 'W: script-without-shebang' rpmlint warnings
|
|
|
|
find %{buildroot}%{_tupidata} -type f -executable -exec chmod -x {} \;
|
2018-02-01 17:08:44 +01:00
|
|
|
|
2020-06-06 13:17:07 +02:00
|
|
|
# Cleanup
|
|
|
|
rm -f %{buildroot}%{_tupilib}/raster/*.so
|
2018-02-01 17:08:44 +01:00
|
|
|
|
2020-06-06 13:17:07 +02:00
|
|
|
%fdupes %{buildroot}%{_datadir}
|
2018-02-01 17:08:44 +01:00
|
|
|
|
|
|
|
%files
|
2019-04-22 13:59:43 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README*
|
2018-02-01 17:08:44 +01:00
|
|
|
%dir %{_tupilib}
|
2020-06-06 13:17:07 +02:00
|
|
|
%{_bindir}/%{name}
|
2018-02-01 17:08:44 +01:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2020-06-06 13:17:07 +02:00
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
2018-02-01 17:08:44 +01:00
|
|
|
%{_datadir}/mime/packages/%{name}.xml
|
2020-06-06 13:17:07 +02:00
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%{_tupibin}/
|
|
|
|
%{_tupidata}/
|
|
|
|
%{_tupilib}/*.so.*
|
|
|
|
%{_tupilib}/raster/
|
2018-02-01 17:08:44 +01:00
|
|
|
%exclude %{_tupilib}/plugins
|
|
|
|
|
|
|
|
%files plugins
|
|
|
|
%dir %{_tupilib}/plugins
|
|
|
|
%{_tupilib}/plugins/*.so
|
|
|
|
|
|
|
|
%changelog
|