Fixup for i686

el8
Leigh Scott 5 years ago
parent 5b4f06bb46
commit 18c4ce9d30

@ -11,8 +11,10 @@ BuildRequires: automake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkgconfig(libswscale) BuildRequires: pkgconfig(libswscale)
%ifnarch i686
BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Gui)
%endif
BuildRequires: pkgconfig(sdl) BuildRequires: pkgconfig(sdl)
@ -34,7 +36,6 @@ API makes it easy to integrate it into other software.
The development headers for compiling programs that use libde265 The development headers for compiling programs that use libde265
are provided by this package. are provided by this package.
%package examples %package examples
# The entire examples source code is GPLv3+ except extra/getopt* which is BSD. # The entire examples source code is GPLv3+ except extra/getopt* which is BSD.
License: GPLv3+ and BSD License: GPLv3+ and BSD
@ -48,12 +49,18 @@ API makes it easy to integrate it into other software.
Sample applications using libde265 are provided by this package. Sample applications using libde265 are provided by this package.
%prep %prep
%autosetup -p1 %autosetup -p1
%build %build
%configure --disable-silent-rules --disable-static --enable-shared %configure \
--disable-silent-rules \
--disable-static \
%ifarch i686 x86_64
--disable-sherlock265 \
%endif
--enable-shared
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build %make_build
@ -62,16 +69,18 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_install %make_install
find %buildroot -name '*.la' -or -name '*.a' | xargs rm -f find %buildroot -name '*.la' -or -name '*.a' | xargs rm -f
mv %{buildroot}%{_bindir}/dec265 %{buildroot}%{_bindir}/libde265-dec265 mv %{buildroot}%{_bindir}/dec265 %{buildroot}%{_bindir}/libde265-dec265
%ifnarch i686
mv %{buildroot}%{_bindir}/sherlock265 %{buildroot}%{_bindir}/libde265-sherlock265 mv %{buildroot}%{_bindir}/sherlock265 %{buildroot}%{_bindir}/libde265-sherlock265
%endif
# Don't package internal development tools. # Don't package internal development tools.
rm %{buildroot}%{_bindir}/bjoentegaard rm -f %{buildroot}%{_bindir}/bjoentegaard
rm %{buildroot}%{_bindir}/block-rate-estim rm -f %{buildroot}%{_bindir}/block-rate-estim
rm %{buildroot}%{_bindir}/enc265 rm -f %{buildroot}%{_bindir}/enc265
rm %{buildroot}%{_bindir}/gen-enc-table rm -f %{buildroot}%{_bindir}/gen-enc-table
rm %{buildroot}%{_bindir}/hdrcopy rm -f %{buildroot}%{_bindir}/hdrcopy
rm %{buildroot}%{_bindir}/rd-curves rm -f %{buildroot}%{_bindir}/rd-curves
rm %{buildroot}%{_bindir}/tests rm -f %{buildroot}%{_bindir}/tests
rm %{buildroot}%{_bindir}/yuv-distortion rm -f %{buildroot}%{_bindir}/yuv-distortion
%ldconfig_scriptlets %ldconfig_scriptlets
@ -86,10 +95,13 @@ rm %{buildroot}%{_bindir}/yuv-distortion
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%files examples %files examples
%doc README.md %doc README.md
%{_bindir}/libde265-dec265 %{_bindir}/libde265-dec265
%ifnarch i686
%{_bindir}/libde265-sherlock265 %{_bindir}/libde265-sherlock265
%endif
%{_bindir}/acceleration_speed %{_bindir}/acceleration_speed
%changelog %changelog

Loading…
Cancel
Save