taglib/taglib.spec

89 lines
2.2 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:18:04 -04:00
Name: taglib
Summary: Audio Meta-Data Library
Version: 1.11.1
Release: 10
License: LGPLv2 or MPLv1.1
URL: https://taglib.github.io/
Source0: https://taglib.github.io/releases/%{name}-%{version}.tar.gz
# patch0 comes from redhat
Patch0: taglib-1.5rc1-multilib.patch
# patch1 comes from TagLib official
Patch1: 0001-Don-t-assume-TDRC-is-an-instance-of-TextIdentificati.patch
Patch6000: CVE-2018-11439-Fixed-OOB-read-when-loading-invalid-ogg-flac-file.-8.patch
BuildRequires: gcc gcc-c++ cmake pkgconfig zlib-devel
%description
TagLib is a library for reading and editing the meta-data of several popular
audio formats. Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg
Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack
TrueAudio, WAV, AIFF, MP4 and ASF files.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Files needed when building software with %{name}.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake} .. -DCMAKE_BUILD_TYPE:STRING="Release"
popd
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%check
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
test "$(pkg-config --modversion taglib)" = "%{version}"
test "$(pkg-config --modversion taglib_c)" = "%{version}"
%ldconfig_scriptlets
%files
%license AUTHORS COPYING.LGPL COPYING.MPL
%{_libdir}/libtag*.so.*
%files devel
%{_bindir}/%{name}-config
%{_includedir}/%{name}/
%{_libdir}/libtag*.so
%{_libdir}/pkgconfig/taglib*.pc
%files help
%doc NEWS examples
%changelog
* Mon Sep 09 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.11.1-10
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: Add help package, remove bcond_without doc&test.
* Wed Aug 21 2019 cangyi<cangyi@huawei.com> - 1.11.1-9.h2
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: format patches
* Mon Jun 03 2019 gaoyi<gaoyi15@huawei.com> - 1.11.1-9.h1
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: backport CVE-2018-11439
* Mon Jun 03 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.11.1-8
- Package init