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