]> git.pld-linux.org Git - packages/SDL_image.git/blame - SDL_image.spec
- completly rewrited in PLD style.
[packages/SDL_image.git] / SDL_image.spec
CommitLineData
ea1b2ce1 1Summary: Simple DirectMedia Layer - Sample Image Loading Library
2Name: SDL_image
3Version: 1.0.4
4Release: 1
5License: LGPL
6Group: Libraries
7Source0: http://www.devolution.com/~slouken/SDL/projects/SDL_image/src/%{name}-%{version}.tar.gz
8BuildRequires: SDL-devel >= 1.0.1
9BuildRequires: libjpeg-devel
10BuildRequires: libpng-devel
11BuildRoot: /tmp/%{name}-%{version}-root
12
13%define _prefix /usr/X11R6
6533b2c9 14
15%description
16This is a simple library to load images of various formats as SDL surfaces.
17This library currently supports BMP, PPM, PCX, GIF, JPEG, and PNG formats.
18
19%package devel
ea1b2ce1 20Summary: Header files and more to develop SDL_image applications
21Group: Development/Libraries
22Group(fr): Development/Librairies
23Group(pl): Programowanie/Biblioteki
24Requires: %{name} = %{version}
25Requires: SDL-devel
6533b2c9 26
27%description devel
ea1b2ce1 28Header files and more to develop SDL_image applications.
6533b2c9 29
ea1b2ce1 30%package static
31Summary: Statis SDL_image libraries
32Group: Development/Libraries
33Group(fr): Development/Librairies
34Group(pl): Programowanie/Biblioteki
35Requires: %{name}-devel = %{version}
36Requires: SDL-devel
37
38%description static
39Statis SDL_image libraries.
6533b2c9 40
ea1b2ce1 41%prep
42%setup -q
6533b2c9 43
44%build
ea1b2ce1 45LDFLAGS="-s"; export LDFLAGS
46%configure
47
6533b2c9 48make
49
50%install
51rm -rf $RPM_BUILD_ROOT
ea1b2ce1 52make install DESTDIR=$RPM_BUILD_ROOT
53
54strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
55
56gzip -9nf README CHANGES
6533b2c9 57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
ea1b2ce1 62%defattr(644,root,root,755)
63%{_bindir}/showimage
64%attr(755,root,roo) %{_libdir}/lib*.so.*.*
6533b2c9 65
66%files devel
ea1b2ce1 67%defattr(644,root,root,755)
68%doc *.gz
69%attr(755,root,roo) %{_libdir}/lib*.so
70%{_includedir}/SDL/*
71
72%files static
73%attr(644,root,roo) %{_libdir}/lib*.a
This page took 0.065779 seconds and 4 git commands to generate.