From f36684864e82538da2d2cf57fa3db077a3be42c7 Mon Sep 17 00:00:00 2001
From: Elias Daler <[EMAIL REDACTED]>
Date: Sun, 28 Mar 2021 14:39:25 +0300
Subject: [PATCH] Make the license identifiable by GitHub
---
COPYING.txt | 20 --------------------
LICENSE.txt | 17 +++++++++++++++++
README.txt | 2 +-
SDL2_image.spec | 6 +++---
SDL2_image.spec.in | 6 +++---
5 files changed, 24 insertions(+), 27 deletions(-)
delete mode 100644 COPYING.txt
create mode 100644 LICENSE.txt
diff --git a/COPYING.txt b/COPYING.txt
deleted file mode 100644
index 103e0d9..0000000
--- a/COPYING.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- SDL_image: An example image loading library for use with SDL
- Copyright (C) 1997-2021 Sam Lantinga <slouken@libsdl.org>
-
- This software is provided 'as-is', without any express or implied
- warranty. In no event will the authors be held liable for any damages
- arising from the use of this software.
-
- Permission is granted to anyone to use this software for any purpose,
- including commercial applications, and to alter it and redistribute it
- freely, subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
-*/
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..3c82ac8
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,17 @@
+Copyright (C) 1997-2021 Sam Lantinga <slouken@libsdl.org>
+
+This software is provided 'as-is', without any express or implied
+warranty. In no event will the authors be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.
diff --git a/README.txt b/README.txt
index 2aa8097..50d73bc 100644
--- a/README.txt
+++ b/README.txt
@@ -38,4 +38,4 @@ sh ./configure CPPFLAGS="-I/somewhere/include" LDFLAGS="-L/somewhere/lib"
If this works, you may need to add /somewhere/lib to your LD_LIBRARY_PATH
so shared library loading works correctly.
-This library is under the zlib License, see the file "COPYING.txt" for details.
+This library is under the zlib License, see the file "LICENSE.txt" for details.
diff --git a/SDL2_image.spec b/SDL2_image.spec
index e7df8a7..135baaf 100644
--- a/SDL2_image.spec
+++ b/SDL2_image.spec
@@ -34,7 +34,7 @@ This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
%prep
rm -rf ${RPM_BUILD_ROOT}
-%setup
+%setup
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
@@ -49,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
-%doc README.txt CHANGES.txt COPYING.txt
+%doc README.txt CHANGES.txt LICENSE.txt
%{prefix}/lib/lib*.so.*
%files devel
@@ -61,7 +61,7 @@ rm -rf $RPM_BUILD_ROOT
%{prefix}/lib/pkgconfig/*.pc
%changelog
-* Wed Jan 19 2000 Sam Lantinga
+* 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
diff --git a/SDL2_image.spec.in b/SDL2_image.spec.in
index cfa6762..d6107bd 100644
--- a/SDL2_image.spec.in
+++ b/SDL2_image.spec.in
@@ -34,7 +34,7 @@ This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
%prep
rm -rf ${RPM_BUILD_ROOT}
-%setup
+%setup
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
@@ -49,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
-%doc README.txt CHANGES.txt COPYING.txt
+%doc README.txt CHANGES.txt LICENSE.txt
%{prefix}/lib/lib*.so.*
%files devel
@@ -61,7 +61,7 @@ rm -rf $RPM_BUILD_ROOT
%{prefix}/lib/pkgconfig/*.pc
%changelog
-* Wed Jan 19 2000 Sam Lantinga
+* 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