From bb338b03cbb74d65c1e65e25cc82393e753d4d03c7e0b2c41f61c00d2641c401 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 28 May 2021 11:24:16 +0000 Subject: [PATCH] Rework fdupes, drop pointless rpmlintrc OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/SVT-AV1?expand=0&rev=23 --- SVT-AV1-rpmlintrc | 3 --- SVT-AV1.spec | 7 ++++--- 2 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 SVT-AV1-rpmlintrc diff --git a/SVT-AV1-rpmlintrc b/SVT-AV1-rpmlintrc deleted file mode 100644 index c056ffc..0000000 --- a/SVT-AV1-rpmlintrc +++ /dev/null @@ -1,3 +0,0 @@ -# [ 44s] libSvtAv1Enc-suse0.x86_64: E: shlib-policy-name-error (Badness: 10000) libSvtAv1Encsuse0 -# Go home rpmlint, you are drunk! -addFilter("shlib-policy-name-error") diff --git a/SVT-AV1.spec b/SVT-AV1.spec index 269b8fe..6876a31 100644 --- a/SVT-AV1.spec +++ b/SVT-AV1.spec @@ -25,7 +25,6 @@ License: BSD-2-Clause-Patent Group: Productivity/Multimedia/Other URL: https://gitlab.com/AOMediaCodec/SVT-AV1 Source: https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v%{version}/SVT-AV1-v%{version}.tar.gz -Source9: %{name}-rpmlintrc BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ @@ -93,6 +92,9 @@ help2man -N --help-option=-help --version-string=%{version} %{buildroot}%{_bindi LD_LIBRARY_PATH="%{buildroot}%{_libdir}" \ help2man -N --help-option=-help --version-string=%{version} --no-discard-stderr %{buildroot}%{_bindir}/SvtAv1EncApp > %{buildroot}%{_mandir}/man1/SvtAv1EncApp.1 +b="%{buildroot}/%{_defaultdocdir}/%{name}" +mkdir -p "$b" +cp -a Docs README.md "$b/" %fdupes %{buildroot}/%{_prefix} %post -n libSvtAv1Dec%{sover} -p /sbin/ldconfig @@ -109,12 +111,11 @@ help2man -N --help-option=-help --version-string=%{version} --no-discard-stderr %{_libdir}/libSvtAv1Enc.so.%{sover}* %files -%doc README.md -%doc Docs %{_bindir}/SvtAv1DecApp %{_bindir}/SvtAv1EncApp %{_mandir}/man1/SvtAv1DecApp.1* %{_mandir}/man1/SvtAv1EncApp.1* +%doc %{_defaultdocdir}/%{name}/ %files devel %{_libdir}/libSvtAv1Dec.so