tiled/tiled.spec

136 lines
3.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package tiled
#
# Copyright (c) 2017 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: 0.18.2
Release: 0
Summary: A tilemap editor
License: GPL-2.0+
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
Accepting request 447206 from home:jubalh:branches:games:tools - Fix plugin detection: We need USE_FHS_PLUGIN_PATH=yes so tiled finds the plugins and doesn't look relative to the executables path. Without this exporting to lua, json etc never worked. - Update to version 0.18.0: * Added Layer via Copy/Cut actions * Added support for Paste in Place action for tile layers * Added context menu to change custom property type (by Dmitry Hrabrov) * Added support for higher precision for custom floating point properties * Added %mappath variable to commands (by Jack Roper) * Added snapping to pixels (by Mamed Ibrahimov) * Added right-click to clear the tile selection * Added a context menu action to reset the size of tile objects * Added exporter for Game Maker Studio room files (by Jones Blunt) * Added Move Up/Down buttons to Objects view (by iskolbin) * Added pixel coordinates to status bar for object tools (by iskolbin) * Added Sticker Knight platformer example (by Ponywolf) * tmxrasterizer: Added --size argument and support local file URLs * tmxrasterizer: Use smooth pixmap transform by default * Linux: Register tmxrasterizer as thumbnail generator for TMX files * Allow scrolling past map edges with mouse wheel * Enabled HiDpi scaling and improved the quality of some icons * Reversed the order of the objects in the Objects view * JSON plugin: Added Node.js support to the JavaScript export * Updated TMX schema definition (by assofohdz) * Fixed unfinished objects getting saved * Fixed OpenGL rendering mode when application is scaled (HiDpi screens) * Fixed Remove and Rename actions for predefined properties * Windows: Fixed console output OBS-URL: https://build.opensuse.org/request/show/447206 OBS-URL: https://build.opensuse.org/package/show/games:tools/tiled?expand=0&rev=7
2016-12-24 05:52:57 +00:00
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
Accepting request 447206 from home:jubalh:branches:games:tools - Fix plugin detection: We need USE_FHS_PLUGIN_PATH=yes so tiled finds the plugins and doesn't look relative to the executables path. Without this exporting to lua, json etc never worked. - Update to version 0.18.0: * Added Layer via Copy/Cut actions * Added support for Paste in Place action for tile layers * Added context menu to change custom property type (by Dmitry Hrabrov) * Added support for higher precision for custom floating point properties * Added %mappath variable to commands (by Jack Roper) * Added snapping to pixels (by Mamed Ibrahimov) * Added right-click to clear the tile selection * Added a context menu action to reset the size of tile objects * Added exporter for Game Maker Studio room files (by Jones Blunt) * Added Move Up/Down buttons to Objects view (by iskolbin) * Added pixel coordinates to status bar for object tools (by iskolbin) * Added Sticker Knight platformer example (by Ponywolf) * tmxrasterizer: Added --size argument and support local file URLs * tmxrasterizer: Use smooth pixmap transform by default * Linux: Register tmxrasterizer as thumbnail generator for TMX files * Allow scrolling past map edges with mouse wheel * Enabled HiDpi scaling and improved the quality of some icons * Reversed the order of the objects in the Objects view * JSON plugin: Added Node.js support to the JavaScript export * Updated TMX schema definition (by assofohdz) * Fixed unfinished objects getting saved * Fixed OpenGL rendering mode when application is scaled (HiDpi screens) * Fixed Remove and Rename actions for predefined properties * Windows: Fixed console output OBS-URL: https://build.opensuse.org/request/show/447206 OBS-URL: https://build.opensuse.org/package/show/games:tools/tiled?expand=0&rev=7
2016-12-24 05:52:57 +00:00
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}
# Install software gallery metadata
install -Dm0644 tiled.appdata.xml %{buildroot}%{_datadir}/appdata/tiled.appdata.xml
%post -n libtiled1 -p /sbin/ldconfig
%postun -n libtiled1 -p /sbin/ldconfig
%post
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS NEWS.md README.md COPYING LICENSE.GPL LICENSE.BSD
%{_bindir}/%{name}
%{_bindir}/terraingenerator
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/icons/hicolor/*/mimetypes/application-x-%{name}.*
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/mime/packages/%{name}.xml
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/translations
%{_libdir}/%{name}
%{_mandir}/man1/%{name}.1%{ext_man}
%files -n libtiled1
%defattr(-,root,root)
%doc LICENSE.BSD
%{_libdir}/lib%{name}.so.*
%files -n tmxtools
%defattr(-,root,root)
%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}
Accepting request 447206 from home:jubalh:branches:games:tools - Fix plugin detection: We need USE_FHS_PLUGIN_PATH=yes so tiled finds the plugins and doesn't look relative to the executables path. Without this exporting to lua, json etc never worked. - Update to version 0.18.0: * Added Layer via Copy/Cut actions * Added support for Paste in Place action for tile layers * Added context menu to change custom property type (by Dmitry Hrabrov) * Added support for higher precision for custom floating point properties * Added %mappath variable to commands (by Jack Roper) * Added snapping to pixels (by Mamed Ibrahimov) * Added right-click to clear the tile selection * Added a context menu action to reset the size of tile objects * Added exporter for Game Maker Studio room files (by Jones Blunt) * Added Move Up/Down buttons to Objects view (by iskolbin) * Added pixel coordinates to status bar for object tools (by iskolbin) * Added Sticker Knight platformer example (by Ponywolf) * tmxrasterizer: Added --size argument and support local file URLs * tmxrasterizer: Use smooth pixmap transform by default * Linux: Register tmxrasterizer as thumbnail generator for TMX files * Allow scrolling past map edges with mouse wheel * Enabled HiDpi scaling and improved the quality of some icons * Reversed the order of the objects in the Objects view * JSON plugin: Added Node.js support to the JavaScript export * Updated TMX schema definition (by assofohdz) * Fixed unfinished objects getting saved * Fixed OpenGL rendering mode when application is scaled (HiDpi screens) * Fixed Remove and Rename actions for predefined properties * Windows: Fixed console output OBS-URL: https://build.opensuse.org/request/show/447206 OBS-URL: https://build.opensuse.org/package/show/games:tools/tiled?expand=0&rev=7
2016-12-24 05:52:57 +00:00
%dir %{_datadir}/thumbnailers/
%{_datadir}/thumbnailers/tiled.thumbnailer
%changelog