From 0fd94aac3da7e0aa06332aedfcd1fc436606df78 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Wed, 20 Nov 2024 12:07:57 +0800 Subject: [PATCH] adopt to new cmake macro --- taglib.spec | 27 +++++++++------------------ taglib.yaml | 2 +- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/taglib.spec b/taglib.spec index a5c4d83..50ae86b 100644 --- a/taglib.spec +++ b/taglib.spec @@ -1,8 +1,8 @@ Name: taglib Summary: Audio Meta-Data Library Version: 1.13.1 -Release: 1 -License: LGPLv2 or MPLv1.1 +Release: 2 +License: (LGPL-2.1-only OR MPL-1.1) AND BSD-2-Clause AND LGPL-2.1-only URL: https://taglib.org/ Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz @@ -27,42 +27,33 @@ Files needed when building software with %{name}. %autosetup -n %{name}-%{version} -p1 %build -mkdir %{_target_platform} -pushd %{_target_platform} -%{cmake} .. -DCMAKE_BUILD_TYPE:STRING="Release" -popd +%{cmake} -DCMAKE_BUILD_TYPE:STRING="Release" -%make_build -C %{_target_platform} +%cmake_build %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 +%cmake_install %files -%defattr(-,root,root) %doc AUTHORS %license COPYING.LGPL COPYING.MPL %{_libdir}/libtag*.so.* %files devel -%defattr(-,root,root) %{_bindir}/%{name}-config %{_includedir}/%{name}/ %{_libdir}/libtag*.so %{_libdir}/pkgconfig/taglib*.pc %files help -%defattr(-,root,root) %doc NEWS examples %changelog +* Wed Nov 20 2024 Funda Wang - 1.13.1-2 +- adopt to new cmake macro +- cleanup spec + * Tue Aug 01 2023 wangqia - 1.13.1-1 - update to 1.13.1 diff --git a/taglib.yaml b/taglib.yaml index d8bfaf8..0e9bb4c 100644 --- a/taglib.yaml +++ b/taglib.yaml @@ -1,4 +1,4 @@ version_control: github src_repo: taglib/taglib tag_prefix: ^v -seperator: . +separator: . -- Gitee