%define majver %(echo %version | cut -d. -f 1-2) Name: libSDL_net Version: 1.2.8 Release: 1mamba Summary: SDL portable network library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.libsdl.org/projects/SDL_net/ Source: http://www.libsdl.org/projects/SDL_net/release/SDL_net-%{version}.tar.gz License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libSDL-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description This is a portable network library for use with SDL. %package devel Summary: Libraries and includes to develop SDL networked applications Group: Development/Libraries Requires: %{name} = %{version} %description devel This is a portable network library for use with SDL. This is the libraries and include files you can use to develop SDL networked applications. %prep %setup -q -n SDL_net-%{version} %build %configure \ --disable-gui %make %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files %defattr(-,root,root) %{_libdir}//libSDL_net-%{majver}.so.* %doc COPYING %files devel %defattr(-,root,root) %{_libdir}/libSDL_net.a %{_libdir}/libSDL_net.so %{_libdir}/libSDL_net.la %{_includedir}/SDL/*.h %{_libdir}/pkgconfig/SDL_net.pc %doc CHANGES README %changelog * Wed Jan 25 2012 Automatic Build System 1.2.8-1mamba - automatic version update by autodist * Tue Jul 01 2008 Silvan Calarco 1.2.7-1mamba - update to 1.2.7 * Thu Oct 26 2006 Silvan Calarco 1.2.6-1qilnx - update to version 1.2.6 by autospec * Thu Nov 11 2004 Davide Madrisan 1.2.5-2qilnx - rebuild and moved to devel official QiLinux repository * Wed Sep 08 2004 Matteo Bernasconi 1.2.5-1qilnx - first build