taglib/taglib.spec

105 lines
2.6 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
2019-12-26 19:45:55 +08:00
Release: 12
2019-09-30 11:18:04 -04:00
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
2019-12-13 16:11:19 +08:00
Summary: Configuration files and link library files for %{name}
2019-09-30 11:18:04 -04:00
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
2019-12-26 19:45:55 +08:00
%defattr(-,root,root)
%doc AUTHORS
%license COPYING.LGPL COPYING.MPL
2019-09-30 11:18:04 -04:00
%{_libdir}/libtag*.so.*
%files devel
2019-12-26 19:45:55 +08:00
%defattr(-,root,root)
2019-09-30 11:18:04 -04:00
%{_bindir}/%{name}-config
%{_includedir}/%{name}/
%{_libdir}/libtag*.so
%{_libdir}/pkgconfig/taglib*.pc
%files help
2019-12-26 19:45:55 +08:00
%defattr(-,root,root)
2019-09-30 11:18:04 -04:00
%doc NEWS examples
%changelog
2019-12-26 19:45:55 +08:00
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.11.1-12
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:change the path of AUTHORS
2019-12-13 16:11:19 +08:00
* Wed Nov 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.11.1-11
- Type: enhancement
- ID: NA
- SUG: NA
- DESC:modify devel's summary
2019-09-30 11:18:04 -04:00
* 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