]>
Commit | Line | Data |
---|---|---|
49faff89 JB |
1 | Summary: Simple DirectMedia Layer 2 - network |
2 | Summary(pl.UTF-8): Biblioteka obsługi sieci w SDL2 | |
3 | Summary(pt_BR.UTF-8): Simple DirectMedia Layer 2 - Biblioteca de rede portável | |
4 | Name: SDL2_net | |
30e0dbab | 5 | Version: 2.0.1 |
49faff89 JB |
6 | Release: 1 |
7 | License: Zlib-like | |
8 | Group: Libraries | |
9 | Source0: http://www.libsdl.org/projects/SDL_net/release/%{name}-%{version}.tar.gz | |
30e0dbab | 10 | # Source0-md5: 5c1d9d1cfa63301b141cb5c0de2ea7c4 |
49faff89 JB |
11 | URL: http://www.libsdl.org/projects/SDL_net/ |
12 | BuildRequires: SDL2-devel >= 2.0.0 | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | BuildRequires: libtool >= 2:2.0 | |
16 | Requires: SDL2 >= 2.0.0 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | This is an example portable network library for use with SDL2. Note | |
21 | that this isn't necessarily how you would want to write a chat | |
22 | program, but it demonstrates how to use the basic features of the | |
23 | network and GUI libraries. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Przykładowa biblioteka obsługi sieci korzystająca z SDL2. | |
27 | ||
28 | %description -l pt_BR.UTF-8 | |
29 | Esta é uma biblioteca portável de rede para uso com o SDL2. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files and more to develop SDL2_net applications | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL2_net | |
34 | Summary(pt_BR.UTF-8): Cabeçalhos para desenvolver programas utilizando a SDL2_net | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: SDL2-devel >= 2.0.0 | |
38 | ||
39 | %description devel | |
40 | This package contains the headers that programmers will need to | |
41 | develop applications which will use SDL2_net. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pakiet ten zawiera pliki nagłówkowepotzrebne przy rozwijania aplikacji | |
45 | używających SDL2_net. | |
46 | ||
47 | %description devel -l pt_BR.UTF-8 | |
48 | Este pacote contém os cabeçalhos que programadores vão precisar para | |
49 | desenvolver aplicações utilizando a SDL2_net. | |
50 | ||
51 | %package static | |
52 | Summary: Static SDL2_net libraries | |
53 | Summary(pl.UTF-8): Statyczne biblioteki SDL2_net | |
54 | Summary(pt_BR.UTF-8): Biblioteca estática para desenvolvimento utilizando a SDL2_net | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static SDL2_net libraries. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczne biblioteki SDL2_net. | |
63 | ||
64 | %description static -l pt_BR.UTF-8 | |
65 | Este pacote contém a biblioteca estática que programadores vão | |
66 | precisar para desenvolver aplicações linkados estaticamente com a | |
67 | SDL2_net. | |
68 | ||
69 | %prep | |
70 | %setup -q | |
71 | ||
72 | %build | |
73 | %{__libtoolize} | |
74 | %{__aclocal} | |
75 | %{__autoconf} | |
76 | %{__automake} | |
77 | %configure | |
78 | %{__make} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | # obsoleted by pkg-config | |
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc CHANGES.txt COPYING.txt README.txt | |
98 | %attr(755,root,root) %{_libdir}/libSDL2_net-2.0.so.*.*.* | |
99 | %attr(755,root,root) %ghost %{_libdir}/libSDL2_net-2.0.so.0 | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libSDL2_net.so | |
104 | %{_includedir}/SDL2/SDL_net.h | |
105 | %{_pkgconfigdir}/SDL2_net.pc | |
106 | ||
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libSDL2_net.a |