]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
- -devel deps
[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 Requires:       libjpeg-devel
45 Requires:       libpng-devel
46 Requires:       libtiff-devel
47 Obsoletes:      libSDL_image1.2-devel
48
49 %description devel
50 Header files and more to develop SDL_image applications.
51
52 %description devel -l pl
53 Pliki nag³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_image.
54
55 %description devel -l pt_BR
56 Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
57 SDL.
58
59 %package static
60 Summary:        Static SDL_image libraries
61 Summary(pl):    Statyczne biblioteki SDL_image
62 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento de aplicações SDL
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{version}
65
66 %description static
67 Statis SDL_image libraries.
68
69 %description static -l pl
70 Statyczne biblioteki SDL_image.
71
72 %description static -l pt_BR
73 Bibliotecas estáticas para desenvolvimento de aplicações SDL.
74
75 %prep
76 %setup -q
77 %patch0 -p1
78
79 %build
80 rm -f acinclude.m4
81 %{__libtoolize}
82 %{__aclocal}
83 %{__autoconf}
84 %{__automake}
85 %configure \
86         --enable-bmp \
87         --enable-gif \
88         --enable-jpg \
89         --enable-pcx \
90         --enable-png \
91         --enable-ppm \
92         --enable-tif
93
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT%{_bindir}
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 install showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post   -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
110
111 %files
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_bindir}/*
114 %attr(755,root,root) %{_libdir}/lib*.so.*.*
115
116 %files devel
117 %defattr(644,root,root,755)
118 %doc README CHANGES
119 %attr(755,root,root) %{_libdir}/lib*.so
120 %{_libdir}/lib*.la
121 %{_includedir}/SDL/*
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/lib*.a
This page took 0.036467 seconds and 3 git commands to generate.