]> git.pld-linux.org Git - packages/SDL2_image.git/blobdiff - SDL2_image.spec
up to 2.8.2
[packages/SDL2_image.git] / SDL2_image.spec
index 99862db51b48838e5c58a987504c5f54a1335614..706db5be02bcb2148b59f9c61b1e2e1b3a286d45 100644 (file)
@@ -2,24 +2,24 @@
 # Conditional build:
 %bcond_without avif            # AV1 Image File Format support
 %bcond_without jxl             # JPEG XL support
+%bcond_without static_libs     # static library
 
 Summary:       Simple DirectMedia Layer 2 - Sample Image Loading Library
 Summary(pl.UTF-8):     Przykładowa biblioteka do ładowania obrazków dla SDL2
 Summary(pt_BR.UTF-8):  Simple DirectMedia Layer 2 - Biblioteca exemplo para carga de Imagens
 Name:          SDL2_image
-Version:       2.6.3
-Release:       2
+Version:       2.8.2
+Release:       1
 License:       Zlib-like
 Group:         Libraries
 Source0:       https://github.com/libsdl-org/SDL_image/releases/download/release-%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 191c3eb49cc2dce30abff81398a92e81
+# Source0-md5: 8464c8aaad39fe9be6a9c1e85b370cd1
 Patch0:                %{name}-libjpeg.patch
-Patch1:                relax-soname-pattern.patch
 URL:           https://github.com/libsdl-org/SDL_image
 BuildRequires: SDL2-devel >= 2.0.9
 BuildRequires: autoconf
 BuildRequires: automake
-%{?with_avif:BuildRequires:    libavif-devel}
+%{?with_avif:BuildRequires:    libavif-devel >= 0.9.3}
 BuildRequires: libjpeg-devel >= 8
 %{?with_jxl:BuildRequires:     libjxl-devel}
 BuildRequires: libpng-devel >= 2:1.6.0
@@ -29,7 +29,7 @@ BuildRequires:        libwebp-devel >= 0.6.0
 BuildRequires: pkgconfig >= 1:0.9.0
 BuildRequires: rpmbuild(macros) >= 1.527
 Requires:      SDL2 >= 2.0.9
-%{?with_avif:Suggests: libavif}
+%{?with_avif:Suggests: libavif >= 0.9.3}
 Suggests:      libjpeg >= 8
 %{?with_jxl:Suggests:  libjxl}
 Suggests:      libpng >= 2:1.6.0
@@ -96,7 +96,6 @@ Bibliotecas estáticas para desenvolvimento de aplicações SDL2.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -104,6 +103,7 @@ Bibliotecas estáticas para desenvolvimento de aplicações SDL2.
 %{__autoconf}
 %{__automake}
 %configure \
+       %{__enable_disable static_libs static} \
        --disable-stb-image \
        %{__enable_disable avif} \
        --enable-avif-shared \
@@ -163,6 +163,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/SDL2/SDL_image.h
 %{_pkgconfigdir}/SDL2_image.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libSDL2_image.a
+%endif
This page took 0.161239 seconds and 4 git commands to generate.