]>
Commit | Line | Data |
---|---|---|
a2164dd8 ER |
1 | # NOTE |
2 | # - RakNet 3.x is available, but it is not under GPL License | |
a0fdb1cd | 3 | # |
4 | %define ver %(echo %{version} | tr . _) | |
5 | Summary: Networking engine for game programmers | |
6 | Summary(pl.UTF-8): Silnik sieciowy dla programistów gier | |
7 | Name: RakNet | |
8 | Version: 2.0 | |
9 | Release: 1 | |
10 | License: GPL v2 | |
11 | Group: Libraries | |
12 | Source0: http://www.sumwars.org/data/Raknet%{ver}.tar.gz | |
13 | # Source0-md5 bfdc95cf31d1381fb97631a3f07bc6c8 | |
14 | Patch0: %{name}-destdir.patch | |
15 | Patch1: %{name}-flags.patch | |
16 | URL: http://www.jenkinssoftware.com/ | |
17 | BuildRequires: pkgconfig | |
a2164dd8 ER |
18 | BuildRequires: rpmbuild(macros) >= 1.553 |
19 | BuildRequires: sed >= 4.0 | |
a0fdb1cd | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | RakNet is open source, networking engine for game programmers. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | RakNet jest otwartym, sieciowym silnikiem dla programistów gier. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files for RakNet library | |
30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki RakNet | |
31 | Group: Development/Libraries | |
32 | Requires: %{name} = %{version}-%{release} | |
33 | ||
34 | %description devel | |
35 | Header files for RakNet library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki RakNet. | |
39 | ||
40 | %prep | |
41 | %setup -q -n Raknet%{ver} | |
a2164dd8 | 42 | %undos Makefile Source/Makefile Source/RakVoice/Makefile |
a0fdb1cd | 43 | %patch0 -p1 |
44 | %patch1 -p1 | |
45 | ||
46 | %build | |
47 | %{__make} \ | |
48 | CC="%{__cc}" \ | |
49 | CFLAGS="%{rpmcflags} -fPIC" \ | |
50 | LDFLAGS="%{rpmldflags}" | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %{_includedir}/raknet | |
64 | %attr(755,root,root) %{_libdir}/libraknet.so.*.*.* | |
65 | %attr(755,root,root) %{_libdir}/librakvoice.so.*.*.* | |
66 | ||
67 | %files devel | |
68 | %defattr(644,root,root,755) | |
69 | %{_libdir}/libraknet.so | |
70 | %{_libdir}/librakvoice.so | |
71 | %{_pkgconfigdir}/RakNet.pc |