X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=SDL_ttf.spec;h=df4b99a23c7b453d73e20ec58594cf8c1a88d0ee;hb=31d41575114f0ee8ff362c35445295430bde0289;hp=8821db74f0921972558d5f1390b5938238268c6f;hpb=0eb88c47f0d5e1b256232ba6ddd313976049f3a2;p=packages%2FSDL_ttf.git diff --git a/SDL_ttf.spec b/SDL_ttf.spec index 8821db7..df4b99a 100644 --- a/SDL_ttf.spec +++ b/SDL_ttf.spec @@ -1,88 +1,79 @@ -%define name SDL_ttf -%define version 1.0.1 - -Summary: Simple DirectMedia Layer - ttf handling -Name: %{name} -Version: %{version} -Release: 2mdk -Source0: %{name}-%{version}.tar.bz2 -Copyright: LGPL -Group: System/Libraries -BuildRoot: %{_tmppath}/%{name}-buildroot -URL: http://www.devolution.com/~slouken/SDL/projects/SDL_ttf/ -Prefix: %{_prefix} -Requires: SDL >= 1.0 +Summary: Simple DirectMedia Layer - ttf handling +Name: SDL_ttf +Version: 1.2.1 +Release: 1 +License: LGPL +Group: Libraries +Source0: http://www.devolution.com/~slouken/SDL/projects/SDL_ttf/src/%{name}-%{version}.tar.gz +URL: http://www.devolution.com/~slouken/SDL/projects/SDL_ttf/ +BuildRequires: freetype-devel +BuildRequires: SDL-devel >= 1.0.1 +BuildRequires: XFree86-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _prefix /usr/X11R6 %description -This is a sample library which allows you to use TrueType fonts in your SDL -applications. It comes with an example program "showfont" which displays an -example string for a given TrueType font file. - -Warning! TrueType font decoding is under patent, and software using this -library may be in violation of this patent. Use at your own risk! See -http://www.freetype.org/ for details. +This is a sample library which allows you to use TrueType fonts in +your SDL applications. It comes with an example program "showfont" +which displays an example string for a given TrueType font file. %package devel -Summary: Libraries, includes and more to develop SDL applications. -Group: Development/C -Requires: %{name} -Requires: SDL-devel +Summary: Header files and more to develop SDL_ttf applications +Group: Development/Libraries +Group(fr): Development/Librairies +Group(pl): Programowanie/Biblioteki +Requires: %{name} = %{version} +Requires: SDL-devel %description devel -This is a sample library which allows you to use TrueType fonts in your SDL -applications. It comes with an example program "showfont" which displays an -example string for a given TrueType font file. +Header files and more to develop SDL_ttf applications. -Warning! TrueType font decoding is under patent, and software using this -library may be in violation of this patent. Use at your own risk! See -http://www.freetype.org/ for details. +%package static +Summary: Statis SDL_ttf libraries +Group: Development/Libraries +Group(fr): Development/Librairies +Group(pl): Programowanie/Biblioteki +Requires: %{name}-devel = %{version} -%prep -rm -rf ${RPM_BUILD_ROOT} +%description static +Statis SDL_ttf libraries. -%setup -#%patch -p1 +%prep +%setup -q %build -CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} -make +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 -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %files -%defattr(-,root,root) -%doc README COPYING -%{prefix}/bin/showfont -%{prefix}/lib/lib*.so.* +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/showfont +%attr(755,root,root) %{_libdir}/lib*.so.*.* %files devel -%defattr(-,root,root) -%doc README COPYING CHANGES -%{prefix}/lib/*a -%{prefix}/include/SDL/ -%{prefix}/lib/lib*.so - -%changelog -* Tue Apr 11 2000 Guillaume Cottenceau 1.0.1-2mdk -- added url -- fixed group -- some minor package build fixes -- built against stable SDL version, previous was using 1.1.x devel - -* Fri Feb 11 2000 Lenny Cartier -- new in contribs -- used specfile provided by Hakan Tandogan - -* Sun Jan 16 2000 Hakan Tandogan -- initial spec file +%defattr(644,root,root,755) +%doc *.gz +%{_includedir}/SDL/* +%attr(755,root,root) %{_libdir}/lib*.so +%attr(755,root,root) %{_libdir}/lib*.la + +%files static +%defattr(644,root,root,755) +%{_libdir}/lib*.a