]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
- needs SDL >= 1.2.10
[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.5
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:  cd006109a73bf7dcc93e1c3ed15ee782
11 URL:            http://www.libsdl.org/projects/SDL_image/
12 BuildRequires:  SDL-devel >= 1.2.10
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libjpeg-devel >= 6b
16 BuildRequires:  libpng-devel >= 1.2.0
17 BuildRequires:  libtiff-devel
18 BuildRequires:  libtool
19 BuildRequires:  zlib-devel
20 Requires:       SDL >= 1.2.10
21 Obsoletes:      libSDL_image1.2
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 nastêpuj±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}-%{release}
43 Requires:       SDL-devel >= 1.2.10
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}-%{release}
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
75 %build
76 rm -f acinclude.m4
77 %{__libtoolize}
78 %{__aclocal}
79 %{__autoconf}
80 %{__automake}
81 %configure \
82         jpg_lib=libjpeg.so.62 \
83         png_lib=libpng12.so.0 \
84         tif_lib=libtiff.so.3 \
85         --enable-bmp \
86         --enable-gif \
87         --enable-jpg \
88         --enable-pcx \
89         --enable-png \
90         --enable-ppm \
91         --enable-tif
92
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT%{_bindir}
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc CHANGES README
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 %attr(755,root,root) %{_libdir}/lib*.so
119 %{_libdir}/lib*.la
120 %{_includedir}/SDL/*
121
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/lib*.a
This page took 1.336695 seconds and 4 git commands to generate.