]>
Commit | Line | Data |
---|---|---|
ecc1e9ef | 1 | Summary: Simple DirectMedia Layer - network |
2 | Name: SDL_net | |
3 | Version: 1.1.1 | |
4 | Release: 1 | |
5 | License: LGPL | |
6 | Group: Libraries | |
7 | Source0: http://www.libsdl.org/projects/SDL_net/src/%{name}-%{version}.tar.gz | |
8 | URL: http://www.devolution.com/~slouken/SDL/projects/SDL_net/ | |
9 | BuildRequires: SDL-devel >= 1.0.1 | |
10 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
e6f01e85 | 11 | |
12 | %description | |
ecc1e9ef | 13 | This is an example portable network library for use with SDL. Note |
14 | that this isn't necessarily how you would want to write a chat | |
15 | program, but it demonstrates how to use the basic features of the | |
16 | network and GUI libraries. | |
e6f01e85 | 17 | |
18 | %package devel | |
ecc1e9ef | 19 | Summary: Header files and more to develop SDL_net applications |
20 | Group: Development/Libraries | |
21 | Group(fr): Development/Librairies | |
22 | Group(pl): Programowanie/Biblioteki | |
23 | Requires: %{name} = %{version} | |
24 | Requires: SDL-devel | |
e6f01e85 | 25 | |
26 | %description devel | |
ecc1e9ef | 27 | Header files and more to develop SDL_net applications. |
e6f01e85 | 28 | |
ecc1e9ef | 29 | %package static |
30 | Summary: Statis SDL_net libraries | |
31 | Group: Development/Libraries | |
32 | Group(fr): Development/Librairies | |
33 | Group(pl): Programowanie/Biblioteki | |
34 | Requires: %{name}-devel = %{version} | |
e6f01e85 | 35 | |
ecc1e9ef | 36 | %description static |
37 | Statis SDL_net libraries. | |
e6f01e85 | 38 | |
ecc1e9ef | 39 | %prep |
40 | %setup -q | |
e6f01e85 | 41 | |
42 | %build | |
ecc1e9ef | 43 | LDFLAGS="-s"; export LDFLAGS |
e6f01e85 | 44 | %configure |
ecc1e9ef | 45 | %{__make} |
e6f01e85 | 46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
ecc1e9ef | 49 | |
50 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
53 | ||
54 | gzip -9nf README | |
e6f01e85 | 55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
ecc1e9ef | 59 | %post -p /sbin/ldconfig |
e6f01e85 | 60 | %postun -p /sbin/ldconfig |
61 | ||
62 | %files | |
ecc1e9ef | 63 | %defattr(644,root,root,755) |
e6f01e85 | 64 | %doc README COPYING |
ecc1e9ef | 65 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
e6f01e85 | 66 | |
67 | %files devel | |
ecc1e9ef | 68 | %defattr(644,root,root,755) |
69 | %doc *.gz | |
70 | %attr(755,root,root) %{_libdir}/lib*.so | |
71 | %attr(755,root,root) %{_libdir}/lib*.la | |
72 | %{_includedir}/SDL/* | |
73 | ||
74 | %files static | |
75 | %defattr(644,root,root,755) | |
76 | %{_libdir}/lib*.a |