Author: baggins Date: Thu Jan 6 13:01:17 2011 GMT Module: packages Tag: HEAD ---- Log message: - initial revision
---- Files affected: packages/mj: mj-man.patch (NONE -> 1.1) (NEW), mj.desktop (NONE -> 1.1) (NEW), mj.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/mj/mj-man.patch diff -u /dev/null packages/mj/mj-man.patch:1.1 --- /dev/null Thu Jan 6 14:01:17 2011 +++ packages/mj/mj-man.patch Thu Jan 6 14:01:12 2011 @@ -0,0 +1,53 @@ +--- mah-jong-1.10.orig/xmj.man ++++ mah-jong-1.10/xmj.man +@@ -10,7 +10,7 @@ + .TP + \fB\\$1\fP (\fB\\$2\fP) \\$3 + .. +-.TH XMJ 1 "Mah-Jong" "J.C.Bradfield" ++.TH XMJ 6 "Mah-Jong" "J.C.Bradfield" + .SH NAME + xmj, mj\-server, mj\-player \- programs for playing Mah\-Jong + .SH SYNOPSIS +--- mah-jong-1.10.orig/mj-server.man ++++ mah-jong-1.10/mj-server.man +@@ -1,2 +1,2 @@ + .\" $Header$ +-.so man1/xmj.1 ++.so man6/xmj.6 +--- mah-jong-1.10.orig/Makefile ++++ mah-jong-1.10/Makefile +@@ -54,9 +54,9 @@ + DESTDIR = /usr/local/ + BINDIR = bin + # The man pages go into $(DESTDIR)$(MANDIR) +-MANDIR = man/man1 +-# and the appropriate suffix is 1 +-MANSUFFIX = 1 ++MANDIR = share/man/man6 ++# and the appropriate suffix is 6 ++MANSUFFIX = 6 + + ### End of local configuration. + +--- mah-jong-1.10.orig/mj-player.man ++++ mah-jong-1.10/mj-player.man +@@ -1,2 +1,2 @@ + .\" $Header$ +-.so man1/xmj.1 ++.so man6/xmj.6 +--- mah-jong-1.10.orig/Makefile.in ++++ mah-jong-1.10/Makefile.in +@@ -54,9 +54,9 @@ + DESTDIR = /usr/local/ + BINDIR = bin + # The man pages go into $(DESTDIR)$(MANDIR) +-MANDIR = man/man1 +-# and the appropriate suffix is 1 +-MANSUFFIX = 1 ++MANDIR = share/man/man6 ++# and the appropriate suffix is 6 ++MANSUFFIX = 6 + + ### End of local configuration. + ================================================================ Index: packages/mj/mj.desktop diff -u /dev/null packages/mj/mj.desktop:1.1 --- /dev/null Thu Jan 6 14:01:17 2011 +++ packages/mj/mj.desktop Thu Jan 6 14:01:12 2011 @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Mah-Jong +GenericName=Classic Mahjong game +Comment=Play classic Mahjong puzzle game +Type=Application +Exec=xmj +Icon=mah-jong +Terminal=false +Categories=Game;BoardGame; ================================================================ Index: packages/mj/mj.spec diff -u /dev/null packages/mj/mj.spec:1.1 --- /dev/null Thu Jan 6 14:01:17 2011 +++ packages/mj/mj.spec Thu Jan 6 14:01:12 2011 @@ -0,0 +1,66 @@ +# $Revision$, $Date$ +Summary: The original Mah-Jong game +Name: mj +Version: 1.10 +Release: 1 +License: GPL +Group: Applications +Source0: http://mahjong.julianbradfield.org/Source/%{name}-%{version}-src.tar.gz +# Source0-md5: f9bacf9fd6743d5e3a2fd86863607ce2 +Source1: %{name}.desktop +Patch0: %{name}-man.patch +URL: http://mahjong.julianbradfield.org/ +BuildRequires: gtk+2-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This is a set of programs to play the original Mah-Jong game: one +server, one client for a human player and one client for an AI player. +Hence the game can be played by 1 to 4 human players. + +You should keep in mind that the original Mah-Jong game has nothing to +do with the well-known solitaire game. (It merely uses the same set of +tiles.) + +%prep +%setup -q -n %{name}-%{version}-src +%patch0 -p1 + +%build +%{__make} \ + CCOPTIONS="%{rpmcflags}" \ + EXTRA_LDOPTIONS="%{rpmldflags}" \ + TILESETPATH="\"%{_datadir}/mah-jong\"" + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_datadir}/mah-jong,%{_desktopdir}} + +%{__make} install install.man \ + DESTDIR=$RPM_BUILD_ROOT%{_prefix}/ + +cp -a fallbacktiles tiles-numbered tiles-small tiles-v1 \ + $RPM_BUILD_ROOT%{_datadir}/mah-jong + +install %SOURCE1 $RPM_BUILD_ROOT%{_desktopdir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGES ChangeLog README rules.txt use.txt +%attr(755,root,root) %{_bindir}/* +%{_datadir}/mah-jong +%{_desktopdir}/mj.desktop +%{_mandir}/man6/*.6* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2011/01/06 13:01:12 baggins +- initial revision + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
