]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
f1af639c7835caf571d59e8e36124b32d439ea8f
[packages/SDL_image.git] / SDL_image.spec
1 Summary:        Simple DirectMedia Layer - Sample Image Loading Library.
2 Summary(pl):    Przyk³adowa biblioteka do ³adowania obrazków.
3 Name:           SDL_image
4 Version:        1.1.0
5 Release:        3
6 License:        LGPL
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 Source0:        http://www.libsdl.org/projects/SDL_image/src/%{name}-%{version}.tar.gz
13 URL:            http://www.libsdl.org/projects/SDL_image/
14 BuildRequires:  SDL-devel >= 1.2.0
15 BuildRequires:  libjpeg-devel
16 BuildRequires:  libpng >= 1.0.8
17 BuildRequires:  libtiff-devel
18 BuildRequires:  zlib-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _prefix         /usr/X11R6
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
29 jest to prosta biblioteka s³u¿±ca do ³adowania ró¿nego formtu obrazków
30 jako powierzchni SDL. W chwili obecnej biblioteka obs³uguje
31 nastepuj±ce formaty: BMP, PPM, PCX, GIF, JPEG oraz PNG.
32
33 %package devel
34 Summary:        Header files and more to develop SDL_image applications.
35 Summary(pl):    Pliki nag³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_image.
36 Group:          Development/Libraries
37 Group(de):      Entwicklung/Libraries
38 Group(fr):      Development/Librairies
39 Group(pl):      Programowanie/Biblioteki
40 Requires:       %{name} = %{version}
41 Requires:       SDL-devel
42
43 %description devel
44 Header files and more to develop SDL_image applications.
45
46 %description -l pl devel
47 Pliki nag³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_image.
48
49 %package static
50 Summary:        Static SDL_image libraries
51 Summary(pl):    Statyczne biblioteki SDL_image
52 Group:          Development/Libraries
53 Group(de):      Entwicklung/Libraries
54 Group(fr):      Development/Librairies
55 Group(pl):      Programowanie/Biblioteki
56 Requires:       %{name}-devel = %{version}
57
58 %description static
59 Statis SDL_image libraries.
60
61 %description -l pl static
62 Statyczne biblioteki SDL_image.
63
64 %prep
65 %setup -q 
66
67 %build
68 %configure \
69         --enable-bmp \
70         --enable-gif \
71         --enable-jpg \
72         --enable-pcx \
73         --enable-png \
74         --enable-ppm \
75         --enable-tif
76
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install DESTDIR=$RPM_BUILD_ROOT
83 mv -f $RPM_BUILD_ROOT%{_bindir}/showimage $RPM_BUILD_ROOT%{_bindir}/sdlshow
84
85 gzip -9nf README CHANGES
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %files
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/*
96 %attr(755,root,root) %{_libdir}/lib*.so.*.*
97
98 %files devel
99 %defattr(644,root,root,755)
100 %doc *.gz
101 %attr(755,root,root) %{_libdir}/lib*.so
102 %{_includedir}/SDL/*
103
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/lib*.a
This page took 0.051288 seconds and 3 git commands to generate.