Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37048113
en ru br
Репозитории ALT
S:1.2.12-alt3.gitd0ea78d
5.1: 1.2.7-alt1
4.1: 1.2.6-alt3
4.0: 1.2.6-alt2.M40.1
3.0: 1.2.3-alt2.1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: SDL_image

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: SDL_image
Version: 1.2.12
Release: alt3.gitd0ea78d

Summary: Image loading library for SDL
Group: System/Libraries
License: LGPL-2.0+
Url: http://www.libsdl.org/projects/SDL_image/
# https://github.com/libsdl-org/SDL_image/tree/SDL-1.2
# http://www.libsdl.org/projects/%name/release/%name-%version.tar.gz
Source: %name-%version.tar
Patch: SDL_image-1.2.12-fedora-interlaced-png-warning-fix.patch

%def_disable static
%define libname lib%name
# must match SDL_VERSION= in configure.ac
%define SDL_ver 1.2.10

BuildRequires: libSDL-devel >= %SDL_ver
BuildRequires: libjpeg-devel libpng-devel libtiff-devel zlib-devel libwebp-devel

%description
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
designed to provide fast access to the graphics frame buffer and audio
device.

%package -n %libname
Summary: %name runtime library
Group: System/Libraries

%description -n %libname
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
designed to provide fast access to the graphics frame buffer and audio
device.  This package contains a simple library for loading images of
various formats (BMP, PPM, PCX, GIF, JPEG, PNG) as SDL surfaces.

%package -n %libname-devel
Summary: %name development files
Group: Development/C
Requires: %libname = %version-%release

%description -n %libname-devel
This package contains %name development library and header files
required to build %name-based software.

%package -n %libname-devel-static
Summary: Static libraries for developing programs that will use %name
Group: Development/C
Requires: %libname-devel = %version-%release

%description -n %libname-devel-static
This package contains %name static library required to build
statically-linked %name-based software.

%prep
%setup
# %%patch -p2
# required for autoreconf
mv acinclude m4
rm m4/l*.m4
touch NEWS AUTHORS ChangeLog

%build
# required for properly linked showimage
%autoreconf
%configure \
--enable-jpg \
--enable-png \
--enable-tif \
--disable-jpg-shared \
--disable-png-shared \
--disable-tif-shared \
%{subst_enable static}
%make_build

%install
%makeinstall_std
mkdir -p %buildroot%_bindir
install -pm755 .libs/showimage %buildroot%_bindir/

%files -n %libname
%_bindir/showimage
%_libdir/*.so.*

%files -n %libname-devel
%_libdir/*.so
%_includedir/SDL/*
%_pkgconfigdir/*
%doc README CHANGES

%if_enabled static
%files -n %libname-devel-static
%_libdir/*.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin