File mingw64-allegro44.spec of Package mingw64-allegro44

#
# spec file for package mingw64-allegro44
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# 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/
#

%define realname allegro
Name:           mingw64-allegro44
Version:        4.4.3.1
Release:        0
Summary:        Cross-platform library for games and multimedia programming
# https://liballeg.org/license.html#allegro-4-the-giftware-license
License:        SUSE-Permissive
URL:            https://liballeg.org/
Source :        https://github.com/liballeg/allegro5/releases/download/%{version}/%{realname}-%{version}.tar.gz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-libpng-devel
BuildRequires:  mingw64-libvorbis-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Allegro is a cross-platform library intended for use in computer games
and other types of multimedia programming.

A wide range of extension packages and add-on modules are also available, which
can be found in the "Library Extensions" section of the Allegro website.

%package -n mingw64-liballeg4_4
Summary:        A game programming library
Group:          System/Libraries

%description -n mingw64-liballeg4_4
Allegro is a cross-platform library intended for use in computer games
and other types of multimedia programming.

%package -n mingw64-allegro44-tools
Summary:        Extra tools for the Allegro programming library
Group:          Development/Tools/Other

%description -n mingw64-allegro44-tools
Allegro is a cross-platform library intended for use in computer games
and other types of multimedia programming. This package contains extra
tools which are useful for developing Allegro programs.

%package -n mingw64-liballeg44-devel
Summary:        A game programming library
Group:          Development/Libraries/C and C++
Requires:       mingw64-liballeg4_4 = %{version}
Conflicts:      mingw64-allegro-devel > %{version}
Provides:       mingw64-allegro-devel = %{version}
Provides:       mingw64-allegro44-devel = %{version}

%description -n mingw64-liballeg44-devel
Allegro is a cross-platform library intended for use in computer games
and other types of multimedia programming. This package is needed to
build programs written with Allegro.

%_mingw64_debug_package

%prep
%setup -q -n %{realname}-%{version}

%build
%{_mingw64_cmake} \
  -DWANT_EXAMPLES:BOOL=OFF \
  -DWANT_TESTS:BOOL=OFF
%{_mingw64_cmake_build}

%install
%{_mingw64_cmake_install}


%files -n mingw64-liballeg4_4
%{_mingw64_bindir}/alleg44.dll
%{_mingw64_bindir}/liballeggl.dll
%{_mingw64_bindir}/libjpgalleg.dll
%{_mingw64_bindir}/libloadpng.dll
%{_mingw64_bindir}/liblogg.dll

%files -n mingw64-liballeg44-devel
%{_mingw64_includedir}/allegro.h
%{_mingw64_includedir}/allegro
%{_mingw64_libdir}/liballeg44.dll.a
#
%{_mingw64_includedir}/alleggl.h
%{_mingw64_libdir}/liballeggl.dll.a
%{_mingw64_includedir}/allegrogl
#
%{_mingw64_includedir}/jpgalleg.h
%{_mingw64_libdir}/libjpgalleg.dll.a
#
%{_mingw64_includedir}/loadpng.h
%{_mingw64_libdir}/libloadpng.dll.a
#
%{_mingw64_includedir}/logg.h
%{_mingw64_libdir}/liblogg.dll.a
#
%{_mingw64_includedir}/winalleg.h

%files -n mingw64-allegro44-tools
%{_mingw64_bindir}/colormap.exe
%{_mingw64_bindir}/dat.exe
%{_mingw64_bindir}/dat2c.exe
%{_mingw64_bindir}/dat2s.exe
%{_mingw64_bindir}/exedat.exe
%{_mingw64_bindir}/grabber.exe
%{_mingw64_bindir}/pack.exe
%{_mingw64_bindir}/pat2dat.exe
%{_mingw64_bindir}/rgbmap.exe
%{_mingw64_bindir}/textconv.exe

%changelog
openSUSE Build Service is sponsored by