SDL2_image.spec.in
changeset 321 fd488b9e71e0
parent 229 efaa78b6c2e1
child 323 5fa92cf4e813
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/SDL2_image.spec.in	Sun Jan 22 23:20:50 2012 -0500
     1.3 @@ -0,0 +1,69 @@
     1.4 +%define name @PACKAGE@
     1.5 +%define version @VERSION@
     1.6 +%define release 1
     1.7 +
     1.8 +Summary: Simple DirectMedia Layer - Sample Image Loading Library
     1.9 +Name: %{name}
    1.10 +Version: %{version}
    1.11 +Release: %{release}
    1.12 +Source0: %{name}-%{version}.tar.gz
    1.13 +License: LGPL
    1.14 +Group: System Environment/Libraries
    1.15 +BuildRoot: /var/tmp/%{name}-buildroot
    1.16 +Prefix: %{_prefix}
    1.17 +Packager: Hakan Tandogan <hakan@iconsult.com>
    1.18 +#BuildRequires: SDL2-devel
    1.19 +#BuildRequires: libjpeg-devel
    1.20 +#BuildRequires: libpng-devel
    1.21 +#BuildRequires: libtiff-devel
    1.22 +
    1.23 +%description
    1.24 +This is a simple library to load images of various formats as SDL surfaces.
    1.25 +This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
    1.26 +
    1.27 +%package devel
    1.28 +Summary: Libraries, includes and more to develop SDL applications.
    1.29 +Group: Development/Libraries
    1.30 +Requires: %{name}
    1.31 +Requires: SDL2-devel
    1.32 +
    1.33 +%description devel
    1.34 +This is a simple library to load images of various formats as SDL surfaces.
    1.35 +This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
    1.36 +
    1.37 +%prep
    1.38 +rm -rf ${RPM_BUILD_ROOT}
    1.39 +
    1.40 +%setup 
    1.41 +
    1.42 +%build
    1.43 +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
    1.44 +make
    1.45 +
    1.46 +%install
    1.47 +rm -rf $RPM_BUILD_ROOT
    1.48 +make install prefix=$RPM_BUILD_ROOT/%{prefix}
    1.49 +
    1.50 +%clean
    1.51 +rm -rf $RPM_BUILD_ROOT
    1.52 +
    1.53 +%files
    1.54 +%defattr(-,root,root)
    1.55 +%doc README CHANGES COPYING
    1.56 +%{prefix}/lib/lib*.so.*
    1.57 +
    1.58 +%files devel
    1.59 +%defattr(-,root,root)
    1.60 +%{prefix}/lib/lib*.a
    1.61 +%{prefix}/lib/lib*.la
    1.62 +%{prefix}/lib/lib*.so
    1.63 +%{prefix}/include/SDL/
    1.64 +%{prefix}/lib/pkgconfig/*.pc
    1.65 +
    1.66 +%changelog
    1.67 +* Wed Jan 19 2000 Sam Lantinga 
    1.68 +- converted to get package information from configure
    1.69 +* Tue Jan 18 2000 Hakan Tandogan <hakan@iconsult.com>
    1.70 +- initial spec file
    1.71 +
    1.72 +