From dd82f9fe37450a618cca4dfc6be23e05d4994e3b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= <sergio@serjux.com>
Date: Mon, 15 Jan 2024 12:46:40 +0000
Subject: [PATCH] Update libmad to 0.16.4

Drop Add_unversioned_so.patch, upstream fixed it
mad.pc is back
---
 .gitignore               |  1 +
 Add_unversioned_so.patch | 11 -----------
 libmad.spec              | 16 ++++++++--------
 sources                  |  2 +-
 4 files changed, 10 insertions(+), 20 deletions(-)
 delete mode 100644 Add_unversioned_so.patch

diff --git a/.gitignore b/.gitignore
index 1c31279..823e0d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /libmad-0.15.1b.tar.gz
 /libmad-0.16.3.tar.gz
+/libmad-0.16.4.tar.gz
diff --git a/Add_unversioned_so.patch b/Add_unversioned_so.patch
deleted file mode 100644
index 8fd5671..0000000
--- a/Add_unversioned_so.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/CMakeLists).txt	2022-06-22 23:48:45.000000000 +0100
-+++ b/CMakeLists.txt	2022-09-02 09:37:02.647923806 +0100
-@@ -35,7 +35,7 @@ endif()
- 
- set_target_properties(mad PROPERTIES
-   VERSION ${CMAKE_PROJECT_VERSION}
--  SOVERSION ${CMAKE_PROJECT_VERSION}
-+  SOVERSION 0
- )
- 
- #
diff --git a/libmad.spec b/libmad.spec
index 868977b..cfae678 100644
--- a/libmad.spec
+++ b/libmad.spec
@@ -1,12 +1,11 @@
 Name:		libmad
-Version:	0.16.3
-Release:	2%{?dist}
+Version:	0.16.4
+Release:	1%{?dist}
 Summary:	MPEG audio decoder library
 
 License:	GPL-2.0-or-later
 URL:        https://codeberg.org/tenacityteam/libmad
 Source0:    %url/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
-Patch0:     Add_unversioned_so.patch
 
 BuildRequires:	cmake
 BuildRequires:	gcc-c++
@@ -35,26 +34,27 @@ Requires:	%{name}%{?_isa} = %{version}-%{release}
 %cmake_install
 rm -f %{buildroot}%{_libdir}/*.la
 
-cp -p %{buildroot}%{_libdir}/pkgconfig/libmad.pc \
- %{buildroot}%{_libdir}/pkgconfig/mad.pc
-
 %ldconfig_scriptlets
 
 
 %files
-%doc CHANGES CREDITS README TODO
+%doc CHANGES CREDITS README.md TODO
 %license COPYING COPYRIGHT
 %{_libdir}/libmad.so.*
 
 %files devel
 %{_libdir}/libmad.so
 %{_libdir}/cmake/mad/
-%{_libdir}/pkgconfig/libmad.pc
 %{_libdir}/pkgconfig/mad.pc
 %{_includedir}/mad.h
 
 
 %changelog
+* Mon Jan 15 2024 Sérgio Basto <sergio@serjux.com> - 0.16.4-1
+- Update libmad to 0.16.4
+- Drop Add_unversioned_so.patch, upstream fixed it
+- mad.pc is back
+
 * Fri Sep 01 2023 Leigh Scott <leigh123linux@gmail.com> - 0.16.3-2
 - copy libmad.pc to mad.pc for compatibility
 
diff --git a/sources b/sources
index 3a832de..31e6878 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libmad-0.16.3.tar.gz) = 0fb2d0d47e11129f7173353be3104e300187f305d51c60d10d66cc529b7be5b29ab10b197c2a173116ebb3c9cfa9ddc066985d45882f992d6e39a06bbec02bdb
+SHA512 (libmad-0.16.4.tar.gz) = 6752c199096f999ed478dea712eb669913eec182eec8a56bf4871e77e6c38798d13146febf646007427f43f86aea8d40b9ec2b72928ac3132066ebddcaa0cfde