Accepting request 570264 from home:alois:branches:graphics

Brought over from Packman

OBS-URL: https://build.opensuse.org/request/show/570264
OBS-URL: https://build.opensuse.org/package/show/graphics/tupitube?expand=0&rev=1
This commit is contained in:
Stanislav Brabec 2018-02-01 16:08:44 +00:00 committed by Git OBS Bridge
commit 61d8802d4c
7 changed files with 282 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

36
tupitube.changes Normal file
View File

@ -0,0 +1,36 @@
-------------------------------------------------------------------
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:b7ff0d3197dfe36b17eb9e423a4a6860646056a3b0b290b6f75b083b8436273f
size 5890396

10
tupitube.libav.patch Normal file
View File

@ -0,0 +1,10 @@
--- a/configure.tests/libav/main.cpp
+++ b/configure.tests/libav/main.cpp
@@ -41,7 +41,6 @@ extern "C" {
}
#endif
-#include <iostream>
int main()
{

46
tupitube.quazip5.patch Normal file
View File

@ -0,0 +1,46 @@
--- a/configure.tests/quazip/main.cpp
+++ b/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 "quazip5/quazip.h"
+#include "quazip5/quazipfile.h"
#include <QFile>
int main()
--- a/qonf/test.rb
+++ b/qonf/test.rb
@@ -103,7 +103,7 @@ class Test
qmakeLine = "'LIBS += #{extraLib}'"
qmakeLine += " 'INCLUDEPATH += #{extraInclude}'"
else
- extraLib = "-lquazip-qt5"
+ extraLib = "-lquazip5"
qmakeLine = "'LIBS += #{extraLib}'"
end
else
@@ -176,7 +176,7 @@ class Test
if conf.hasArgument?("with-quazip")
config.addLib("-lquazip")
else
- config.addLib("-lquazip-qt5")
+ config.addLib("-lquazip5")
end
# config.addLib("-lquazip-qt5")
--- a/src/libtupi/tuppackagehandler.h
+++ b/src/libtupi/tuppackagehandler.h
@@ -38,8 +38,8 @@
#include "tglobal.h"
#include "tapplicationproperties.h"
-#include "quazip/quazip.h"
-#include "quazip/quazipfile.h"
+#include "quazip5/quazip.h"
+#include "quazip5/quazipfile.h"
// SQA: Pending to enable in the future
// #include "quazip/JlCompress.h"

163
tupitube.spec Normal file
View File

@ -0,0 +1,163 @@
#
# spec file for package tupitube
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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 http://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.10
Release: 0
Summary: 2D vectorial/animation tool
License: GPL-2.0+
Group: Productivity/Graphics/Vector Editors
URL: https://maefloresta.com
Source0: https://sourceforge.net/projects/tupi2d/files/Source%20Code/tupitube.desk-%{version}.tar.gz
Patch0: tupitube.quazip5.patch
Patch1: tupitube.libav.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libquazip-qt5-devel
BuildRequires: pkgconfig
BuildRequires: ruby
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core) >= 5.2.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)
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: %(rpm -qf $(readlink -qne %{_libdir}/libogg.so) --qf '%{NAME} >= %{VERSION}')
Requires: %(rpm -qf $(readlink -qne %{_libdir}/libtheora.so) --qf '%{NAME} >= %{VERSION}')
Requires: %{name}-plugins
Requires: ffmpeg
Provides: ktoon = %{version}
Obsoletes: ktoon < %{version}
Provides: tupi = %{version}
Obsoletes: tupi < %{version}
%description
Tupi: Open 2D Magic is a design and authoring tool for digital artists
interested in 2D Animation. It's 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, basic object library (for svg files and raster images) and many
others.
Using its modules of Animation and Reproduction you can export 2D projects
to several formats 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
%setup -q -n tupitube.desk_%{version}
%patch0 -p1
%patch1 -p1
# 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
%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}
# 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
%fdupes %{buildroot}%{_datadir}
%if 0%{?suse_version} < 1500
%post
%mime_database_post
%icon_theme_cache_post
%desktop_database_post
%postun
%mime_database_postun
%icon_theme_cache_postun
%desktop_database_postun
%endif
%files
%doc COPYING README*
%{_bindir}/%{name}
%{_tupibin}/
%dir %{_tupilib}
%{_tupilib}/*.so.*
%{_tupidata}/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%exclude %{_tupilib}/plugins
%files plugins
%dir %{_tupilib}/plugins
%{_tupilib}/plugins/*.so
%changelog