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