]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
- rel 2
[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.10
6 Release:        2
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:  6c06584b31559e2b59f2b982d0d1f628
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 >= 7
16 BuildRequires:  libpng-devel >= 2:1.2.0
17 BuildRequires:  libtiff-devel >= 3
18 BuildRequires:  libtool
19 BuildRequires:  pkgconfig >= 0.9.0
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         --enable-bmp \
84         --enable-gif \
85         --enable-jpg \
86         --enable-jpg-shared \
87         --enable-lbm \
88         --enable-pcx \
89         --enable-png \
90         --enable-png-shared \
91         --enable-pnm \
92         --enable-tga \
93         --enable-tif \
94         --enable-tif-shared \
95         --enable-xcf \
96         --enable-xpm \
97         --enable-xv 
98
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT%{_bindir}
104
105 %{__make} install \
106         DESTDIR=$RPM_BUILD_ROOT
107
108 install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post   -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc CHANGES README
119 %attr(755,root,root) %{_bindir}/sdlshow
120 %attr(755,root,root) %{_libdir}/libSDL_image-*.so.*.*.*
121 %attr(755,root,root) %ghost  %{_libdir}/libSDL_image-1.2.so.0
122
123 %files devel
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libSDL_image.so
126 %{_libdir}/libSDL_image.la
127 %{_includedir}/SDL/SDL_image.h
128 %{_pkgconfigdir}/SDL_image.pc
129
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/libSDL_image.a
This page took 1.12108 seconds and 4 git commands to generate.