]> git.pld-linux.org Git - packages/SDL_image.git/blame - SDL_image.spec
- updated supported format lists in descriptions
[packages/SDL_image.git] / SDL_image.spec
CommitLineData
7f4d1a21 1Summary: Simple DirectMedia Layer - Sample Image Loading Library
6a02ff81
ER
2Summary(pl.UTF-8): Przykładowa biblioteka do ładowania obrazków
3Summary(pt_BR.UTF-8): Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens
ea1b2ce1 4Name: SDL_image
940dc9d2 5Version: 1.2.12
eb4cf9d5
JB
6Release: 1
7License: Zlib-like
ea1b2ce1 8Group: Libraries
983150b6 9Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
940dc9d2 10# Source0-md5: a0f9098ebe5400f0bdc9b62e60797ecb
7f86801d 11Patch0: %{name}-libpng.patch
fff12f80 12URL: http://www.libsdl.org/projects/SDL_image/
2ddf60ef 13BuildRequires: SDL-devel >= 1.2.10
8d9d3b5e 14BuildRequires: autoconf
15BuildRequires: automake
eb4cf9d5
JB
16BuildRequires: libjpeg-devel >= 8
17BuildRequires: libpng-devel >= 2:1.4.0
18BuildRequires: libtiff-devel >= 4
7f86801d 19BuildRequires: libtool >= 2:2.0
940dc9d2 20BuildRequires: libwebp-devel >= 0.1.3
7f86801d 21BuildRequires: pkgconfig >= 1:0.9.0
2ddf60ef 22Requires: SDL >= 1.2.10
d90f05d0
JB
23Suggests: libjpeg >= 8
24Suggests: libpng >= 2:1.4.0
25Suggests: libtiff >= 4
26Suggests: libwebp >= 0.1.3
1843ad0e 27Obsoletes: libSDL_image1.2
fee6c0ad 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ea1b2ce1 29
7f86801d
JB
30# NOTE: libraries dlopened by sonames detected at build time:
31# libjpeg.so.8
eb4cf9d5
JB
32# libpng15.so.15/libpng14.so.14 [note the libpng patch for preferred libs order]
33# libtiff.so.5
34# libwebp.so.2
7f86801d 35
6533b2c9 36%description
e06ff6de 37This is a simple library to load images of various formats as SDL
d90f05d0
JB
38surfaces. This library currently supports BMP, GIF, JPEG, LBM, PCX,
39PNG, PNM (PBM/PGM/PPM), TGA, TIFF, WebP, XCF and XPM formats.
6533b2c9 40
6cacee76 41%description -l pl.UTF-8
940dc9d2 42Jest to prosta biblioteka służąca do ładowania różnego formatu
43obrazków jako powierzchni SDL. W chwili obecnej biblioteka obsługuje
d90f05d0
JB
44następujące formaty: BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PBM/PGM/PPM),
45TGA, TIFF, WebP, XCF oraz XPM.
d65af93b 46
6cacee76 47%description -l pt_BR.UTF-8
4add988f 48Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens.
49
6533b2c9 50%package devel
4add988f 51Summary: Header files and more to develop SDL_image applications
6a02ff81
ER
52Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL_image
53Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL
ea1b2ce1 54Group: Development/Libraries
2c78cf22 55Requires: %{name} = %{version}-%{release}
2ddf60ef 56Requires: SDL-devel >= 1.2.10
1843ad0e 57Obsoletes: libSDL_image1.2-devel
6533b2c9 58
59%description devel
ea1b2ce1 60Header files and more to develop SDL_image applications.
6533b2c9 61
6cacee76
JR
62%description devel -l pl.UTF-8
63Pliki nagłówkowe do rozwijania aplikacji używających SDL_image.
fff12f80 64
6cacee76
JR
65%description devel -l pt_BR.UTF-8
66Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
4add988f 67SDL.
68
ea1b2ce1 69%package static
fff12f80 70Summary: Static SDL_image libraries
6a02ff81
ER
71Summary(pl.UTF-8): Statyczne biblioteki SDL_image
72Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações SDL
ea1b2ce1 73Group: Development/Libraries
2c78cf22 74Requires: %{name}-devel = %{version}-%{release}
ea1b2ce1 75
76%description static
77Statis SDL_image libraries.
6533b2c9 78
6cacee76 79%description static -l pl.UTF-8
fff12f80
AM
80Statyczne biblioteki SDL_image.
81
6cacee76
JR
82%description static -l pt_BR.UTF-8
83Bibliotecas estáticas para desenvolvimento de aplicações SDL.
4add988f 84
ea1b2ce1 85%prep
4add988f 86%setup -q
7f86801d 87%patch0 -p1
9d17b6f2
JB
88
89%build
d2548248 90%{__libtoolize}
c1e28d9f 91%{__aclocal}
9b7600fc 92%{__autoconf}
93%{__automake}
199fb27d 94%configure \
6f9850dd 95 --enable-bmp \
96 --enable-gif \
97 --enable-jpg \
768ceec1 98 --enable-jpg-shared \
99 --enable-lbm \
6f9850dd 100 --enable-pcx \
101 --enable-png \
768ceec1 102 --enable-png-shared \
103 --enable-pnm \
104 --enable-tga \
105 --enable-tif \
106 --enable-tif-shared \
eb4cf9d5
JB
107 --enable-webp \
108 --enable-webp-shared \
768ceec1 109 --enable-xcf \
110 --enable-xpm \
940dc9d2 111 --enable-xv
ea1b2ce1 112
b7ebbe93 113%{__make}
6533b2c9 114
115%install
116rm -rf $RPM_BUILD_ROOT
b9acb865 117install -d $RPM_BUILD_ROOT%{_bindir}
ea1b2ce1 118
43fa5666
PG
119%{__make} install \
120 DESTDIR=$RPM_BUILD_ROOT
8d9d3b5e 121
c2b81651 122install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
6533b2c9 123
124%clean
125rm -rf $RPM_BUILD_ROOT
126
999f21b0 127%post -p /sbin/ldconfig
128%postun -p /sbin/ldconfig
199fb27d 129
6533b2c9 130%files
ea1b2ce1 131%defattr(644,root,root,755)
eb4cf9d5 132%doc CHANGES COPYING README
6a4c1856 133%attr(755,root,root) %{_bindir}/sdlshow
7f86801d 134%attr(755,root,root) %{_libdir}/libSDL_image-1.2.so.*.*.*
14ab01ba 135%attr(755,root,root) %ghost %{_libdir}/libSDL_image-1.2.so.0
6533b2c9 136
137%files devel
ea1b2ce1 138%defattr(644,root,root,755)
6a4c1856
JB
139%attr(755,root,root) %{_libdir}/libSDL_image.so
140%{_libdir}/libSDL_image.la
141%{_includedir}/SDL/SDL_image.h
768ceec1 142%{_pkgconfigdir}/SDL_image.pc
ea1b2ce1 143
144%files static
e06ff6de 145%defattr(644,root,root,755)
6a4c1856 146%{_libdir}/libSDL_image.a
This page took 0.180453 seconds and 4 git commands to generate.