[packages/fairymax] - new

qboosh qboosh at pld-linux.org
Fri Sep 2 22:46:12 CEST 2016


commit 3c57c04ee6375e24152f20e0489cb81934bae4f7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Sep 2 22:47:21 2016 +0200

    - new

 fairymax.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)
---
diff --git a/fairymax.spec b/fairymax.spec
new file mode 100644
index 0000000..521295e
--- /dev/null
+++ b/fairymax.spec
@@ -0,0 +1,64 @@
+Summary:	AI for playing user-defined Chess variants
+Summary(pl.UTF-8):	AI do grania w zdefiniowane przez użytkownika warianty szachów
+Name:		fairymax
+Version:	4.8V
+Release:	1
+License:	Free
+Group:		Applications/Games
+# 4.8S from web page
+#Source0:	http://hgm.nubati.net/fairymax.tar.gz
+# newer one from git
+Source0:	http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=fairymax.git;a=snapshot;h=refs/tags/%{version};sf=tgz;dummy=/%{name}-%{version}.tar.gz
+# Source0-md5:	c91855dc5ea5b38735fe8899794c1686
+URL:		http://home.hccnet.nl/h.g.muller/CVfairy.html
+BuildRequires:	perl-tools-pod
+Requires:	xboard >= 4.6.0
+Provides:	chess_backend
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_bindir		%{_prefix}/games
+
+%description
+Fairy-Max is an AI, also called 'engine', for playing Chess variants.
+
+%description -l pl.UTF-8
+Fairy-Max to AI (sztuczna inteligencja), zwana także "silnikiem" do
+gry w różne warianty szachów.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} %{rpmcppflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_prefix}/games
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+echo '.so fairymax.6' >$RPM_BUILD_ROOT%{_mandir}/man6/maxqi.6
+echo '.so fairymax.6' >$RPM_BUILD_ROOT%{_mandir}/man6/shamax.6
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CVfairy.html README changelog copyright
+%attr(755,root,root) %{_bindir}/fairymax
+%attr(755,root,root) %{_bindir}/maxqi
+%attr(755,root,root) %{_bindir}/shamax
+%{_datadir}/games/fairymax
+%{_datadir}/games/plugins/logos/fairymax.png
+%{_datadir}/games/plugins/logos/maxqi.png
+%{_datadir}/games/plugins/logos/shamax.png
+%{_datadir}/games/plugins/xboard/fairymax.eng
+%{_datadir}/games/plugins/xboard/maxqi.eng
+%{_datadir}/games/plugins/xboard/shamax.eng
+%{_mandir}/man6/fairymax.6*
+%{_mandir}/man6/maxqi.6*
+%{_mandir}/man6/shamax.6*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fairymax.git/commitdiff/3c57c04ee6375e24152f20e0489cb81934bae4f7



More information about the pld-cvs-commit mailing list