Disable mingw by default in RHEL builds
This package is part of RHEL but the mingw builds are unwanted.
This commit is contained in:
parent
8baa94509a
commit
75ab568b76
18
libwebp.spec
18
libwebp.spec
@ -6,6 +6,12 @@
|
|||||||
%bcond_with java
|
%bcond_with java
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%bcond_with mingw
|
||||||
|
%else
|
||||||
|
%bcond_without mingw
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: libwebp
|
Name: libwebp
|
||||||
Version: 1.3.0
|
Version: 1.3.0
|
||||||
Release: 2%{?dist}
|
Release: 2%{?dist}
|
||||||
@ -37,6 +43,7 @@ BuildRequires: jpackage-utils
|
|||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with mingw}
|
||||||
BuildRequires: mingw32-filesystem >= 95
|
BuildRequires: mingw32-filesystem >= 95
|
||||||
BuildRequires: mingw32-gcc
|
BuildRequires: mingw32-gcc
|
||||||
BuildRequires: mingw32-binutils
|
BuildRequires: mingw32-binutils
|
||||||
@ -50,6 +57,7 @@ BuildRequires: mingw64-binutils
|
|||||||
BuildRequires: mingw64-giflib
|
BuildRequires: mingw64-giflib
|
||||||
BuildRequires: mingw64-libpng
|
BuildRequires: mingw64-libpng
|
||||||
BuildRequires: mingw64-libjpeg
|
BuildRequires: mingw64-libjpeg
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -95,6 +103,7 @@ Java bindings for libwebp.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with mingw}
|
||||||
%package -n mingw32-%{name}
|
%package -n mingw32-%{name}
|
||||||
Summary: MinGW Windows %{name} library
|
Summary: MinGW Windows %{name} library
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -112,6 +121,7 @@ MinGW Windows %{name} library.
|
|||||||
|
|
||||||
|
|
||||||
%{?mingw_debug_package}
|
%{?mingw_debug_package}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -123,9 +133,11 @@ MinGW Windows %{name} library.
|
|||||||
%cmake
|
%cmake
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
|
%if %{with mingw}
|
||||||
# MinGW build
|
# MinGW build
|
||||||
%mingw_cmake -DWEBP_BUILD_VWEBP=OFF
|
%mingw_cmake -DWEBP_BUILD_VWEBP=OFF
|
||||||
%mingw_make_build
|
%mingw_make_build
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
# SWIG generated Java bindings
|
# SWIG generated Java bindings
|
||||||
@ -155,10 +167,12 @@ jar cvf ../libwebp.jar com/google/webp/*.class
|
|||||||
# Native build
|
# Native build
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
|
%if %{with mingw}
|
||||||
# MinGW build
|
# MinGW build
|
||||||
%mingw_make_install
|
%mingw_make_install
|
||||||
rm -rf %{buildroot}%{mingw32_mandir}
|
rm -rf %{buildroot}%{mingw32_mandir}
|
||||||
rm -rf %{buildroot}%{mingw64_mandir}
|
rm -rf %{buildroot}%{mingw64_mandir}
|
||||||
|
%endif
|
||||||
|
|
||||||
find "%{buildroot}/%{_libdir}" -type f -name "*.la" -delete
|
find "%{buildroot}/%{_libdir}" -type f -name "*.la" -delete
|
||||||
|
|
||||||
@ -169,7 +183,7 @@ cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%mingw_debug_install_post
|
%{?mingw_debug_install_post}
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -215,6 +229,7 @@ cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/
|
|||||||
%{_libdir}/%{name}-java/
|
%{_libdir}/%{name}-java/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with mingw}
|
||||||
%files -n mingw32-libwebp
|
%files -n mingw32-libwebp
|
||||||
%license PATENTS COPYING
|
%license PATENTS COPYING
|
||||||
%{mingw32_bindir}/cwebp.exe
|
%{mingw32_bindir}/cwebp.exe
|
||||||
@ -266,6 +281,7 @@ cp swig/*.jar swig/*.so %{buildroot}/%{_libdir}/%{name}-java/
|
|||||||
%{mingw64_libdir}/libwebpdemux.dll.a
|
%{mingw64_libdir}/libwebpdemux.dll.a
|
||||||
%{mingw64_libdir}/libwebpmux.dll.a
|
%{mingw64_libdir}/libwebpmux.dll.a
|
||||||
%{mingw64_libdir}/libsharpyuv.dll.a
|
%{mingw64_libdir}/libsharpyuv.dll.a
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user