]> git.pld-linux.org Git - packages/Arkhart.git/blobdiff - Arkhart.spec
- gl includes and libs are in /usr/lib
[packages/Arkhart.git] / Arkhart.spec
index 04003bb686edff09c3bea1407e956f4c37f928ad..0728cf2060cc91265f22bf61c3c5d17bbc052983 100644 (file)
-Summary:       Arkhart - A multiplayer roleplaying game.
-Summary(pl):   Arkhart - wieloosobowa gra fabularna.
+%define                editor_ver      0.1.3
+Summary:       Arkhart - A multiplayer roleplaying game
+Summary(pl):   Arkhart - wieloosobowa gra fabularna
 Name:          Arkhart
-Version:       20030210
+Version:       0.1.4
 Release:       1
 License:       GPL
-Group:         Games
-Source0:       http://arkhart.nekeme.net/Tmp/Ark.tar.bz2
-Source1:       http://arkhart.nekeme.net/Tmp/Arkhart-data.tar.bz2
-Source2:       http://arkhart.nekeme.net/Tmp/Worlded.tar.bz2
+Group:         X11/Applications/Games
+Source0:       http://arkhart.nekeme.net/download/releases/ark-%{version}.tar.gz
+# Source0-md5: c0f6049108351543372a6055238d12c6
+Source1:       http://arkhart.nekeme.net/download/releases/Arkhart-data-%{version}.tar.gz
+# Source1-md5: 82a208fc82f3cd57c6a78a258336e9db
+Source2:       http://arkhart.nekeme.net/download/releases/worlded-%{editor_ver}.tar.gz
+# Source2-md5: 0fb9cc39c01e024b4b69dfd1eb394f71
 URL:           http://arkhart.nekeme.net/en/?name=Home
-#Patch0:               
-BuildRequires: lua40-devel >= 4.0.1
 BuildRequires: SDL_mixer-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: libtool
+BuildRequires: lua40-devel >= 4.0.1
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
+Arkhart - A multiplayer roleplaying game.
 
 %description -l pl
+Arkhart - wieloosobowa gra fabularna.
+
+%package data
+Summary:       Arkhart data
+Summary(pl):   Dane dla gry Arkhart
+Group:         X11/Applications/Games
+
+%description data
+Arkhart data.
+
+%description data -l pl
+Dane dla gry Arkhart.
+
+%package server
+Summary:       Arkhart server
+Summary(pl):   Serwer gry Arkhart
+Group:         X11/Applications/Games
+Requires:      %{name} = %{version}
+
+%description server
+Arkhart server.
+
+%description server -l pl
+Serwer gry Arkhart.
+
+%package client
+Summary:       Arkhart client
+Summary(pl):   Klient gry Arkhart
+Group:         X11/Applications/Games
+Requires:      %{name} = %{version}
+
+%description client
+Arkhart client.
+
+%description client -l pl
+Klient gry Arkhart.
+
+%package devel
+Summary:       Arkhart program library headers
+Summary(pl):   Pliki nag³ówkowe gry Arkhart
+Group:         Development/Libraries
+
+%description devel
+Arkhart program library headers.
+
+%description devel -l pl
+Pliki nag³ówkowe gry Arkhart.
+
+%package static
+Summary:       Static library for Arkhart games
+Summary(pl):   Biblioteki statyczne dla gry Arkhart
+Group:         Development/Libraries
+
+%description static
+Static library for Arkhart games.
+
+%description static -l pl
+Biblioteki statyczne dla gry Arkhart.
+
+%package WorldEd
+Summary:       Arkhart World editor
+Summary(pl):   Edytor ¶wiatów dla gry Arkhart
+Group:         X11/Applications/Games
+
+%description WorldEd
+Arkhart World editor.
+
+%description WorldEd -l pl
+Edytor ¶wiatów dla gry Arkhart.
 
 %prep
-%setup -q -n Ark
-#%patch0 -p0
+%setup -q -n ark-%{version}
 
 %build
+CPPFLAGS="-I/usr/X11R6/include"
+LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
+rm -f missing
+%{__libtoolize}
 %{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+cd libltdl
 %{__libtoolize}
+%{__aclocal}
 %{__autoconf}
+%{__autoheader}
+ln -s ../ltmain.sh .
+%{__automake}
+cd ..
 %configure \
-       --with-gl-libs=/usr/X11R6/lib \
-       --with-gl-inc=/usr/X11R6/include
+       --with-lua-lib=/usr/lib \
+       --with-lua-inc=/usr/include/lua40
 
-#%{__make}
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
 
-%find_lang %{name}
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files -f %{name}.lang
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/widgettest
+%attr(755,root,root) %{_libdir}/libArk*.so.*.*.*
+
+%files client
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/arkclient
+
+#%files data
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/ark-config
+%attr(755,root,root) %{_libdir}/libArk*.so
+%{_libdir}/libArk*.la
+%{_includedir}/Ark
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/*.a
+
+#%files WorldEd
+
+%files server
 %defattr(644,root,root,755)
-%doc {README,COPYING,INSTALL,TODO,ChangeLog,FAQ}.gz tutorial/*
+%attr(755,root,root) %{_bindir}/arkhartd
This page took 0.064049 seconds and 4 git commands to generate.