]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
- no longer needed
[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.7
6 Release:        1
7 License:        LGPL v2.1+
8 Group:          Libraries
9 Source0:        http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
10 # Source0-md5:  a729ff61f74f0a45ec7fe36354cf938e
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 >= 2:1.2.0
17 BuildRequires:  libtiff-devel >= 3
18 BuildRequires:  libtool
19 Requires:       SDL >= 1.2.10
20 Obsoletes:      libSDL_image1.2
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This is a simple library to load images of various formats as SDL
25 surfaces. This library currently supports BMP, PPM, PCX, GIF, JPEG,
26 and PNG formats.
27
28 %description -l pl.UTF-8
29 jest to prosta biblioteka służąca do ładowania różnego formatu obrazków
30 jako powierzchni SDL. W chwili obecnej biblioteka obsługuje
31 następujące formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG.
32
33 %description -l pt_BR.UTF-8
34 Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens.
35
36 %package devel
37 Summary:        Header files and more to develop SDL_image applications
38 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających SDL_image
39 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42 Requires:       SDL-devel >= 1.2.10
43 Obsoletes:      libSDL_image1.2-devel
44
45 %description devel
46 Header files and more to develop SDL_image applications.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe do rozwijania aplikacji używających SDL_image.
50
51 %description devel -l pt_BR.UTF-8
52 Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
53 SDL.
54
55 %package static
56 Summary:        Static SDL_image libraries
57 Summary(pl.UTF-8):      Statyczne biblioteki SDL_image
58 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento de aplicações SDL
59 Group:          Development/Libraries
60 Requires:       %{name}-devel = %{version}-%{release}
61
62 %description static
63 Statis SDL_image libraries.
64
65 %description static -l pl.UTF-8
66 Statyczne biblioteki SDL_image.
67
68 %description static -l pt_BR.UTF-8
69 Bibliotecas estáticas para desenvolvimento de aplicações SDL.
70
71 %prep
72 %setup -q
73
74 rm -f acinclude.m4
75
76 %build
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}/sdlshow
114 %attr(755,root,root) %{_libdir}/libSDL_image-*.so.*.*.*
115 %attr(755,root,root) %ghost  %{_libdir}/libSDL_image-1.2.so.0
116
117 %files devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libSDL_image.so
120 %{_libdir}/libSDL_image.la
121 %{_includedir}/SDL/SDL_image.h
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/libSDL_image.a
This page took 0.032371 seconds and 3 git commands to generate.