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