SHA256
1
0
forked from pool/tiled
tiled/tiled.spec
Michael Vetter 70d897c695 - Update to 1.2.0:
* Added multi-layer selection, including multi-layer tile layer editing
  * Added support for multi-map worlds (#1669[1])
  * Added ability to extend existing polylines (with Ketan Gupta, #1683[2])
  * Added option to highlight the hovered object (#1190[3])
  * Added news from website to the status bar (#1898[4])
  * Added option to show object labels for hovered objects
  * Added option to embed tilesets on export (#1850[5])
  * Added option to detach templates on export (#1850[5])
  * Added option to resolve object types and properties on export (#1850[5])
  * Added Escape for switching to the Select Objects tool and for clearing the selection
  * Added Escape to cancel the current action in all object layer tools
  * Added double-click on polygon objects to switch to Edit Polygons tool
  * Added interaction with segments for polygons, for selection and dragging
  * Added double-clicking a polygon segment for inserting a new point at that location
  * Added action to lock/unlock all other layers (by kralle333, #1883[6])
  * Added --export-tileset command line argument (by Josh Bramlett, #1872[7])
  * Added unique persistent layer IDs (#1892[8])
  * Added 'version' and 'tiledversion' to external tileset files
  * Added full paths to Recent Files menu as tool tips (by Gauthier Billot, #1992[9])
  * Create Object Tools: Show preview already on hover (#537[10])
  * Objects view: Only center view on object on press or activation
  * Objects view: When clicking a layer, make it the current one (by kralle333, #1931[11])
  * Unified the Create Polygon and Create Polyline tools
  * JSON plugin: Made the JSON format easier to parse (by saeedakhter, #1868[12])
  * Tile Collision Editor: Allowed using object templates
  * Templates view: Don't allow hiding the template object
  * Python plugin: Updated to Python 3 (by Samuli Tuomola)
  * Python plugin: Fixed startup messages not appearing in debug console
  * Python plugin: Fixed file change watching for main script files

OBS-URL: https://build.opensuse.org/package/show/games:tools/tiled?expand=0&rev=33
2018-09-24 12:23:01 +00:00

133 lines
3.8 KiB
RPMSpec

#
# spec file for package tiled
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: tiled
Version: 1.2.0
Release: 0
Summary: A tilemap editor
License: GPL-2.0-or-later
Group: Productivity/Graphics/Other
Url: http://www.mapeditor.org
Source: https://github.com/bjorn/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libQt5OpenGL-devel
BuildRequires: libqt5-linguist
BuildRequires: libqt5-qtbase-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
Group: Productivity/Graphics/Other
%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
Group: Development/Libraries/C and C++
%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
qmake-qt5 -r PREFIX=%{_prefix} LIBDIR=%{_libdir} RPATH=no USE_FHS_PLUGIN_PATH=yes
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)
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
%doc AUTHORS NEWS.md README.md COPYING LICENSE.GPL LICENSE.BSD
%{_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
%doc LICENSE.BSD
%{_libdir}/lib%{name}.so.*
%files -n tmxtools
%doc LICENSE.BSD
%{_bindir}/automappingconverter
%{_bindir}/tmxrasterizer
%{_bindir}/tmxviewer
%{_mandir}/man1/tmxviewer.1%{ext_man}
%{_mandir}/man1/tmxrasterizer.1%{ext_man}
%{_mandir}/man1/automappingconverter.1%{ext_man}
%dir %{_datadir}/thumbnailers/
%{_datadir}/thumbnailers/tiled.thumbnailer
%dir %{_datadir}/metainfo/
%changelog