From ea1b2ce1ea098e1c6b4ff887711a5ebac001c031 Mon Sep 17 00:00:00 2001 From: kloczek Date: Fri, 11 Feb 2000 09:21:09 +0000 Subject: [PATCH] - completly rewrited in PLD style. Changed files: SDL_image.spec -> 1.2 --- SDL_image.spec | 93 +++++++++++++++++++++++++++----------------------- 1 file changed, 50 insertions(+), 43 deletions(-) diff --git a/SDL_image.spec b/SDL_image.spec index c2113e6..d7bcd5f 100644 --- a/SDL_image.spec +++ b/SDL_image.spec @@ -1,66 +1,73 @@ -%define name SDL_image -%define version 1.0.4 -%define release 1 - -Summary: Simple DirectMedia Layer - Sample Image Loading Library -Name: %{name} -Version: %{version} -Release: %{release} -Source0: %{name}-%{version}.tar.gz -Copyright: LGPL -Group: System Environment/Libraries -BuildRoot: /var/tmp/%{name}-buildroot -Prefix: %{_prefix} -Packager: Hakan Tandogan -BuildRequires: SDL-devel -BuildRequires: libjpeg-devel -BuildRequires: libpng-devel -#BuildRequires: libtiff-devel +Summary: Simple DirectMedia Layer - Sample Image Loading Library +Name: SDL_image +Version: 1.0.4 +Release: 1 +License: LGPL +Group: Libraries +Source0: http://www.devolution.com/~slouken/SDL/projects/SDL_image/src/%{name}-%{version}.tar.gz +BuildRequires: SDL-devel >= 1.0.1 +BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +BuildRoot: /tmp/%{name}-%{version}-root + +%define _prefix /usr/X11R6 %description This is a simple library to load images of various formats as SDL surfaces. This library currently supports BMP, PPM, PCX, GIF, JPEG, and PNG formats. %package devel -Summary: Libraries, includes and more to develop SDL applications. -Group: Development/Libraries -Requires: %{name} -Requires: SDL-devel +Summary: Header files and more to develop SDL_image applications +Group: Development/Libraries +Group(fr): Development/Librairies +Group(pl): Programowanie/Biblioteki +Requires: %{name} = %{version} +Requires: SDL-devel %description devel -This is a simple library to load images of various formats as SDL surfaces. -This library currently supports BMP, PPM, PCX, GIF, JPEG, and PNG formats. +Header files and more to develop SDL_image applications. -%prep -rm -rf ${RPM_BUILD_ROOT} +%package static +Summary: Statis SDL_image libraries +Group: Development/Libraries +Group(fr): Development/Librairies +Group(pl): Programowanie/Biblioteki +Requires: %{name}-devel = %{version} +Requires: SDL-devel + +%description static +Statis SDL_image libraries. -%setup +%prep +%setup -q %build -CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} +LDFLAGS="-s"; export LDFLAGS +%configure + make %install rm -rf $RPM_BUILD_ROOT -make install prefix=$RPM_BUILD_ROOT/%{prefix} +make install DESTDIR=$RPM_BUILD_ROOT + +strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* + +gzip -9nf README CHANGES %clean rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root) -%doc README CHANGES COPYING -%{prefix}/bin/showimage -%{prefix}/lib/lib*.so.* -%{prefix}/lib/lib*.so +%defattr(644,root,root,755) +%{_bindir}/showimage +%attr(755,root,roo) %{_libdir}/lib*.so.*.* %files devel -%defattr(-,root,root) -%{prefix}/lib/*a -%{prefix}/include/SDL/ - -%changelog -* Wed Jan 19 2000 Sam Lantinga -- converted to get package information from configure -* Tue Jan 18 2000 Hakan Tandogan -- initial spec file +%defattr(644,root,root,755) +%doc *.gz +%attr(755,root,roo) %{_libdir}/lib*.so +%{_includedir}/SDL/* + +%files static +%attr(644,root,roo) %{_libdir}/lib*.a -- 2.44.0