]>
Commit | Line | Data |
---|---|---|
7f4d1a21 | 1 | Summary: Simple DirectMedia Layer - Sample Image Loading Library |
6a02ff81 ER |
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 | |
ea1b2ce1 | 4 | Name: SDL_image |
d89af22e | 5 | Version: 1.2.5 |
fee6c0ad | 6 | Release: 1 |
ea1b2ce1 | 7 | License: LGPL |
8 | Group: Libraries | |
983150b6 | 9 | Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz |
d89af22e | 10 | # Source0-md5: cd006109a73bf7dcc93e1c3ed15ee782 |
fff12f80 | 11 | URL: http://www.libsdl.org/projects/SDL_image/ |
2ddf60ef | 12 | BuildRequires: SDL-devel >= 1.2.10 |
8d9d3b5e | 13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
d89af22e JB |
15 | BuildRequires: libjpeg-devel >= 6b |
16 | BuildRequires: libpng-devel >= 1.2.0 | |
fff12f80 | 17 | BuildRequires: libtiff-devel |
8d9d3b5e | 18 | BuildRequires: libtool |
fff12f80 | 19 | BuildRequires: zlib-devel |
2ddf60ef | 20 | Requires: SDL >= 1.2.10 |
1843ad0e | 21 | Obsoletes: libSDL_image1.2 |
fee6c0ad | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ea1b2ce1 | 23 | |
6533b2c9 | 24 | %description |
e06ff6de | 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. | |
6533b2c9 | 28 | |
6cacee76 JR |
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. | |
d65af93b | 33 | |
6cacee76 | 34 | %description -l pt_BR.UTF-8 |
4add988f | 35 | Simple DirectMedia Layer - Biblioteca exemplo para carga de Imagens. |
36 | ||
6533b2c9 | 37 | %package devel |
4add988f | 38 | Summary: Header files and more to develop SDL_image applications |
6a02ff81 ER |
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 | |
ea1b2ce1 | 41 | Group: Development/Libraries |
2c78cf22 | 42 | Requires: %{name} = %{version}-%{release} |
2ddf60ef | 43 | Requires: SDL-devel >= 1.2.10 |
1843ad0e | 44 | Obsoletes: libSDL_image1.2-devel |
6533b2c9 | 45 | |
46 | %description devel | |
ea1b2ce1 | 47 | Header files and more to develop SDL_image applications. |
6533b2c9 | 48 | |
6cacee76 JR |
49 | %description devel -l pl.UTF-8 |
50 | Pliki nagłówkowe do rozwijania aplikacji używających SDL_image. | |
fff12f80 | 51 | |
6cacee76 JR |
52 | %description devel -l pt_BR.UTF-8 |
53 | Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações | |
4add988f | 54 | SDL. |
55 | ||
ea1b2ce1 | 56 | %package static |
fff12f80 | 57 | Summary: Static SDL_image libraries |
6a02ff81 ER |
58 | Summary(pl.UTF-8): Statyczne biblioteki SDL_image |
59 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações SDL | |
ea1b2ce1 | 60 | Group: Development/Libraries |
2c78cf22 | 61 | Requires: %{name}-devel = %{version}-%{release} |
ea1b2ce1 | 62 | |
63 | %description static | |
64 | Statis SDL_image libraries. | |
6533b2c9 | 65 | |
6cacee76 | 66 | %description static -l pl.UTF-8 |
fff12f80 AM |
67 | Statyczne biblioteki SDL_image. |
68 | ||
6cacee76 JR |
69 | %description static -l pt_BR.UTF-8 |
70 | Bibliotecas estáticas para desenvolvimento de aplicações SDL. | |
4add988f | 71 | |
ea1b2ce1 | 72 | %prep |
4add988f | 73 | %setup -q |
6533b2c9 | 74 | |
a27eb965 | 75 | rm -f acinclude.m4 |
9d17b6f2 JB |
76 | |
77 | %build | |
d2548248 | 78 | %{__libtoolize} |
c1e28d9f | 79 | %{__aclocal} |
9b7600fc | 80 | %{__autoconf} |
81 | %{__automake} | |
199fb27d | 82 | %configure \ |
d89af22e JB |
83 | jpg_lib=libjpeg.so.62 \ |
84 | png_lib=libpng12.so.0 \ | |
85 | tif_lib=libtiff.so.3 \ | |
6f9850dd | 86 | --enable-bmp \ |
87 | --enable-gif \ | |
88 | --enable-jpg \ | |
89 | --enable-pcx \ | |
90 | --enable-png \ | |
91 | --enable-ppm \ | |
92 | --enable-tif | |
ea1b2ce1 | 93 | |
b7ebbe93 | 94 | %{__make} |
6533b2c9 | 95 | |
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
b9acb865 | 98 | install -d $RPM_BUILD_ROOT%{_bindir} |
ea1b2ce1 | 99 | |
43fa5666 PG |
100 | %{__make} install \ |
101 | DESTDIR=$RPM_BUILD_ROOT | |
8d9d3b5e | 102 | |
c2b81651 | 103 | install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow |
6533b2c9 | 104 | |
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
999f21b0 | 108 | %post -p /sbin/ldconfig |
109 | %postun -p /sbin/ldconfig | |
199fb27d | 110 | |
6533b2c9 | 111 | %files |
ea1b2ce1 | 112 | %defattr(644,root,root,755) |
d89af22e | 113 | %doc CHANGES README |
2d43c4a6 | 114 | %attr(755,root,root) %{_bindir}/* |
fccb1a79 | 115 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
6533b2c9 | 116 | |
117 | %files devel | |
ea1b2ce1 | 118 | %defattr(644,root,root,755) |
fccb1a79 | 119 | %attr(755,root,root) %{_libdir}/lib*.so |
920da71a | 120 | %{_libdir}/lib*.la |
ea1b2ce1 | 121 | %{_includedir}/SDL/* |
122 | ||
123 | %files static | |
e06ff6de | 124 | %defattr(644,root,root,755) |
125 | %{_libdir}/lib*.a |