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