SDL2_image.spec.in
author Sam Lantinga <slouken@libsdl.org>
Sun, 22 Jan 2012 23:46:42 -0500
changeset 323 5fa92cf4e813
parent 321 fd488b9e71e0
child 420 05ed5cf4143d
permissions -rw-r--r--
Successfully build an SDL2_image RPM
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@152
    10
License: 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@321
    15
#BuildRequires: SDL2-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@321
    28
Requires: SDL2-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@323
    60
%{prefix}/include/*/
slouken@229
    61
%{prefix}/lib/pkgconfig/*.pc
slouken@0
    62
slouken@0
    63
%changelog
slouken@0
    64
* Wed Jan 19 2000 Sam Lantinga 
slouken@0
    65
- converted to get package information from configure
slouken@0
    66
* Tue Jan 18 2000 Hakan Tandogan <hakan@iconsult.com>
slouken@0
    67
- initial spec file
slouken@0
    68
slouken@0
    69