2 # NOTE: RakNet 3.x is available, but it is not under GPL License
4 %define ver %(echo %{version} | tr . _)
5 Summary: Networking engine for game programmers
6 Summary(pl.UTF-8): Silnik sieciowy dla programistów gier
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
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 RakNet is open source, networking engine for game programmers.
23 %description -l pl.UTF-8
24 RakNet jest otwartym, sieciowym silnikiem dla programistów gier.
27 Summary: Header files for RakNet library
28 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki RakNet
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
33 Header files for RakNet library.
35 %description devel -l pl.UTF-8
36 Pliki nagłówkowe biblioteki RakNet.
39 %setup -q -n Raknet%{ver}
46 CFLAGS="%{rpmcflags} -fPIC" \
47 LDFLAGS="%{rpmldflags}"
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_libdir}/libraknet.so.*.*.*
62 %attr(755,root,root) %{_libdir}/librakvoice.so.*.*.*
65 %defattr(644,root,root,755)
66 %{_libdir}/libraknet.so
67 %{_libdir}/librakvoice.so
68 %{_pkgconfigdir}/RakNet.pc