]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
- added libpng patch to prefer libpng 1.4.x over 1.2.x/1.0.x
[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 Patch0:         %{name}-libpng.patch
12 URL:            http://www.libsdl.org/projects/SDL_image/
13 BuildRequires:  SDL-devel >= 1.2.10
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libjpeg-devel >= 7
17 BuildRequires:  libpng-devel >= 2:1.2.0
18 BuildRequires:  libtiff-devel >= 3
19 BuildRequires:  libtool >= 2:2.0
20 BuildRequires:  pkgconfig >= 1:0.9.0
21 Requires:       SDL >= 1.2.10
22 Obsoletes:      libSDL_image1.2
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 # NOTE: libraries dlopened by sonames detected at build time:
26 # libjpeg.so.8
27 # libpng14.so.14 [note the libpng patch for preferred libs order]
28 # libtiff.so.3
29
30 %description
31 This is a simple library to load images of various formats as SDL
32 surfaces. This library currently supports BMP, PPM, PCX, GIF, JPEG,
33 and PNG formats.
34
35 %description -l pl.UTF-8
36 Jest to prosta biblioteka służąca do ładowania różnego formatu obrazków
37 jako powierzchni SDL. W chwili obecnej biblioteka obsługuje
38 następujące formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG.
39
40 %description -l pt_BR.UTF-8
41 Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens.
42
43 %package devel
44 Summary:        Header files and more to develop SDL_image applications
45 Summary(pl.UTF-8):      Pliki nagłówkowe do rozwijania aplikacji używających SDL_image
46 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL
47 Group:          Development/Libraries
48 Requires:       %{name} = %{version}-%{release}
49 Requires:       SDL-devel >= 1.2.10
50 Obsoletes:      libSDL_image1.2-devel
51
52 %description devel
53 Header files and more to develop SDL_image applications.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe do rozwijania aplikacji używających SDL_image.
57
58 %description devel -l pt_BR.UTF-8
59 Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
60 SDL.
61
62 %package static
63 Summary:        Static SDL_image libraries
64 Summary(pl.UTF-8):      Statyczne biblioteki SDL_image
65 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento de aplicações SDL
66 Group:          Development/Libraries
67 Requires:       %{name}-devel = %{version}-%{release}
68
69 %description static
70 Statis SDL_image libraries.
71
72 %description static -l pl.UTF-8
73 Statyczne biblioteki SDL_image.
74
75 %description static -l pt_BR.UTF-8
76 Bibliotecas estáticas para desenvolvimento de aplicações SDL.
77
78 %prep
79 %setup -q
80 %patch0 -p1
81
82 %build
83 %{__libtoolize}
84 %{__aclocal}
85 %{__autoconf}
86 %{__automake}
87 %configure \
88         --enable-bmp \
89         --enable-gif \
90         --enable-jpg \
91         --enable-jpg-shared \
92         --enable-lbm \
93         --enable-pcx \
94         --enable-png \
95         --enable-png-shared \
96         --enable-pnm \
97         --enable-tga \
98         --enable-tif \
99         --enable-tif-shared \
100         --enable-xcf \
101         --enable-xpm \
102         --enable-xv 
103
104 %{__make}
105
106 %install
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT%{_bindir}
109
110 %{__make} install \
111         DESTDIR=$RPM_BUILD_ROOT
112
113 install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %post   -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
120
121 %files
122 %defattr(644,root,root,755)
123 %doc CHANGES README
124 %attr(755,root,root) %{_bindir}/sdlshow
125 %attr(755,root,root) %{_libdir}/libSDL_image-1.2.so.*.*.*
126 %attr(755,root,root) %ghost  %{_libdir}/libSDL_image-1.2.so.0
127
128 %files devel
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/libSDL_image.so
131 %{_libdir}/libSDL_image.la
132 %{_includedir}/SDL/SDL_image.h
133 %{_pkgconfigdir}/SDL_image.pc
134
135 %files static
136 %defattr(644,root,root,755)
137 %{_libdir}/libSDL_image.a
This page took 0.071812 seconds and 4 git commands to generate.