]> git.pld-linux.org Git - packages/brutalchess.git/commitdiff
- initial release
authorlisu <lisu@pld-linux.org>
Tue, 26 Dec 2006 11:14:59 +0000 (11:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    brutalchess.spec -> 1.1

brutalchess.spec [new file with mode: 0644]

diff --git a/brutalchess.spec b/brutalchess.spec
new file mode 100644 (file)
index 0000000..60aa6c9
--- /dev/null
@@ -0,0 +1,66 @@
+%define        _alpha  alpha
+Summary:       3D chess game for X-Window
+Summary(pl):   Trójwymiarowe szachy dla X-Window
+Name:          brutalchess
+Version:       0.5
+Release:       1
+License:       GPL v2+
+Group:         X11/Applications/Games
+Source0:       http://dl.sourceforge.net/brutalchess/%{name}-%{_alpha}-%{version}-src.tar.gz
+# Source0-md5: 7f3e88ddf94eb7830fd5fb1219ed5922
+Source1:       %{name}.desktop
+Source2:       %{name}.xpm
+URL:           http://brutalchess.sourceforge.net/
+BuildRequires: SDL-devel
+BuildRequires: SDL_image-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: freetype
+BuildRequires: sed >= 4.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Brutal Chess features full 3D graphics, an advanced engine, and
+several different levels of intelligent AI.
+
+%description -l pl
+Brutal Chess cechuje pe³na trójwymiarowa grafika, zaawansowany silnik
+i kilka ró¿nych poziomów sztucznej inteligencji.
+
+%prep
+%setup -q -n %{name}
+%{__sed} -i 's@../art@%{_datadir}/brutalchess/art@' src/{basicset.cpp,gamecore.cpp,granitetheme.cpp}
+%{__sed} -i 's@../fonts@%{_datadir}/brutalchess/fonts@' src/gamecore.cpp
+%{__sed} -i 's@../models@%{_datadir}/brutalchess/models@' src/{basicset.cpp,gamecore.cpp}
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_desktopdir},%{_pixmapsdir}}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install        %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+cp -r art  $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -r fonts $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -r models $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/%{name}
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.xpm
This page took 0.068323 seconds and 4 git commands to generate.