From eb893989ab6653b754cdd595714ca68b7cfdb806 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 | 14 +++++------
Makefile.in | 14 +++++------
SDL2_ttf.spec | 66 ---------------------------------------------------
3 files changed, 12 insertions(+), 82 deletions(-)
delete mode 100644 SDL2_ttf.spec
diff --git a/Makefile.am b/Makefile.am
index f2abdd8..8568dd2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -142,21 +142,19 @@ pkgconfig_DATA = SDL2_ttf.pc
%.o : %.rc
$(WINDRES) $< $@
-EXTRA_DIST = \
+EXTRA_DIST = CHANGES.txt COPYING.txt README.txt \
Android.mk \
- debian \
- external \
- version.rc \
Makefile.os2 \
+ Xcode \
VisualC \
VisualC-WinRT \
- Xcode \
+ version.rc \
+ debian \
+ external \
SDL2_ttf.spec \
SDL2_ttf.spec.in \
SDL2_ttfConfig.cmake \
- gcc-fat.sh \
- autogen.sh \
- $(srcdir)/*.txt
+ autogen.sh gcc-fat.sh
noinst_PROGRAMS = showfont glfont
diff --git a/Makefile.in b/Makefile.in
index 8a98280..35dbab9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -808,21 +808,19 @@ libSDL2_ttf_la_LINK = $(LINKER) $(libSDL2_ttf_la_LDFLAGS)
libSDL2_ttf_la_LIBADD = $(TTF_LIBS) @MATHLIB@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = SDL2_ttf.pc
-EXTRA_DIST = \
+EXTRA_DIST = CHANGES.txt COPYING.txt README.txt \
Android.mk \
- debian \
- external \
- version.rc \
Makefile.os2 \
+ Xcode \
VisualC \
VisualC-WinRT \
- Xcode \
+ version.rc \
+ debian \
+ external \
SDL2_ttf.spec \
SDL2_ttf.spec.in \
SDL2_ttfConfig.cmake \
- gcc-fat.sh \
- autogen.sh \
- $(srcdir)/*.txt
+ autogen.sh gcc-fat.sh
showfont_LDADD = libSDL2_ttf.la
glfont_LDADD = libSDL2_ttf.la @GL_LIBS@ @MATHLIB@
diff --git a/SDL2_ttf.spec b/SDL2_ttf.spec
deleted file mode 100644
index d812f63..0000000
--- a/SDL2_ttf.spec
+++ /dev/null
@@ -1,66 +0,0 @@
-%define name SDL2_ttf
-%define version 2.0.15
-%define release 1
-
-Summary: Simple DirectMedia Layer - Sample TrueType Font 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: freetype-devel
-
-%description
-This library allows you to use TrueType fonts to render text in SDL
-applications.
-
-%package devel
-Summary: Libraries, includes and more to develop SDL applications.
-Group: Development/Libraries
-Requires: %{name}
-Requires: SDL2-devel
-
-%description devel
-This library allows you to use TrueType fonts to render text in SDL
-applications.
-
-%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 COPYING.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
-* Sun Jan 16 2000 Hakan Tandogan <hakan@iconsult.com>
-- initial spec file
-