]> git.pld-linux.org Git - packages/Arkhart.git/blobdiff - Arkhart.spec
- BR: libtool
[packages/Arkhart.git] / Arkhart.spec
index 8a1f667b1a409c07b61b954b13946f5ebbec47ce..17fc8b80835cb1eac44f802fa0eff6fb1ff14948 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:         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: zlib-devel
-BuildRequires: libpng-devel
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: libjpeg-devel
-#BuildRequires:        -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:         Games
+Group:         Applications/Games
+
 %description data
-%description -l pl data
+Arkhart data.
+
+%description data -l pl
+Dane dla gry Arkhart.
 
 %package server
 Summary:       Arkhart server
 Summary(pl):   Serwer gry Arkhart
-Group:         Games
-Requires:      %{name}
+Group:         Applications/Games
+Requires:      %{name} = %{version}
+
 %description server
-%description -l pl server
+Arkhart server.
+
+%description server -l pl
+Serwer gry Arkhart.
 
 %package client
 Summary:       Arkhart client
 Summary(pl):   Klient gry Arkhart
-Group:         Games
-Requires:      %{name}
+Group:         Applications/Games
+Requires:      %{name} = %{version}
+
 %description client
-%description -l pl client
+Arkhart client.
+
+%description client -l pl
+Klient gry Arkhart.
 
 %package devel
 Summary:       Arkhart program library headers
-Summary(pl):   Pliki naglowkowe gry Arkhart
-Group:         Games
+Summary(pl):   Pliki nag³ówkowe gry Arkhart
+Group:         Development/Libraries
+
 %description devel
-%description -l pl devel
+Arkhart program library headers.
+
+%description devel -l pl
+Pliki nag³ówkowe gry Arkhart.
 
 %package static
-Summary:       Static library for Arjhart games
+Summary:       Static library for Arkhart games
 Summary(pl):   Biblioteki statyczne dla gry Arkhart
-Group:         Games
+Group:         Development/Libraries
+
 %description static
-%description -l pl static
+Static library for Arkhart games.
+
+%description static -l pl
+Biblioteki statyczne dla gry Arkhart.
 
 %package WorldEd
 Summary:       Arkhart World editor
-Summary(pl):   Edytor swiatow dla gry Arkhart
-Group:         Games
+Summary(pl):   Edytor ¶wiatów dla gry Arkhart
+Group:         Applications/Games
+
 %description WorldEd
-%description -l pl 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
-./configure \
+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-lua-lib=/usr/lib \
        --with-lua-inc=/usr/include \
        --with-gl-libs=/usr/X11R6/lib \
@@ -81,33 +127,40 @@ Group:             Games
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} DESTDIR=$RPM_BUILD_ROOT prefix=/usr install
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/ark-config
 %attr(755,root,root) %{_bindir}/widgettest
-%attr(644,root,root) %{_libdir}/libArk*.so.*.*.*
-%attr(644,root,root) %{_libdir}/libArk*.la
+%attr(755,root,root) %{_libdir}/libArk*.so.*.*.*
 
 %files client
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/arkclient
 
-%files data
+#%files data
 
 %files devel
-%attr(644,root,root) %{_includedir}/Ark/*
+%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
-%attr(644,root,root) %{_libdir}/*.a
+%defattr(644,root,root,755)
+%{_libdir}/*.a
 
-%files WorldEd
+#%files WorldEd
 
 %files server
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/arkhartd
This page took 0.036674 seconds and 4 git commands to generate.