Added the spec file to Mercurial so we can do hg archive for distribution archives
authorSam Lantinga <slouken@libsdl.org>
Sat, 28 Jan 2012 11:05:25 -0500
changeset 327b882e259eb17
parent 326 fa6129ca8503
child 328 8c026f801ac7
Added the spec file to Mercurial so we can do hg archive for distribution archives
.hgignore
SDL2_image.spec
     1.1 --- a/.hgignore	Sat Jan 28 10:51:24 2012 -0500
     1.2 +++ b/.hgignore	Sat Jan 28 11:05:25 2012 -0500
     1.3 @@ -12,5 +12,4 @@
     1.4  *.la
     1.5  *.lai
     1.6  SDL2_image.pc
     1.7 -SDL2_image.spec
     1.8  showimage
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/SDL2_image.spec	Sat Jan 28 11:05:25 2012 -0500
     2.3 @@ -0,0 +1,69 @@
     2.4 +%define name SDL2_image
     2.5 +%define version 1.2.13
     2.6 +%define release 1
     2.7 +
     2.8 +Summary: Simple DirectMedia Layer - Sample Image Loading Library
     2.9 +Name: %{name}
    2.10 +Version: %{version}
    2.11 +Release: %{release}
    2.12 +Source0: %{name}-%{version}.tar.gz
    2.13 +License: LGPL
    2.14 +Group: System Environment/Libraries
    2.15 +BuildRoot: /var/tmp/%{name}-buildroot
    2.16 +Prefix: %{_prefix}
    2.17 +Packager: Hakan Tandogan <hakan@iconsult.com>
    2.18 +#BuildRequires: SDL2-devel
    2.19 +#BuildRequires: libjpeg-devel
    2.20 +#BuildRequires: libpng-devel
    2.21 +#BuildRequires: libtiff-devel
    2.22 +
    2.23 +%description
    2.24 +This is a simple library to load images of various formats as SDL surfaces.
    2.25 +This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
    2.26 +
    2.27 +%package devel
    2.28 +Summary: Libraries, includes and more to develop SDL applications.
    2.29 +Group: Development/Libraries
    2.30 +Requires: %{name}
    2.31 +Requires: SDL2-devel
    2.32 +
    2.33 +%description devel
    2.34 +This is a simple library to load images of various formats as SDL surfaces.
    2.35 +This library supports BMP, PPM, PCX, GIF, JPEG, PNG, and TIFF formats.
    2.36 +
    2.37 +%prep
    2.38 +rm -rf ${RPM_BUILD_ROOT}
    2.39 +
    2.40 +%setup 
    2.41 +
    2.42 +%build
    2.43 +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
    2.44 +make
    2.45 +
    2.46 +%install
    2.47 +rm -rf $RPM_BUILD_ROOT
    2.48 +make install prefix=$RPM_BUILD_ROOT/%{prefix}
    2.49 +
    2.50 +%clean
    2.51 +rm -rf $RPM_BUILD_ROOT
    2.52 +
    2.53 +%files
    2.54 +%defattr(-,root,root)
    2.55 +%doc README CHANGES COPYING
    2.56 +%{prefix}/lib/lib*.so.*
    2.57 +
    2.58 +%files devel
    2.59 +%defattr(-,root,root)
    2.60 +%{prefix}/lib/lib*.a
    2.61 +%{prefix}/lib/lib*.la
    2.62 +%{prefix}/lib/lib*.so
    2.63 +%{prefix}/include/*/
    2.64 +%{prefix}/lib/pkgconfig/*.pc
    2.65 +
    2.66 +%changelog
    2.67 +* Wed Jan 19 2000 Sam Lantinga 
    2.68 +- converted to get package information from configure
    2.69 +* Tue Jan 18 2000 Hakan Tandogan <hakan@iconsult.com>
    2.70 +- initial spec file
    2.71 +
    2.72 +