2013-11-25 14:05:15 +00:00
|
|
|
#
|
|
|
|
# spec file for package tiled
|
|
|
|
#
|
2022-02-11 07:31:01 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-11-25 14:05:15 +00:00
|
|
|
#
|
|
|
|
# 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-11-19 10:15:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-11-25 14:05:15 +00:00
|
|
|
#
|
|
|
|
|
2016-05-04 11:53:19 +00:00
|
|
|
|
2013-11-25 14:05:15 +00:00
|
|
|
Name: tiled
|
2022-05-24 08:01:22 +00:00
|
|
|
Version: 1.8.5
|
2013-11-25 14:05:15 +00:00
|
|
|
Release: 0
|
2016-05-04 11:53:19 +00:00
|
|
|
Summary: A tilemap editor
|
2018-07-17 16:36:20 +00:00
|
|
|
License: GPL-2.0-or-later
|
2019-11-19 10:15:32 +00:00
|
|
|
URL: https://www.mapeditor.org
|
- Update to 1.7.0:
* Added basic "major grid" option with stronger lines (with Ilya Arkhanhelsky, #3032)
* Added ability to rearrange tiles in a tileset (with José Miguel Sánchez García, #2983)
* Added option to choose background fade color (with SchmidtWC, #3031)
* Added portable mode, enabled when a "tiled.ini" is detected alongside the Tiled executable (#2945)
* Disable project extensions by default, for security reasons (#3058)
* Render selection preview and hovered item highlight above labels (#3036)
* Changed the donation reminder to be non-modal
* docs: Generate scripting API documentation using TypeDoc (with Erik Schilling (#2965) and MrMasterplan (#3040, #3041, #3045))
* QMake/Qbs: Added a way to disable DBus support (with Dmitry Marakasov, #3039)
* Scripting: Fixed 'mouseLeft' callback for scripted tools (#3050)
* Scripting: Fixed loading of icons with explicit "ext:" prefix (#3048)
* Scripting: Made TileMap coordinate conversion functions always work (#3054)
* tBIN plugin: Convert 'color', 'object' and 'file' properties on save
* Python plugin: Added Layer.offset and Layer.setOffset (with sverx, #3073)
* Python plugin: Linux AppImage now supports Python 3.6 instead of 3.5
* Fixed possible crash in Properties view when switching files
* Fixed watching/unwatching of folders when adding/removing from project (#3035)
* Fixed determining desired file format by extension on export
* Fixed compilation issue with GCC 10 (#3037)
* Updated Bulgarian, Portuguese (Portugal), Russian and Turkish translations
OBS-URL: https://build.opensuse.org/package/show/games:tools/tiled?expand=0&rev=66
2021-06-07 18:19:37 +00:00
|
|
|
Source: https://github.com/mapeditor/tiled/archive/refs/tags/v%{version}.tar.gz
|
2013-11-25 14:05:15 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
2016-05-04 11:53:19 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2013-11-25 14:05:15 +00:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2016-05-04 11:53:19 +00:00
|
|
|
BuildRequires: libQt5OpenGL-devel
|
|
|
|
BuildRequires: libqt5-linguist
|
|
|
|
BuildRequires: libqt5-qtbase-devel
|
2022-04-01 13:30:11 +00:00
|
|
|
BuildRequires: libqt5-qtdeclarative-private-headers-devel
|
2016-10-12 08:02:30 +00:00
|
|
|
BuildRequires: shared-mime-info
|
2016-12-24 05:52:57 +00:00
|
|
|
BuildRequires: zlib-devel
|
2019-11-19 10:15:32 +00:00
|
|
|
BuildRequires: cmake(Qt5Qml)
|
2016-05-04 11:53:19 +00:00
|
|
|
Recommends: tmxtools
|
2013-11-25 14:05:15 +00:00
|
|
|
Provides: tiled-qt
|
|
|
|
|
|
|
|
%description
|
2017-02-02 11:29:18 +00:00
|
|
|
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.
|
2013-11-25 14:05:15 +00:00
|
|
|
|
|
|
|
%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
|
2016-05-04 11:53:19 +00:00
|
|
|
%setup -q
|
2013-11-25 14:05:15 +00:00
|
|
|
# Remove copy of zlib
|
|
|
|
rm -rf src/zlib
|
|
|
|
|
|
|
|
%build
|
2016-12-24 05:52:57 +00:00
|
|
|
qmake-qt5 -r PREFIX=%{_prefix} LIBDIR=%{_libdir} RPATH=no USE_FHS_PLUGIN_PATH=yes
|
2013-11-25 14:05:15 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make 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)
|
2016-05-04 11:53:19 +00:00
|
|
|
rm %{buildroot}%{_libdir}/lib%{name}.so
|
|
|
|
|
|
|
|
# Remove duplicates
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
2013-11-25 14:05:15 +00:00
|
|
|
|
|
|
|
%post -n libtiled1 -p /sbin/ldconfig
|
|
|
|
%postun -n libtiled1 -p /sbin/ldconfig
|
- Update to 1.1.0:
* Added support for infinite maps (by Ketan Gupta, #260)
* Added support for Wang tiles and related tools (by Benjamin Trotter)
* Added support for reusable object templates (by Mohamed Thabet)
* Added icon for animation editor in the tileset editor (by Ketan Gupta, #1706)
* Added ability to reorder terrain types (by Justin Jacobs, #1603)
* Added support for custom input formats and TMX output to the --export-map command-line option
* Added island RPG example based on Beach tileset by finalbossblues
* Added file-related context menu actions to tileset tabs
* Added support for exporting tilesets, including to Lua format (by Conrad Mercer, #1213)
* Improved polygon node handles and drag behavior
* Fixed %executablepath variable for executables found in PATH (#1648)
* Fixed Delete key to delete selected polygon nodes when appropriate (by Ketan Gupta, #1555)
* Fixed crash when saving two new maps using the same file name (#1734)
* Fixed selection rectangle's shadow offset when zooming (by Antoine Gersant, #1796)
* Fixed potential crash after deleting object or group layers
* Automapping: Don't fail if an input/inputnot layer isn't found
* Automapping: Added a "StrictEmpty" flag to input layers
* GMX plugin: Added support for defining views with objects (by William Taylor, #1621)
* GMX plugin: Start counting default tile layer depth from 1000000 (#1814)
* tBIN plugin: Added read/write support for the tBIN map format (by Chase Warrington, #1560)
* libtiled-java: Generate classes from XSD, some fixes and build with Maven (by Mike Thomas, #1637)
* libtiled-java: Added support for manipulating non-consecutive tile IDs in a tileset (by Stéphane Seng)
* Python plugin: Adjusted example scripts to API changes (by spiiin, #1769)
* plugin: Various changes (by Justin Jacobs, #1781)
* TMW plugin: Removed since it is no longer needed
* Updated translations
- Add tiled-1.1.0-empty-return.patch: Fix 'Program returns random data in a function'
OBS-URL: https://build.opensuse.org/package/show/games:tools/tiled?expand=0&rev=20
2018-01-04 11:31:37 +00:00
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1130
|
2016-10-12 08:02:30 +00:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%mime_database_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%mime_database_postun
|
- Update to 1.1.0:
* Added support for infinite maps (by Ketan Gupta, #260)
* Added support for Wang tiles and related tools (by Benjamin Trotter)
* Added support for reusable object templates (by Mohamed Thabet)
* Added icon for animation editor in the tileset editor (by Ketan Gupta, #1706)
* Added ability to reorder terrain types (by Justin Jacobs, #1603)
* Added support for custom input formats and TMX output to the --export-map command-line option
* Added island RPG example based on Beach tileset by finalbossblues
* Added file-related context menu actions to tileset tabs
* Added support for exporting tilesets, including to Lua format (by Conrad Mercer, #1213)
* Improved polygon node handles and drag behavior
* Fixed %executablepath variable for executables found in PATH (#1648)
* Fixed Delete key to delete selected polygon nodes when appropriate (by Ketan Gupta, #1555)
* Fixed crash when saving two new maps using the same file name (#1734)
* Fixed selection rectangle's shadow offset when zooming (by Antoine Gersant, #1796)
* Fixed potential crash after deleting object or group layers
* Automapping: Don't fail if an input/inputnot layer isn't found
* Automapping: Added a "StrictEmpty" flag to input layers
* GMX plugin: Added support for defining views with objects (by William Taylor, #1621)
* GMX plugin: Start counting default tile layer depth from 1000000 (#1814)
* tBIN plugin: Added read/write support for the tBIN map format (by Chase Warrington, #1560)
* libtiled-java: Generate classes from XSD, some fixes and build with Maven (by Mike Thomas, #1637)
* libtiled-java: Added support for manipulating non-consecutive tile IDs in a tileset (by Stéphane Seng)
* Python plugin: Adjusted example scripts to API changes (by spiiin, #1769)
* plugin: Various changes (by Justin Jacobs, #1781)
* TMW plugin: Removed since it is no longer needed
* Updated translations
- Add tiled-1.1.0-empty-return.patch: Fix 'Program returns random data in a function'
OBS-URL: https://build.opensuse.org/package/show/games:tools/tiled?expand=0&rev=20
2018-01-04 11:31:37 +00:00
|
|
|
%endif
|
2016-10-12 08:02:30 +00:00
|
|
|
|
2013-11-25 14:05:15 +00:00
|
|
|
%files -f %{name}.lang
|
2019-11-19 10:15:32 +00:00
|
|
|
%license COPYING LICENSE.GPL LICENSE.BSD
|
|
|
|
%doc AUTHORS NEWS.md README.md
|
2013-11-25 14:05:15 +00:00
|
|
|
%{_bindir}/%{name}
|
2016-05-04 11:53:19 +00:00
|
|
|
%{_bindir}/terraingenerator
|
2018-09-24 12:23:01 +00:00
|
|
|
%{_datadir}/applications/org.mapeditor.Tiled.desktop
|
|
|
|
%{_datadir}/metainfo/org.mapeditor.Tiled.appdata.xml
|
2015-01-05 16:33:47 +00:00
|
|
|
%{_datadir}/icons/hicolor/*/mimetypes/application-x-%{name}.*
|
2013-11-25 14:05:15 +00:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
2018-09-24 12:23:01 +00:00
|
|
|
%{_datadir}/mime/packages/org.mapeditor.Tiled.xml
|
2013-11-25 14:05:15 +00:00
|
|
|
%dir %{_datadir}/%{name}/
|
|
|
|
%dir %{_datadir}/%{name}/translations
|
|
|
|
%{_libdir}/%{name}
|
2019-11-19 10:15:32 +00:00
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2013-11-25 14:05:15 +00:00
|
|
|
|
|
|
|
%files -n libtiled1
|
2019-11-19 10:15:32 +00:00
|
|
|
%license LICENSE.BSD
|
2013-11-25 14:05:15 +00:00
|
|
|
%{_libdir}/lib%{name}.so.*
|
|
|
|
|
|
|
|
%files -n tmxtools
|
2019-11-19 10:15:32 +00:00
|
|
|
%license LICENSE.BSD
|
2013-11-25 14:05:15 +00:00
|
|
|
%{_bindir}/tmxrasterizer
|
|
|
|
%{_bindir}/tmxviewer
|
2019-11-19 10:15:32 +00:00
|
|
|
%{_mandir}/man1/tmxviewer.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/tmxrasterizer.1%{?ext_man}
|
2016-12-24 05:52:57 +00:00
|
|
|
%dir %{_datadir}/thumbnailers/
|
|
|
|
%{_datadir}/thumbnailers/tiled.thumbnailer
|
2017-08-29 14:33:29 +00:00
|
|
|
%dir %{_datadir}/metainfo/
|
2013-11-25 14:05:15 +00:00
|
|
|
|
|
|
|
%changelog
|