]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
b986e49718f778dfb7ff766d8857eb49b31562f6
[packages/SDL_image.git] / SDL_image.spec
1 Summary:        Simple DirectMedia Layer - Sample Image Loading Library
2 Summary(pl):    Przyk³adowa biblioteka do ³adowania obrazków
3 Summary(pt_BR): Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens
4 Name:           SDL_image
5 Version:        1.2.3
6 Release:        1
7 License:        LGPL
8 Group:          Libraries
9 Source0:        http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
10 # Source0-md5:  d55826ffbd2bdc48b09cc64a9ed9e59e
11 URL:            http://www.libsdl.org/projects/SDL_image/
12 Patch0:         %{name}-ac_fixes.patch
13 BuildRequires:  SDL-devel >= 1.2.5-2
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libjpeg-devel
17 BuildRequires:  libpng >= 1.0.8
18 BuildRequires:  libtiff-devel
19 BuildRequires:  libtool
20 BuildRequires:  zlib-devel
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Obsoletes:      libSDL_image1.2
23
24 %description
25 This is a simple library to load images of various formats as SDL
26 surfaces. This library currently supports BMP, PPM, PCX, GIF, JPEG,
27 and PNG formats.
28
29 %description -l pl
30 jest to prosta biblioteka s³u¿±ca do ³adowania ró¿nego formatu obrazków
31 jako powierzchni SDL. W chwili obecnej biblioteka obs³uguje
32 nastepuj±ce formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG.
33
34 %description -l pt_BR
35 Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens.
36
37 %package devel
38 Summary:        Header files and more to develop SDL_image applications
39 Summary(pl):    Pliki nag³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_image
40 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}
43 Requires:       SDL-devel
44 Obsoletes:      libSDL_image1.2-devel
45
46 %description devel
47 Header files and more to develop SDL_image applications.
48
49 %description devel -l pl
50 Pliki nag³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_image.
51
52 %description devel -l pt_BR
53 Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
54 SDL.
55
56 %package static
57 Summary:        Static SDL_image libraries
58 Summary(pl):    Statyczne biblioteki SDL_image
59 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento de aplicações SDL
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}
62
63 %description static
64 Statis SDL_image libraries.
65
66 %description static -l pl
67 Statyczne biblioteki SDL_image.
68
69 %description static -l pt_BR
70 Bibliotecas estáticas para desenvolvimento de aplicações SDL.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75
76 %build
77 rm -f missing acinclude.m4
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__automake}
82 %configure \
83         --enable-bmp \
84         --enable-gif \
85         --enable-jpg \
86         --enable-pcx \
87         --enable-png \
88         --enable-ppm \
89         --enable-tif
90
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT%{_bindir}
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 install showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %files
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/lib*.so.*.*
112
113 %files devel
114 %defattr(644,root,root,755)
115 %doc README CHANGES
116 %attr(755,root,root) %{_libdir}/lib*.so
117 %{_libdir}/lib*.la
118 %{_includedir}/SDL/*
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/lib*.a
This page took 0.04975 seconds and 2 git commands to generate.