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