File aseprite.spec of Package aseprite

# spec file for package aseprite
# Copyright (c) 2016 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

%if 0%{?suse_version} == 1315 && !0%{?is_opensuse}
# No tinyxml on SLE
%bcond_with tinyxml
%bcond_without tinyxml
Name:           aseprite
Version:        1.1.7
Release:        0
Summary:        Animated sprite editor & pixel art tool
License:        GPL-2.0+ and MIT
Group:          Productivity/Graphics/Bitmap Editors
Source:         %{name}-%{version}.tar.bz2
Patch1:         appdata.patch
Patch2:         shared-gtest.patch
BuildRequires:  cmake >= 2.6
BuildRequires:  gcc-c++
BuildRequires:  glibc-devel
BuildRequires:  pkgconfig(allegro)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(libwebp)
BuildRequires:  giflib-devel >= 5.1.0
BuildRequires:  gimp-devel
BuildRequires:  gtk2-devel
BuildRequires:  pkgconfig(libart-2.0)
BuildRequires:  libjpeg-devel
BuildRequires:  googletest-devel
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(loadpng)
%if %{with tinyxml}
BuildRequires:  tinyxml-devel
BuildRequires:  pkgconfig(pixman-1)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xcursor)
BuildRequires:  pkgconfig(xpm)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xxf86vm)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(xxf86dga)
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files
BuildRequires:  shared-mime-info
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Aseprite is an open source program to create animated sprites
for websites and games.

%setup -q
%patch1 -p1
%patch2 -p1

rm -r third_party/{curl,freetype2,giflib,gtest,jpeg,libpng,libwebp,libwebp-cmake,loadpng,pixman-cmake,zlib}
%if %{with tinyxml}
rm -r third_party/tinyxml

          -DUSE_SHARED_CURL=ON \
          -DUSE_SHARED_ZLIB=ON \
          %if %{with tinyxml}

make aseprite %{?_smp_mflags}


install -m0644 -D data/icons/ase16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
install -m0644 -D data/icons/ase32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -m0644 -D data/icons/ase48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install -m0644 -D data/icons/ase64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png

%fdupes -s %{buildroot}%{_datadir}



%doc LICENSE.txt
%dir %{_datadir}/appdata/

openSUSE Build Service is sponsored by