]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
- tabs in preamble
[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.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.UTF-8
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.UTF-8
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.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających SDL_image
40 Summary(pt_BR.UTF-8):   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.UTF-8
50 Pliki nagłówkowe do rozwijania aplikacji używających SDL_image.
51
52 %description devel -l pt_BR.UTF-8
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.UTF-8):      Statyczne biblioteki SDL_image
59 Summary(pt_BR.UTF-8):   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.UTF-8
67 Statyczne biblioteki SDL_image.
68
69 %description static -l pt_BR.UTF-8
70 Bibliotecas estáticas para desenvolvimento de aplicações SDL.
71
72 %prep
73 %setup -q
74
75 rm -f acinclude.m4
76
77 %build
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__automake}
82 %configure \
83         jpg_lib=libjpeg.so.62 \
84         png_lib=libpng12.so.0 \
85         tif_lib=libtiff.so.3 \
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 .libs/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 %doc CHANGES README
114 %attr(755,root,root) %{_bindir}/*
115 %attr(755,root,root) %{_libdir}/lib*.so.*.*
116
117 %files devel
118 %defattr(644,root,root,755)
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.099323 seconds and 3 git commands to generate.