- Update to version 0.2.22 (no changelog supplied)

- Force build against ffmpeg-4 in Factory
- Drop tupitube.quazip5.patch (no longer required)

OBS-URL: https://build.opensuse.org/package/show/graphics/tupitube?expand=0&rev=20
This commit is contained in:
Luigi Baldoni 2024-10-08 17:21:38 +00:00 committed by Git OBS Bridge
commit 9f7b6b407b
8 changed files with 386 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
tupitube-rpmlintrc Normal file
View File

@ -0,0 +1,3 @@
# false positive
addFilter("unexpanded-macro.*Opaque.*")

106
tupitube.changes Normal file
View File

@ -0,0 +1,106 @@
-------------------------------------------------------------------
Tue Oct 8 16:14:40 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 0.2.22 (no changelog supplied)
- Force build against ffmpeg-4 in Factory
- Drop tupitube.quazip5.patch (no longer required)
-------------------------------------------------------------------
Fri Mar 3 13:01:05 UTC 2023 - Hans-Peter Jansen <hpj@urpla.net>
- Fix build with newer rubies, that removed File:exists method
-------------------------------------------------------------------
Tue Apr 26 12:25:31 UTC 2022 - Luigi Baldoni <aloisio@gmx.com>
- Future proof tupitube.quazip5.patch and fix Factory build
-------------------------------------------------------------------
Mon Dec 6 10:05:57 UTC 2021 - Hans-Peter Jansen <hpj@urpla.net>
- Update to version 0.2.18 (no changelog supplied)
- Removed 0001-Fix-build-with-Qt-5.15.patch
- Adjusted tupitube.quazip5.patch
-------------------------------------------------------------------
Tue Mar 30 09:43:54 UTC 2021 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 0.2.17 (no changelog supplied)
- Refreshed 0001-Fix-build-with-Qt-5.15.patch
-------------------------------------------------------------------
Sun Nov 8 06:42:17 UTC 2020 - Carsten Ziepke <kieltux@gmail.com>
- Update to version 0.2.16:
- no changelog supplied upstream
- Rebase tupitube.quazip5.patch
-------------------------------------------------------------------
Tue Jul 7 10:50:01 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
- Add GPL-3.0-or-later license on account of the libqtmypaint and
libraster* plugins
- Add tupitube-rpmlintrc
- Fix some rpmlint complaints
-------------------------------------------------------------------
Thu Jun 4 21:14:42 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Update to 0.2.15. No changelog.
- Rebase tupitube.quazip5.patch
- Drop tupitube.libav.patch. No longer necessary.
- Add patch to fix build with Qt 5.15:
* 0001-Fix-build-with-Qt-5.15.patch
- Spec cleanup
-------------------------------------------------------------------
Mon Apr 22 11:35:59 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 0.2.13 (no changelog supplied)
-------------------------------------------------------------------
Thu Feb 1 23:41:31 UTC 2018 - jengelh@inai.de
- Fix errors in description.
-------------------------------------------------------------------
Thu Feb 1 18:48:16 UTC 2018 - aloisio@gmx.com
- Fixed runtime requirements
-------------------------------------------------------------------
Sat Jan 27 12:21:54 UTC 2018 - aloisio@gmx.com
- Update to 0.2.10
* Several critical bugs around the Exposure Sheet module and the
Time Line were fixed.
* The Color Palette interface was improved, including the
interaction with Color Fill tools.
* The first phase of the Sound Module implementation has been
included to support sound files just as references to animate.
In future versions, the sound files will be merged within the
animation video files.
* The Position Tween was improved by including the Undo option
for the path edition mode.
* The Stop Motion module was refactored to fix several bugs and
to enhance its user experience.
- Changed name to tupitube (as per upstream renaming)
- Spec cleanup
-------------------------------------------------------------------
Tue Jun 20 08:35:10 UTC 2017 - olaf@aepfle.de
- Update to 0.2.9
-------------------------------------------------------------------
Fri Apr 8 15:58:11 UTC 2016 - avvissu@yandex.by
- Add Requires: plugins
-------------------------------------------------------------------
Sun Jan 3 11:19:29 UTC 2016 - avvissu@yandex.ru
- Initial build

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b765e39426531c383cc88cda62c5331efe5f965d02ec079e55eddd077749a4aa
size 6563244

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8470fc72b257bbb7dcef629224f30186711bb2c4f4e2001c34fa5361bf932b12
size 8975447

58
tupitube.quazip5.patch Normal file
View File

@ -0,0 +1,58 @@
Index: tupitube.desk/configure.tests/quazip/main.cpp
===================================================================
--- tupitube.desk.orig/configure.tests/quazip/main.cpp
+++ tupitube.desk/configure.tests/quazip/main.cpp
@@ -33,8 +33,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
-#include "quazip/quazip.h"
-#include "quazip/quazipfile.h"
+#include <quazip/quazip.h>
+#include <quazip/quazipfile.h>
#include <QFile>
int main()
Index: tupitube.desk/qonf/test.rb
===================================================================
--- tupitube.desk.orig/qonf/test.rb
+++ tupitube.desk/qonf/test.rb
@@ -103,7 +103,7 @@ class Test
qmakeLine = "'LIBS += #{extraLib}'"
qmakeLine += " 'INCLUDEPATH += #{extraInclude}'"
else
- extraLib = "-lquazip-qt5"
+ extraLib = "-lquazip1-qt5"
qmakeLine = "'LIBS += #{extraLib}'"
end
else
@@ -165,10 +165,10 @@ class Test
if conf.hasArgument?("with-quazip")
config.addLib("-lquazip")
else
- config.addLib("-lquazip-qt5")
+ config.addLib("-lquazip1-qt5")
end
- # config.addLib("-lquazip-qt5")
+ # config.addLib("-lquazip1-qt5")
parser.defines.each { |define|
config.addDefine(define)
Index: tupitube.desk/src/libtupi/tuppackagehandler.cpp
===================================================================
--- tupitube.desk.orig/src/libtupi/tuppackagehandler.cpp
+++ tupitube.desk/src/libtupi/tuppackagehandler.cpp
@@ -34,9 +34,9 @@
***************************************************************************/
#include "tuppackagehandler.h"
-#include "quazip/quazip.h"
-#include "quazip/quazipfile.h"
-#include "quazip/JlCompress.h"
+#include <quazip/quazip.h>
+#include <quazip/quazipfile.h>
+#include <quazip/JlCompress.h>
TupPackageHandler::TupPackageHandler()
{

189
tupitube.spec Normal file
View File

@ -0,0 +1,189 @@
#
# spec file for package tupitube
#
# Copyright (c) 2024 SUSE LLC
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _qtdir %{_libdir}/qt5/
%define _tupibin %{_libdir}/%{name}/bin
%define _tupilib %{_libdir}/%{name}
%define _tupidata %{_datadir}/%{name}
Name: tupitube
Version: 0.2.22
Release: 0
Summary: 2D vectorial/animation tool
License: GPL-2.0-or-later AND GPL-3.0-or-later
Group: Productivity/Graphics/Vector Editors
URL: https://www.tupitube.com
Source0: https://sourceforge.net/projects/tupi2d/files/Source%20Code/tupitube.desk-%{version}.tar.gz
Source99: tupitube-rpmlintrc
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: ruby
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core) >= 5.13.0
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)
%if 0%{?suse_version} > 1500
BuildRequires: pkgconfig(libavcodec) = 58.134.100
BuildRequires: pkgconfig(libavdevice) = 58.13.100
BuildRequires: pkgconfig(libavformat) = 58.76.100
BuildRequires: pkgconfig(libavutil) = 56.70.100
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libswscale) = 5.9.100
%else
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavdevice)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libswscale)
%endif
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(quazip1-qt5)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(theora)
BuildRequires: pkgconfig(zlib)
Requires: %{name}-plugins
Requires: ffmpeg
Requires: %(rpm -qf $(readlink -qne %{_libdir}/libogg.so) --qf '%%{NAME} >= %%{VERSION}')
Requires: %(rpm -qf $(readlink -qne %{_libdir}/libtheora.so) --qf '%%{NAME} >= %%{VERSION}')
Provides: ktoon = %{version}
Obsoletes: ktoon < %{version}
Provides: tupi = %{version}
Obsoletes: tupi < %{version}
%description
Tupitube is a design and authoring tool for digital artists
interested in 2D animation. Its source code is based on the KTooN
project.
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).
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.
%package plugins
Summary: Tupi plugins
Group: Productivity/Graphics/Vector Editors
Requires: %{name} = %{version}
%description plugins
A design and authoring tool for 2D animation.
This package contains plugins for %{name}.
%prep
%autosetup -p1 -n tupitube.desk
# Fix `require': cannot load such file -- os (LoadError)
sed -i '/require .os/d' qonf/configure.rb
# Newer rubies obviously removed this method: note the elaborated error message
# Configure failed. error was: undefined method `exists?' for File:Class
sed -i 's|File.exists|File.exist|' configure.rb qonf/test.rb
# Configure failed. error was: undefined method `exists?' for module FileTest
sed -e 's|FileTest.exists|FileTest.exist|' configure.rb
# Add path to ffmpeg
ffmpeg_include=$(pkg-config --cflags-only-I libavutil)
# Add Quazip path
quazip_include=$(pkg-config --cflags-only-I quazip1-qt5)
find . -type f -name \*.pro | while read f; do
echo "QMAKE_CXXFLAGS += %{optflags} ${ffmpeg_include} ${quazip_include}" >> "$f"
done
# Remove shebang
sed -i '/^#!/d' src/mypaint/raster/main/brushes/label-brush-mypaint.sh
%build
%configure \
--with-qtdir=%{_qtdir} \
--bindir=%{_tupibin} \
--libdir=%{_tupilib} \
--sharedir=%{_tupidata}
%make_build
%install
%make_install
# Create symbolic link
install -d %{buildroot}%{_bindir}
ln -s %{_tupibin}/%{name}.desk %{buildroot}%{_bindir}/%{name}
# Remove unneeded links
pushd %{buildroot}%{_tupilib}
for so in $(find . -maxdepth 1 -name \*.so); do
rm -f $so; done
popd
# SVG icon
install -Dm 0644 launcher/icons/icon.svg \
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
# fix icon name
mv %{buildroot}%{_datadir}/pixmaps/%{name}.desk.png \
%{buildroot}%{_datadir}/pixmaps/%{name}.png
# fix .desktop
sed -i -e '/^Exec/cExec=%{name}' -e '/^Icon/cIcon=%{name}' \
%{buildroot}%{_datadir}/applications/%{name}.desktop
# Fix 'W: script-without-shebang' rpmlint warnings
find %{buildroot}%{_tupidata} -type f -executable -exec chmod -x {} \;
# Cleanup
rm -f %{buildroot}%{_tupilib}/raster/*.so
%fdupes %{buildroot}%{_datadir}
%files
%license COPYING
%doc README*
%dir %{_tupilib}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/tupitube.appdata.xml
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}.png
%{_tupibin}/
%{_tupidata}/
%{_tupilib}/*.so.*
%{_tupilib}/raster/
%exclude %{_tupilib}/plugins
%files plugins
%dir %{_tupilib}/plugins
%{_tupilib}/plugins/*.so
%changelog