Package SDL2_net: Specfile

Name: SDL2_net
Version: 2.0.1
Release: alt1

Summary: Simple DirectMedia Layer - Portable network library
License: zlib
Group: System/Libraries

Url: http://www.libsdl.org/projects/SDL_net/
Packager: Nazarov Denis <nenderus@altlinux.org>

Source0: http://www.libsdl.org/projects/SDL_net/release/%name-%version.tar.gz

BuildRequires: chrpath
BuildRequires: gcc-c++
BuildRequires: libSDL2-devel >= 2.0.1

%description
This is a portable network library for use with SDL.

%package -n lib%name
Summary: Simple DirectMedia Layer - Portable network library
Group: System/Libraries

%description -n lib%name
This is a portable network library for use with SDL.

%package -n lib%name-devel
Summary: Libraries and includes to develop SDL networked applications.
Group: Development/C
Requires: libSDL2-devel >= 2.0.1

%description -n lib%name-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

%build
./autogen.sh
%configure \
	--disable-gui \
	--disable-static
%make_build

%install
%makeinstall_std
%__rm -rf %buildroot%_libdir/lib%name.la
chrpath -d %buildroot%_libdir/lib%name-2.0.so.*

%files -n lib%name
%doc CHANGES.txt COPYING.txt README.txt
%_libdir/lib%name-2.0.so.*

%files -n lib%name-devel
%dir %_includedir/SDL2
%_includedir/SDL2/SDL_net.h
%_pkgconfigdir/%name.pc
%_libdir/lib%name.so

%changelog
* Fri Jan 22 2016 Nazarov Denis <nenderus@altlinux.org> 2.0.1-alt1
- Version 2.0.1

* Wed Feb 05 2014 Nazarov Denis <nenderus@altlinux.org> 2.0.0-alt0.M70T.1
- Build for branch t7

* Fri Nov 01 2013 Nazarov Denis <nenderus@altlinux.org> 2.0.0-alt1
- Initial build for ALT Linux