-%define name SDL_net
-%define version 1.0.2
-%define release 1mdk
-
-Summary: Simple DirectMedia Layer - network
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Source0: %{name}-%{version}.tar.bz2
-Patch0: SDL_net-1.0.1-newm4libtoolize.patch.bz2
-Copyright: LGPL
-Group: System/Libraries
-BuildRoot: %{_tmppath}/%{name}-buildroot
-URL: http://www.devolution.com/~slouken/SDL/projects/SDL_net/
-Prefix: %{_prefix}
-Requires: SDL >= 1.0
+Summary: Simple DirectMedia Layer - network
+Summary(pl): Biblioteka obs³ugi sieci w SDL
+Name: SDL_net
+Version: 1.2.4
+Release: 2
+License: LGPL
+Group: Libraries
+Source0: http://www.libsdl.org/projects/SDL_net/release/%{name}-%{version}.tar.gz
+URL: http://www.libsdl.org/projects/SDL_net/
+BuildRequires: SDL-devel >= 1.2.0
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes: libSDL_net1.2
+
+%define _prefix /usr/X11R6
%description
-This is an example portable network library for use with SDL. Note that this
-isn't necessarily how you would want to write a chat program, but it
-demonstrates how to use the basic features of the network and GUI libraries.
+This is an example portable network library for use with SDL. Note
+that this isn't necessarily how you would want to write a chat
+program, but it demonstrates how to use the basic features of the
+network and GUI libraries.
+
+%description -l pl
+Przyk³adowa biblioteka obs³ugi sieci korzystaj±ca z SDL.
%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_net applications
+Summary(pl): Pliki na³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_net
+Group: Development/Libraries
+Requires: %{name} = %{version}
+Requires: SDL-devel
+Obsoletes: libSDL_net1.2-devel
%description devel
-This is an example portable network library for use with SDL. Note that this
-isn't necessarily how you would want to write a chat program, but it
-demonstrates how to use the basic features of the network and GUI libraries.
+Header files and more to develop SDL_net applications.
-The API can be found in the file SDL_net.h
+%description -l pl devel
+Pliki na³ówkowe do rozwijania aplikacji u¿ywaj±cych SDL_net.
-%prep
-rm -rf ${RPM_BUILD_ROOT}
+%package static
+Summary: Static SDL_net libraries
+Summary(pl): Statyczne biblioteki SDL_net
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}
+
+%description static
+Statis SDL_net libraries.
+
+%description -l pl static
+Statyczne biblioteki SDL_net.
-%setup
-%patch0 -p1
+%prep
+%setup -q
%build
+rm -f missing
+libtoolize --copy --force
aclocal
-autoconf
+%{__autoconf}
+%{__automake}
%configure
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%makeinstall
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+gzip -9nf README
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-
+%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
-%defattr(-,root,root)
-%doc README COPYING
-%{prefix}/lib/lib*.so.*
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
%files devel
-%defattr(-,root,root)
-%doc README COPYING
-%{prefix}/lib/*a
-%{prefix}/include/SDL/
-%{prefix}/lib/lib*.so
-
-%changelog
-* Fri Jun 23 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.0.2-1mdk
-- v1.0.2
-
-* Tue Jun 20 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.0.1-5mdk
-- Use makeinstall macros.
-
-* Tue May 23 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.0.1-4mdk
-- Fix m4 macros with new libtoolize.
-- Use configure macro.
-
-* Tue Apr 11 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 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 <lenny@mandrakesoft.com>
-- new in contribs
-- used srpm provided by Hakan Tandogan <hakan@iconsult.com>
-
-* Sun Jan 16 2000 Hakan Tandogan <hakan@iconsult.com>
-- initial spec file
+%defattr(644,root,root,755)
+%doc README.gz
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.la
+%{_includedir}/SDL/*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a