Fixup for el

el9
Leigh Scott 2 years ago
parent 8fe3d55cf2
commit 66205b18d6

@ -253,7 +253,7 @@ and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
%package libs %package libs
Summary: Libraries for %{name} Summary: Libraries for %{name}
%if 0%{?fedora} < 38 %if 0%{?fedora} && 0%{?fedora} < 38
Conflicts: libavcodec-free Conflicts: libavcodec-free
Conflicts: libavfilter-free Conflicts: libavfilter-free
Conflicts: libavformat-free Conflicts: libavformat-free
@ -273,7 +273,7 @@ This package contains the libraries for %{name}
%package -n libavdevice%{?flavor} %package -n libavdevice%{?flavor}
Summary: Special devices muxing/demuxing library Summary: Special devices muxing/demuxing library
%if 0%{?fedora} < 38 %if 0%{?fedora} && 0%{?fedora} < 38
Conflicts: libavdevice-free Conflicts: libavdevice-free
%endif %endif
Requires: %{name}-libs%{_isa} = %{version}-%{release} Requires: %{name}-libs%{_isa} = %{version}-%{release}
@ -416,7 +416,7 @@ cp -pr doc/examples/{*.c,Makefile,README} _doc/examples/
%build %build
%{?_with_cuda:export PATH=${PATH}:%{_cuda_bindir}} %{?_with_cuda:export PATH=${PATH}:%{_cuda_bindir}}
%{ff_configure}\ %{ff_configure}\
%if 0%{?fedora} > 37 %if 0%{?fedora} && 0%{?fedora} > 37
--libdir=%{_libdir}/%{name} \ --libdir=%{_libdir}/%{name} \
--shlibdir=%{_libdir}/%{name} \ --shlibdir=%{_libdir}/%{name} \
%else %else
@ -481,7 +481,7 @@ rm -r %{buildroot}%{_datadir}/%{name}/examples
install -pm755 tools/qt-faststart %{buildroot}%{_bindir} install -pm755 tools/qt-faststart %{buildroot}%{_bindir}
%endif %endif
%if 0%{?fedora} > 37 %if 0%{?fedora} && 0%{?fedora} > 37
install -m 0755 -d %{buildroot}%{_sysconfdir}/ld.so.conf.d/ install -m 0755 -d %{buildroot}%{_sysconfdir}/ld.so.conf.d/
echo -e "%{_libdir}/%{name}\n" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_lib}.conf echo -e "%{_libdir}/%{name}\n" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_lib}.conf
mv %{buildroot}%{_libdir}{/%{name},}/pkgconfig mv %{buildroot}%{_libdir}{/%{name},}/pkgconfig
@ -507,7 +507,7 @@ mv %{buildroot}%{_libdir}{/%{name},}/pkgconfig
%files libs %files libs
%doc CREDITS README.md %doc CREDITS README.md
%license COPYING.* %license COPYING.*
%if 0%{?fedora} > 37 %if 0%{?fedora} && 0%{?fedora} > 37
%{_sysconfdir}/ld.so.conf.d/%{name}-%{_lib}.conf %{_sysconfdir}/ld.so.conf.d/%{name}-%{_lib}.conf
%{_libdir}/%{name}/lib*.so.* %{_libdir}/%{name}/lib*.so.*
%exclude %{_libdir}/%{name}/libavdevice%{?build_suffix}.so.* %exclude %{_libdir}/%{name}/libavdevice%{?build_suffix}.so.*
@ -520,7 +520,7 @@ mv %{buildroot}%{_libdir}{/%{name},}/pkgconfig
} }
%files -n libavdevice%{?flavor} %files -n libavdevice%{?flavor}
%if 0%{?fedora} > 37 %if 0%{?fedora} && 0%{?fedora} > 37
%{_libdir}/%{name}/libavdevice%{?build_suffix}.so.* %{_libdir}/%{name}/libavdevice%{?build_suffix}.so.*
%else %else
%{_libdir}/libavdevice%{?build_suffix}.so.* %{_libdir}/libavdevice%{?build_suffix}.so.*

Loading…
Cancel
Save