]> git.pld-linux.org Git - packages/SDL_image.git/blob - SDL_image.spec
- changed all BuildRoot definitons
[packages/SDL_image.git] / SDL_image.spec
1 Summary:        Simple DirectMedia Layer - Sample Image Loading Library
2 Name:           SDL_image
3 Version:        1.0.4
4 Release:        2
5 License:        LGPL
6 Group:          Libraries
7 Source0:        http://www.devolution.com/~slouken/SDL/projects/SDL_image/src/%{name}-%{version}.tar.gz
8 BuildRequires:  SDL-devel >= 1.1.1
9 BuildRequires:  libjpeg-devel
10 BuildRequires:  libpng-devel
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %define         _prefix         /usr/X11R6
14
15 %description
16 This is a simple library to load images of various formats as SDL surfaces.
17 This library currently supports BMP, PPM, PCX, GIF, JPEG, and PNG formats.
18
19 %description -l pl
20 jest to prosta biblioteka s³u¿±ca do ³adowania ró¿nego formtu obrazków jako
21 powierzchni SDL. W chwili obecnej biblioteka obs³uguje nastepuj±ce formaty:
22 BMP, PPM, PCX, GIF, JPEG oraz PNG.
23
24 %package devel
25 Summary:        Header files and more to develop SDL_image applications
26 Group:          Development/Libraries
27 Group(fr):      Development/Librairies
28 Group(pl):      Programowanie/Biblioteki
29 Requires:       %{name} = %{version}
30 Requires:       SDL-devel
31
32 %description devel
33 Header files and more to develop SDL_image applications.
34
35 %package static
36 Summary:        Statis SDL_image libraries
37 Group:          Development/Libraries
38 Group(fr):      Development/Librairies
39 Group(pl):      Programowanie/Biblioteki
40 Requires:       %{name}-devel = %{version}
41 Requires:       SDL-devel
42
43 %description static
44 Statis SDL_image libraries.
45
46 %prep
47 %setup -q 
48
49 %build
50 LDFLAGS="-s"; export LDFLAGS
51 %configure
52
53 make
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 make install DESTDIR=$RPM_BUILD_ROOT
58
59 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
60
61 gzip -9nf README CHANGES
62
63 %post   -p /sbin/ldconfig
64 %postun -p /sbin/ldconfig
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %attr(755,root,root) %{_bindir}/showimage
72 %attr(755,root,root) %{_libdir}/lib*.so.*.*
73
74 %files devel
75 %defattr(644,root,root,755)
76 %doc *.gz
77 %attr(755,root,root) %{_libdir}/lib*.so
78 %{_includedir}/SDL/*
79
80 %files static
81 %attr(644,root,root) %{_libdir}/lib*.a
This page took 0.038678 seconds and 4 git commands to generate.