]> git.pld-linux.org Git - packages/RakNet.git/blame - RakNet.spec
- undos fun
[packages/RakNet.git] / RakNet.spec
CommitLineData
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 . _)
5Summary: Networking engine for game programmers
6Summary(pl.UTF-8): Silnik sieciowy dla programistów gier
7Name: RakNet
8Version: 2.0
9Release: 1
10License: GPL v2
11Group: Libraries
12Source0: http://www.sumwars.org/data/Raknet%{ver}.tar.gz
13# Source0-md5 bfdc95cf31d1381fb97631a3f07bc6c8
14Patch0: %{name}-destdir.patch
15Patch1: %{name}-flags.patch
16URL: http://www.jenkinssoftware.com/
17BuildRequires: pkgconfig
a2164dd8
ER
18BuildRequires: rpmbuild(macros) >= 1.553
19BuildRequires: sed >= 4.0
a0fdb1cd 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23RakNet is open source, networking engine for game programmers.
24
25%description -l pl.UTF-8
26RakNet jest otwartym, sieciowym silnikiem dla programistów gier.
27
28%package devel
29Summary: Header files for RakNet library
30Summary(pl.UTF-8): Pliki nagłówkowe biblioteki RakNet
31Group: Development/Libraries
32Requires: %{name} = %{version}-%{release}
33
34%description devel
35Header files for RakNet library.
36
37%description devel -l pl.UTF-8
38Pliki 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
53rm -rf $RPM_BUILD_ROOT
54
55%{__make} install \
56 DESTDIR=$RPM_BUILD_ROOT
57
58%clean
59rm -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
This page took 0.064625 seconds and 4 git commands to generate.