2013-11-25 14:05:15 +00:00
|
|
|
#
|
|
|
|
# spec file for package tiled
|
|
|
|
#
|
2016-05-04 11:53:19 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-05-04 11:53:19 +00:00
|
|
|
|
2013-11-25 14:05:15 +00:00
|
|
|
Name: tiled
|
2016-05-14 13:35:14 +00:00
|
|
|
Version: 0.16.1
|
2013-11-25 14:05:15 +00:00
|
|
|
Release: 0
|
2016-05-04 11:53:19 +00:00
|
|
|
Summary: A tilemap editor
|
2013-11-25 14:05:15 +00:00
|
|
|
License: GPL-2.0+
|
2016-05-04 11:53:19 +00:00
|
|
|
Group: Productivity/Graphics/Other
|
2013-11-25 14:05:15 +00:00
|
|
|
Url: http://www.mapeditor.org
|
2015-01-05 16:33:47 +00:00
|
|
|
Source: https://github.com/bjorn/%{name}/archive/v%{version}/%{name}-%{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
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
Recommends: tmxtools
|
2013-11-25 14:05:15 +00:00
|
|
|
Provides: tiled-qt
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tiled is a general purpose tile map editor. It's built to be easy to use,
|
|
|
|
yet flexible enough to work with varying game engines, whether your game
|
|
|
|
is an RPG, platformer or Breakout clone. Tiled is free software and written
|
|
|
|
in C++, using the Qt application framework.
|
|
|
|
|
|
|
|
%package -n tmxtools
|
|
|
|
Summary: Commandline Tools for Tiled MapEditor
|
|
|
|
License: BSD-2-Clause
|
2016-05-04 11:53:19 +00:00
|
|
|
Group: Productivity/Graphics/Other
|
2013-11-25 14:05:15 +00:00
|
|
|
|
|
|
|
%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
|
2016-05-04 11:53:19 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-11-25 14:05:15 +00:00
|
|
|
|
|
|
|
%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-05-04 11:53:19 +00:00
|
|
|
qmake-qt5 -r PREFIX=%{_prefix} LIBDIR=%{_libdir} RPATH=no
|
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
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS NEWS README.md COPYING LICENSE.GPL
|
|
|
|
%{_bindir}/%{name}
|
2016-05-04 11:53:19 +00:00
|
|
|
%{_bindir}/terraingenerator
|
2013-11-25 14:05:15 +00:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
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}.*
|
2015-01-05 16:33:47 +00:00
|
|
|
%{_datadir}/mime/packages/%{name}.xml
|
2013-11-25 14:05:15 +00:00
|
|
|
%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}
|
|
|
|
|
|
|
|
%changelog
|