SHA256
1
0
forked from pool/tiled
tiled/tiled.spec
Michael Vetter 4116a20e98 - Update to 1.10.0:
* Restored Tiled 1.8 file format compatibility by default (#3560)
  * Added action search popup on Ctrl+Shift+P (with dogboydog, #3449)
  * Added Godot 4 export plugin (by Rick Yorgason, #3550)
  * Added file system actions also for tileset image based tilesets (#3448)
  * Added custom class option to disable drawing fill for objects (with dogboydog, #3312)
  * Added option to choose a custom interface font (#3589)
  * Implemented rendering of major grid lines for staggered / hexagonal maps (#3583)
  * Fixed new layer names to be always unique (by Logan Higinbotham, #3452)
  * Fixed broken tile images after importing/exporting a tileset
  * AutoMapping: Added support for output set probability (#3179)
  * AutoMapping: When input regions are defined, match in order by default (#3559)
  * AutoMapping: Skip locked layers when applying rules (#3544)
  * AutoMapping: Fixed NoOverlappingOutput in case of multiple output indices (#3551)
  * AutoMapping: Fixed automatic output regions for object output (#3473)
  * AutoMapping: Fixed crash on undo when output layers have properties
  * Scripting: Added Object.setColorProperty and Object.setFloatProperty (#3423)
  * Scripting: Added tiled.projectFilePath
  * Scripting: Added tiled.versionLessThan
  * Scripting: Added TileMap.toImage (#3519)
  * Scripting: Added Tool.targetLayerType (#3248)
  * Scripting: Added region.contiguousRegions() (#3576)
  * Scripting: Added tiled.compress and tiled.decompress (#3153)
  * Scripting: Added Base64 encoding and decoding API (#3153)
  * Scripting: Allow assigning null to Tile.objectGroup (by Logan Higinbotham, #3495)
  * Scripting: Allow changing the items in a combo box added to a dialog
  * Scripting: Fixed painting issues after changing TileLayer size (#3481)
  * Scripting: Renamed Tileset.collection to Tileset.isCollection (#3543)
  * Defold plugin: Allow overriding z value also when exporting to .collection (#3214)
  * Qt 6: Fixed invisible tileset tabs when only a single tileset is open

OBS-URL: https://build.opensuse.org/package/show/games:tools/tiled?expand=0&rev=80
2023-03-11 06:34:31 +00:00

137 lines
3.8 KiB
RPMSpec

#
# spec file for package tiled
#
# Copyright (c) 2023 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/
#
Name: tiled
Version: 1.10.0
Release: 0
Summary: A tilemap editor
License: GPL-2.0-or-later
URL: https://www.mapeditor.org
Source: https://github.com/mapeditor/tiled/archive/refs/tags/v%{version}.tar.gz
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: qt6-opengl-devel
#BuildRequires: libqaccessibilityclient-qt5-devel
BuildRequires: qt6-linguist-devel
BuildRequires: qbs
BuildRequires: qt6-base-common-devel
BuildRequires: qt6-base-devel
BuildRequires: qt6-core-devel >= 6.4.2
BuildRequires: qt6-declarative-devel
BuildRequires: qt6-declarative-private-devel
BuildRequires: qt6-gui-devel
BuildRequires: qt6-qml-devel
BuildRequires: qt6-quickcontrols2-devel
BuildRequires: shared-mime-info
BuildRequires: zlib-devel
Recommends: tmxtools
Provides: tiled-qt
%description
Tiled is a general purpose tile map editor. It is built to work with
varying game engines, whether your game is an RPG, platformer or
Breakout clone. Tiled is written in C++, using the Qt application
framework.
%package -n tmxtools
Summary: Commandline Tools for Tiled MapEditor
License: BSD-2-Clause
%description -n tmxtools
This package contains tmxviewer, a simple application to view Tiled maps
and tmxrasterizer which is also a command line tool.
%package -n libtiled1
Summary: Library for Tiled MapEditor
License: BSD-2-Clause
%description -n libtiled1
This package contains libtiled a library for the Tiled map editor.
%prep
%setup -q
# Remove copy of zlib
rm -rf src/zlib
%build
qbs setup-toolchains --detect
qbs qbs.installPrefix:"/usr" projects.Tiled.useRPaths:false
%install
qbs install --install-root=%{buildroot}
# Clean build artefacts
find -name ".uic" -or -name ".moc" -or -name ".rcc" | xargs rm -rf
# locale files
%find_lang %{name} --with-qt
# Removed development file (this version does not install headers anyway)
rm %{buildroot}%{_libdir}/lib%{name}.so
# Remove duplicates
%fdupes %{buildroot}%{_datadir}
%post -n libtiled1 -p /sbin/ldconfig
%postun -n libtiled1 -p /sbin/ldconfig
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%endif
%files -f %{name}.lang
%license COPYING LICENSE.GPL LICENSE.BSD
%doc AUTHORS NEWS.md README.md
%{_bindir}/%{name}
%{_bindir}/terraingenerator
%{_datadir}/applications/org.mapeditor.Tiled.desktop
%{_datadir}/metainfo/org.mapeditor.Tiled.appdata.xml
%{_datadir}/icons/hicolor/*/mimetypes/application-x-%{name}.*
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/mime/packages/org.mapeditor.Tiled.xml
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/translations
%{_libdir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%files -n libtiled1
%license LICENSE.BSD
%{_libdir}/lib%{name}.so.*
%files -n tmxtools
%license LICENSE.BSD
%{_bindir}/tmxrasterizer
%{_bindir}/tmxviewer
%{_mandir}/man1/tmxviewer.1%{?ext_man}
%{_mandir}/man1/tmxrasterizer.1%{?ext_man}
%dir %{_datadir}/thumbnailers/
%{_datadir}/thumbnailers/tiled.thumbnailer
%dir %{_datadir}/metainfo/
%changelog