From 41f97a02c1b6cc15bf52971c288d019554595d9e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:37:29 +0100 Subject: [PATCH] fix library SOVERSION [release 0.16.1-2mamba;Thu Feb 03 2022] --- libid3tag-0.16.1-fix-soversion.patch | 11 +++++++ libid3tag.spec | 45 ++++++++++++---------------- 2 files changed, 30 insertions(+), 26 deletions(-) create mode 100644 libid3tag-0.16.1-fix-soversion.patch diff --git a/libid3tag-0.16.1-fix-soversion.patch b/libid3tag-0.16.1-fix-soversion.patch new file mode 100644 index 0000000..70ac6e2 --- /dev/null +++ b/libid3tag-0.16.1-fix-soversion.patch @@ -0,0 +1,11 @@ +--- libid3tag-0.16.1/CMakeLists.txt.orig 2022-02-03 09:09:57.156983546 +0100 ++++ libid3tag-0.16.1/CMakeLists.txt 2022-02-03 09:10:38.460553440 +0100 +@@ -40,7 +40,7 @@ + + set_target_properties(id3tag PROPERTIES + VERSION ${CMAKE_PROJECT_VERSION} +- SOVERSION ${CMAKE_PROJECT_VERSION} ++ SOVERSION 0 + ) + + include(CheckIncludeFile) diff --git a/libid3tag.spec b/libid3tag.spec index ac71cb9..0969b7f 100644 --- a/libid3tag.spec +++ b/libid3tag.spec @@ -1,19 +1,19 @@ Name: libid3tag -Version: 0.15.1b -Release: 6mamba +Version: 0.16.1 +Release: 2mamba Summary: A library for reading, writing, and manipulating ID3v1 and ID3v2 tags Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://www.underbit.com/products/mad/ -Source: http://downloads.sourceforge.net/sourceforge/mad/libid3tag-%{version}.tar.gz +URL: https://github.com/tenacityteam/libid3tag +Source: https://github.com/tenacityteam/libid3tag.git/%{version}/libid3tag-%{version}.tar.bz2 +Patch0: libid3tag-0.16.1-fix-soversion.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A software development library for reading, writing, and manipulating ID3v1 and ID3v2 tags. @@ -32,30 +32,17 @@ This is the devel package. %prep %setup -q -sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub +%patch0 -p1 %build -%configure +%cmake -d build \ + -DCMAKE_STRIP=false + %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall - -install -d %{buildroot}%{_libdir}/pkgconfig - -echo "\ -prefix=%{_prefix} -exec_prefix=\${prefix} -libdir=\${exec_prefix}/lib -includedir=\${prefix}/include - -Name: id3tag -Description: ID3 tag reading library -Requires: -Version: 0.15.1b -Libs: -L\${libdir} -lid3tag -lz -Cflags: -L\${includedir}" > %{buildroot}%{_libdir}/pkgconfig/id3tag.pc +%makeinstall -C build %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -70,14 +57,20 @@ Cflags: -L\${includedir}" > %{buildroot}%{_libdir}/pkgconfig/id3tag.pc %files devel %defattr(-, root, root) -%{_libdir}/libid3tag.a -%{_libdir}/libid3tag.la +%{_includedir}/*.h %{_libdir}/libid3tag.so %{_libdir}/pkgconfig/id3tag.pc -%{_includedir}/*.h +%dir %{_libdir}/cmake/id3tag +%{_libdir}/cmake/id3tag/id3tag*.cmake %doc CHANGES CREDITS README TODO %changelog +* Thu Feb 03 2022 Silvan Calarco 0.16.1-2mamba +- fix library SOVERSION + +* Sun Dec 26 2021 Silvan Calarco 0.16.1-1mamba +- update to 0.16.1 + * Thu Dec 17 2020 Silvan Calarco 0.15.1b-6mamba - rebuilt with debug package and aarch64 build fix