File mingw32-allegro44.spec of Package mingw32-allegro44
#
# spec file for package mingw32-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: mingw32-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: mingw32-cross-cmake
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-libpng-devel
BuildRequires: mingw32-libvorbis-devel
%_mingw32_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 mingw32-liballeg4_4
Summary: A game programming library
Group: System/Libraries
%description -n mingw32-liballeg4_4
Allegro is a cross-platform library intended for use in computer games
and other types of multimedia programming.
%package -n mingw32-allegro44-tools
Summary: Extra tools for the Allegro programming library
Group: Development/Tools/Other
%description -n mingw32-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 mingw32-liballeg44-devel
Summary: A game programming library
Group: Development/Libraries/C and C++
Requires: mingw32-liballeg4_4 = %{version}
Conflicts: mingw32-allegro-devel > %{version}
Provides: mingw32-allegro-devel = %{version}
Provides: mingw32-allegro44-devel = %{version}
%description -n mingw32-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.
%_mingw32_debug_package
%prep
%setup -q -n %{realname}-%{version}
%build
%{_mingw32_cmake} \
-DWANT_EXAMPLES:BOOL=OFF \
-DWANT_TESTS:BOOL=OFF
%{_mingw32_cmake_build}
%install
%{_mingw32_cmake_install}
%files -n mingw32-liballeg4_4
%{_mingw32_bindir}/alleg44.dll
%{_mingw32_bindir}/liballeggl.dll
%{_mingw32_bindir}/libjpgalleg.dll
%{_mingw32_bindir}/libloadpng.dll
%{_mingw32_bindir}/liblogg.dll
%files -n mingw32-liballeg44-devel
%{_mingw32_includedir}/allegro.h
%{_mingw32_includedir}/allegro
%{_mingw32_libdir}/liballeg44.dll.a
#
%{_mingw32_includedir}/alleggl.h
%{_mingw32_libdir}/liballeggl.dll.a
%{_mingw32_includedir}/allegrogl
#
%{_mingw32_includedir}/jpgalleg.h
%{_mingw32_libdir}/libjpgalleg.dll.a
#
%{_mingw32_includedir}/loadpng.h
%{_mingw32_libdir}/libloadpng.dll.a
#
%{_mingw32_includedir}/logg.h
%{_mingw32_libdir}/liblogg.dll.a
#
%{_mingw32_includedir}/winalleg.h
%files -n mingw32-allegro44-tools
%{_mingw32_bindir}/colormap.exe
%{_mingw32_bindir}/dat.exe
%{_mingw32_bindir}/dat2c.exe
%{_mingw32_bindir}/dat2s.exe
%{_mingw32_bindir}/exedat.exe
%{_mingw32_bindir}/grabber.exe
%{_mingw32_bindir}/pack.exe
%{_mingw32_bindir}/pat2dat.exe
%{_mingw32_bindir}/rgbmap.exe
%{_mingw32_bindir}/textconv.exe
%changelog