1%define name @PACKAGE@ 2%define version @VERSION@ 3%define release 1 4 5Summary: Simple DirectMedia Layer - Sample TrueType Font Library 6Name: %{name} 7Version: %{version} 8Release: %{release} 9Source0: %{name}-%{version}.tar.gz 10License: LGPL 11Group: System Environment/Libraries 12BuildRoot: /var/tmp/%{name}-buildroot 13Prefix: %{_prefix} 14Packager: Hakan Tandogan <hakan@iconsult.com> 15#BuildRequires: SDL-devel 16#BuildRequires: freetype-devel 17 18%description 19This library allows you to use TrueType fonts to render text in SDL 20applications. 21 22%package devel 23Summary: Libraries, includes and more to develop SDL applications. 24Group: Development/Libraries 25Requires: %{name} 26Requires: SDL-devel 27 28%description devel 29This library allows you to use TrueType fonts to render text in SDL 30applications. 31 32%prep 33rm -rf ${RPM_BUILD_ROOT} 34 35%setup 36 37%build 38CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} 39make 40 41%install 42rm -rf $RPM_BUILD_ROOT 43make install prefix=$RPM_BUILD_ROOT/%{prefix} 44 45%clean 46rm -rf $RPM_BUILD_ROOT 47 48%files 49%defattr(-,root,root) 50%doc README CHANGES COPYING 51%{prefix}/lib/lib*.so.* 52 53%files devel 54%defattr(-,root,root) 55%{prefix}/lib/lib*.a 56%{prefix}/lib/lib*.la 57%{prefix}/lib/lib*.so 58%{prefix}/include/SDL/ 59%{prefix}/lib/pkgconfig/*.pc 60 61%changelog 62* Wed Jan 19 2000 Sam Lantinga 63- converted to get package information from configure 64* Sun Jan 16 2000 Hakan Tandogan <hakan@iconsult.com> 65- initial spec file 66 67