SDL_image.spec.in
author Sam Lantinga <slouken@libsdl.org>
Sun, 04 Jan 2004 17:41:55 +0000
changeset 97 e1161bd417c4
parent 88 4b33899c0861
child 152 9d6e834a6193
permissions -rw-r--r--
Updated copyright information for 2004 (Happy New Year!)
slouken@0
     1
%define name @PACKAGE@
slouken@0
     2
%define version @VERSION@
slouken@0
     3
%define release 1
slouken@0
     4
slouken@0
     5
Summary: Simple DirectMedia Layer - Sample Image Loading Library
slouken@0
     6
Name: %{name}
slouken@0
     7
Version: %{version}
slouken@0
     8
Release: %{release}
slouken@0
     9
Source0: %{name}-%{version}.tar.gz
slouken@0
    10
Copyright: LGPL
slouken@0
    11
Group: System Environment/Libraries
slouken@0
    12
BuildRoot: /var/tmp/%{name}-buildroot
slouken@0
    13
Prefix: %{_prefix}
slouken@0
    14
Packager: Hakan Tandogan <hakan@iconsult.com>
slouken@86
    15
#BuildRequires: SDL-devel
slouken@86
    16
#BuildRequires: libjpeg-devel
slouken@86
    17
#BuildRequires: libpng-devel
slouken@0
    18
#BuildRequires: libtiff-devel
slouken@0
    19
slouken@0
    20
%description
slouken@0
    21
This is a simple library to load images of various formats as SDL surfaces.
slouken@0
    22
This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
slouken@0
    23
slouken@0
    24
%package devel
slouken@0
    25
Summary: Libraries, includes and more to develop SDL applications.
slouken@0
    26
Group: Development/Libraries
slouken@0
    27
Requires: %{name}
slouken@0
    28
Requires: SDL-devel
slouken@0
    29
slouken@0
    30
%description devel
slouken@0
    31
This is a simple library to load images of various formats as SDL surfaces.
slouken@0
    32
This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
slouken@0
    33
slouken@0
    34
%prep
slouken@0
    35
rm -rf ${RPM_BUILD_ROOT}
slouken@0
    36
slouken@0
    37
%setup 
slouken@0
    38
slouken@0
    39
%build
slouken@0
    40
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
slouken@0
    41
make
slouken@0
    42
slouken@0
    43
%install
slouken@0
    44
rm -rf $RPM_BUILD_ROOT
slouken@0
    45
make install prefix=$RPM_BUILD_ROOT/%{prefix}
slouken@0
    46
slouken@0
    47
%clean
slouken@0
    48
rm -rf $RPM_BUILD_ROOT
slouken@0
    49
slouken@0
    50
%files
slouken@0
    51
%defattr(-,root,root)
slouken@0
    52
%doc README CHANGES COPYING
slouken@0
    53
%{prefix}/lib/lib*.so.*
slouken@0
    54
slouken@0
    55
%files devel
slouken@0
    56
%defattr(-,root,root)
slouken@32
    57
%{prefix}/lib/lib*.a
slouken@88
    58
%{prefix}/lib/lib*.la
slouken@32
    59
%{prefix}/lib/lib*.so
slouken@0
    60
%{prefix}/include/SDL/
slouken@0
    61
slouken@0
    62
%changelog
slouken@0
    63
* Wed Jan 19 2000 Sam Lantinga 
slouken@0
    64
- converted to get package information from configure
slouken@0
    65
* Tue Jan 18 2000 Hakan Tandogan <hakan@iconsult.com>
slouken@0
    66
- initial spec file
slouken@0
    67
slouken@0
    68