From 49faff895beb4033ee97ab2d2335a7a31eab14ed Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 14 Jun 2014 08:01:26 +0200 Subject: [PATCH] - new --- SDL2_net.spec | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 SDL2_net.spec diff --git a/SDL2_net.spec b/SDL2_net.spec new file mode 100644 index 0000000..b084d0b --- /dev/null +++ b/SDL2_net.spec @@ -0,0 +1,109 @@ +Summary: Simple DirectMedia Layer 2 - network +Summary(pl.UTF-8): Biblioteka obsługi sieci w SDL2 +Summary(pt_BR.UTF-8): Simple DirectMedia Layer 2 - Biblioteca de rede portável +Name: SDL2_net +Version: 2.0.0 +Release: 1 +License: Zlib-like +Group: Libraries +Source0: http://www.libsdl.org/projects/SDL_net/release/%{name}-%{version}.tar.gz +# Source0-md5: 83bcd0e67796b81b35b08a014c677200 +URL: http://www.libsdl.org/projects/SDL_net/ +BuildRequires: SDL2-devel >= 2.0.0 +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool >= 2:2.0 +Requires: SDL2 >= 2.0.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This is an example portable network library for use with SDL2. 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.UTF-8 +Przykładowa biblioteka obsługi sieci korzystająca z SDL2. + +%description -l pt_BR.UTF-8 +Esta é uma biblioteca portável de rede para uso com o SDL2. + +%package devel +Summary: Header files and more to develop SDL2_net applications +Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL2_net +Summary(pt_BR.UTF-8): Cabeçalhos para desenvolver programas utilizando a SDL2_net +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: SDL2-devel >= 2.0.0 + +%description devel +This package contains the headers that programmers will need to +develop applications which will use SDL2_net. + +%description devel -l pl.UTF-8 +Pakiet ten zawiera pliki nagłówkowepotzrebne przy rozwijania aplikacji +używających SDL2_net. + +%description devel -l pt_BR.UTF-8 +Este pacote contém os cabeçalhos que programadores vão precisar para +desenvolver aplicações utilizando a SDL2_net. + +%package static +Summary: Static SDL2_net libraries +Summary(pl.UTF-8): Statyczne biblioteki SDL2_net +Summary(pt_BR.UTF-8): Biblioteca estática para desenvolvimento utilizando a SDL2_net +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static SDL2_net libraries. + +%description static -l pl.UTF-8 +Statyczne biblioteki SDL2_net. + +%description static -l pt_BR.UTF-8 +Este pacote contém a biblioteca estática que programadores vão +precisar para desenvolver aplicações linkados estaticamente com a +SDL2_net. + +%prep +%setup -q + +%build +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__automake} +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +# obsoleted by pkg-config +%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc CHANGES.txt COPYING.txt README.txt +%attr(755,root,root) %{_libdir}/libSDL2_net-2.0.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libSDL2_net-2.0.so.0 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libSDL2_net.so +%{_includedir}/SDL2/SDL_net.h +%{_pkgconfigdir}/SDL2_net.pc + +%files static +%defattr(644,root,root,755) +%{_libdir}/libSDL2_net.a -- 2.43.0