Skip to content

Commit

Permalink
Adding Updates: Taglib Spec file and patch file
Browse files Browse the repository at this point in the history
  • Loading branch information
archana25-ms committed Jan 10, 2025
1 parent be5bb3f commit 89d8464
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 39 deletions.
25 changes: 20 additions & 5 deletions SPECS-EXTENDED/taglib/taglib-1.13.1-multilib.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
--- taglib-1.13.1/taglib-config.cmake.multilib 2023-07-01 05:43:27.000000000 +0000
+++ taglib-1.13.1/taglib-config.cmake 2023-09-19 14:08:59.831290760 +0000
@@ -39,7 +39,7 @@ while test $# -gt 0
diff -up taglib-1.13.1/taglib-config.cmake.multilib taglib-1.13.1/taglib-config.cmake
--- taglib-1.13.1/taglib-config.cmake.multilib 2025-01-04 15:22:01.000000000 +0100
+++ taglib-1.13.1/taglib-config.cmake 2023-07-01 07:43:27.000000000 +0200
@@ -23,11 +23,6 @@ if test -z "$prefix"; then
else
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
fi
-if test -z "$exec_prefix"; then
- libdir=@CMAKE_INSTALL_FULL_LIBDIR@
-else
- libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
-fi

flags=""

@@ -39,7 +34,7 @@ while test $# -gt 0
do
case $1 in
--libs)
Expand All @@ -9,8 +22,10 @@
;;
--cflags)
flags="$flags -I$includedir -I$includedir/taglib"
--- taglib-1.13.1/taglib.pc.cmake..multilib 2023-07-01 05:43:27.000000000 +0000
+++ taglib-1.13.1/taglib.pc.cmake 2023-09-19 14:08:59.835290775 +0000

diff -up taglib-1.13.1/taglib.pc.cmake.multilib taglib-1.13.1/taglib.pc.cmake
--- taglib-1.13.1/taglib.pc.cmake.multilib 2025-01-04 15:23:10.000000000 +0100
+++ taglib-1.13.1/taglib.pc.cmake 2023-07-01 07:43:27.000000000 +0200
@@ -7,5 +7,6 @@ Name: TagLib
Description: Audio meta-data library
Requires:
Expand Down
109 changes: 75 additions & 34 deletions SPECS-EXTENDED/taglib/taglib.spec
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
%undefine __cmake_in_source_build

## 1.11 currently disables tests with BUILD_SHARED_LIBS=ON
#bcond_without tests
#bcond_without doc
%global apidocdir __api-doc_fedora
Summary: Audio Meta-Data Library
Name: taglib
Version: 1.13.1
Release: 1%{?dist}
License: LGPLv2 OR MPLv1.1
Release: 2%{?dist}
License: (LGPL-2.1-only OR MPL-1.1) AND BSD-2-Clause AND LGPL-2.1-only
Vendor: Microsoft Corporation
Distribution: Azure Linux
URL: https://taglib.github.io/
URL: https://taglib.github.io/
%if 0%{?snap:1}
Source0: taglib-%{version}-%{snap}.tar.gz
%else
Source0: https://taglib.github.io/releases/taglib-%{version}%{?beta}.tar.gz
%endif
# The snapshot tarballs generated with the following script:
Source1: taglib-snapshot.sh
Source1: taglib-snapshot.sh
# http://bugzilla.redhat.com/343241
# fix multilib, and drop -lz flag to consumers (probably only needed for static linking)
Patch102: taglib-1.13.1-multilib.patch

BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%if 0%{?snap:1}
Source0: taglib-%{version}-%{snap}.tar.gz
%else
Source0: http://taglib.github.io/releases/taglib-%{version}%{?beta}.tar.gz
%endif
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%if %{with tests}
BuildRequires: cppunit-devel
BuildRequires: cppunit-devel
%endif
%if %{with doc}
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: doxygen
BuildRequires: graphviz
%endif

%description
Expand All @@ -40,49 +43,47 @@ files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC,
Speex, WavPack, TrueAudio files, as well as APE Tags.

%package doc
Summary: API Documentation for %{name}
BuildArch: noarch
Summary: API Documentation for %{name}
BuildArch: noarch

%description doc
This is API documentation generated from the TagLib source code.

%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%if ! %{with doc}
Obsoletes: %{name}-doc
Obsoletes: %{name}-doc < %{version}-%{release}
%endif

%description devel
Files needed when building software with %{name}.


%prep
%autosetup -n taglib-%{version}%{?beta} -p1


%build
mkdir %{_target_platform}
pushd %{_target_platform}
%cmake .. \
%{cmake} \
%if %{with tests}
-DBUILD_TESTS:BOOL=ON \
%endif
-DCMAKE_BUILD_TYPE:STRING="Release"
popd

%make_build -C %{_target_platform}
%cmake_build

%if %{with doc}
make docs -C %{_target_platform}
%cmake_build --target docs
%endif


%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%cmake_install

%if %{with doc}
rm -fr %{apidocdir} ; mkdir %{apidocdir}
cp -a %{_target_platform}/doc/html/ %{apidocdir}/
cp -a %{_vpath_builddir}/doc/html/ %{apidocdir}/
ln -s html/index.html %{apidocdir}
find %{apidocdir} -name '*.md5' | xargs rm -fv
%endif
Expand All @@ -95,7 +96,7 @@ test "$(pkg-config --modversion taglib_c)" = "%{version}"
%if %{with tests}
#ln -s ../../tests/data %{_target_platform}/tests/
#LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH \
make check -C %{_target_platform}
%ctest
%endif

%ldconfig_scriptlets
Expand All @@ -122,12 +123,51 @@ make check -C %{_target_platform}


%changelog
* Mon Sep 18 2023 Archana Choudhary <archana1@microsoft.com> - 1.13.1-1
- Upgrade to 1.13.1 - CVE-2018-11439, CVE-2017-12678
* Fri Jan 10 2025 Archana Shettigar <v-shettigara@microsoft.com> - 1.13.1-2
- Initial Azure Linux import from Fedora 41 (license: MIT).
- License verified

* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 1.11.1-13
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
* Sat Jan 04 2025 Uwe Klotz <[email protected]> - 1.13.1-1
- Upgrade to v1.13.1

* Sat Jul 20 2024 Fedora Release Engineering <[email protected]> - 1.12-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

* Sat Jan 27 2024 Fedora Release Engineering <[email protected]> - 1.12-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

* Sat Jul 22 2023 Fedora Release Engineering <[email protected]> - 1.12-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

* Sat Jan 21 2023 Fedora Release Engineering <[email protected]> - 1.12-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Sat Jul 23 2022 Fedora Release Engineering <[email protected]> - 1.12-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Sat Jan 22 2022 Fedora Release Engineering <[email protected]> - 1.12-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Fri Jul 23 2021 Fedora Release Engineering <[email protected]> - 1.12-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Mon Mar 29 2021 Rex Dieter <[email protected]> - 1.12-4
- fix multilib.patch (#1943870)

* Wed Mar 03 2021 Rex Dieter <[email protected]> - 1.12-3
- -devel: fix/drop -lz references in taglib-config, taglib.pc

* Tue Feb 16 2021 Rex Dieter <[email protected]> - 1.12-2
- use versioned obsoletes

* Tue Feb 16 2021 David King <[email protected]> - 1.12-1
- Update to 1.12 (#1584870)

* Wed Jan 27 2021 Fedora Release Engineering <[email protected]> - 1.11.1-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Wed Jul 29 2020 Fedora Release Engineering <[email protected]> - 1.11.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Fri Jan 31 2020 Fedora Release Engineering <[email protected]> - 1.11.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Expand Down Expand Up @@ -240,6 +280,7 @@ make check -C %{_target_platform}

* Thu Sep 06 2012 Rex Dieter <[email protected]> 1.8-1
- taglib-1.8

-* Sat Jul 21 2012 Fedora Release Engineering <[email protected]> - 1.7.2-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

Expand Down Expand Up @@ -368,7 +409,7 @@ make check -C %{_target_platform}
- svn20071111 snapshot (#376241)

* Thu Sep 27 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.5-0.5.20070924svn
- -BR: automake
- -BR: automake
- +BR: zlib-devel

* Thu Sep 27 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.5-0.4.20070924svn
Expand Down

0 comments on commit 89d8464

Please sign in to comment.