SDL_image: don't bundle CMakeLists.txt in release tarball with 'make dist':

From 9c29d7fa54f3a45706f7e44887e26dfce71d290e Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 8 Jan 2022 11:56:02 +0300
Subject: [PATCH] don't bundle CMakeLists.txt in release tarball with 'make
 dist':

It isn't mature yet (see the big fat FIXME notes in it.)

Also removed the generated spec file from git, while I was there.
---
 Makefile.am     | 20 +++++++-------
 Makefile.in     | 19 +++++++-------
 SDL2_image.spec | 69 -------------------------------------------------
 3 files changed, 19 insertions(+), 89 deletions(-)
 delete mode 100644 SDL2_image.spec

diff --git a/Makefile.am b/Makefile.am
index 5c42cdf..a04872d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,22 +35,22 @@ libSDL2_image_la_SOURCES =	\
 	nanosvgrast.h		\
 	qoi.h
 
-EXTRA_DIST =			\
+EXTRA_DIST = CHANGES.txt LICENSE.txt README.txt README-emscripten.txt \
+	IMG_xxx.c		\
+	IMG_ImageIO.m		\
+	IMG_UIImage.m		\
 	Android.mk		\
-	debian			\
-	external		\
-	version.rc		\
 	Makefile.os2		\
 	VisualC			\
-	VisualC-WinRT	\
+	VisualC-WinRT		\
+	version.rc		\
 	Xcode			\
 	Xcode-iOS		\
-	IMG_xxx.c		\
-	$(srcdir)/*.m		\
+	debian			\
+	external		\
 	SDL2_image.spec		\
-	gcc-fat.sh		\
-	autogen.sh		\
-	$(srcdir)/*.txt
+	autogen.sh gcc-fat.sh
+
 
 if USE_VERSION_RC
 libSDL2_image_la_LDFLAGS = 	\
diff --git a/Makefile.in b/Makefile.in
index 84415e6..81c1634 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -459,22 +459,21 @@ libSDL2_image_la_SOURCES = \
 	nanosvgrast.h		\
 	qoi.h
 
-EXTRA_DIST = \
+EXTRA_DIST = CHANGES.txt LICENSE.txt README.txt README-emscripten.txt \
+	IMG_xxx.c		\
+	IMG_ImageIO.m		\
+	IMG_UIImage.m		\
 	Android.mk		\
-	debian			\
-	external		\
-	version.rc		\
 	Makefile.os2		\
 	VisualC			\
-	VisualC-WinRT	\
+	VisualC-WinRT		\
+	version.rc		\
 	Xcode			\
 	Xcode-iOS		\
-	IMG_xxx.c		\
-	$(srcdir)/*.m		\
+	debian			\
+	external		\
 	SDL2_image.spec		\
-	gcc-fat.sh		\
-	autogen.sh		\
-	$(srcdir)/*.txt
+	autogen.sh gcc-fat.sh
 
 @USE_VERSION_RC_FALSE@libSDL2_image_la_LDFLAGS = \
 @USE_VERSION_RC_FALSE@	-no-undefined		\
diff --git a/SDL2_image.spec b/SDL2_image.spec
deleted file mode 100644
index 135baaf..0000000
--- a/SDL2_image.spec
+++ /dev/null
@@ -1,69 +0,0 @@
-%define name SDL2_image
-%define version 2.0.6
-%define release 1
-
-Summary: Simple DirectMedia Layer - Sample Image Loading Library
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Source0: %{name}-%{version}.tar.gz
-License: LGPL
-Group: System Environment/Libraries
-BuildRoot: /var/tmp/%{name}-buildroot
-Prefix: %{_prefix}
-Packager: Hakan Tandogan <hakan@iconsult.com>
-#BuildRequires: SDL2-devel
-#BuildRequires: libjpeg-devel
-#BuildRequires: libpng-devel
-#BuildRequires: libtiff-devel
-
-%description
-This is a simple library to load images of various formats as SDL surfaces.
-This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
-
-%package devel
-Summary: Libraries, includes and more to develop SDL applications.
-Group: Development/Libraries
-Requires: %{name}
-Requires: SDL2-devel
-
-%description devel
-This is a simple library to load images of various formats as SDL surfaces.
-This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
-
-%prep
-rm -rf ${RPM_BUILD_ROOT}
-
-%setup
-
-%build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
-make
-
-%install
-rm -rf $RPM_BUILD_ROOT
-make install prefix=$RPM_BUILD_ROOT/%{prefix}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(-,root,root)
-%doc README.txt CHANGES.txt LICENSE.txt
-%{prefix}/lib/lib*.so.*
-
-%files devel
-%defattr(-,root,root)
-%{prefix}/lib/lib*.a
-%{prefix}/lib/lib*.la
-%{prefix}/lib/lib*.so
-%{prefix}/include/*/
-%{prefix}/lib/pkgconfig/*.pc
-
-%changelog
-* Wed Jan 19 2000 Sam Lantinga
-- converted to get package information from configure
-* Tue Jan 18 2000 Hakan Tandogan <hakan@iconsult.com>
-- initial spec file
-
-