]> git.pld-linux.org Git - packages/xpat2.git/blobdiff - xpat2.spec
- C++ fix needed by gcc 4
[packages/xpat2.git] / xpat2.spec
index 38010dd73cc4fea1d5743c8904e23da23f13ef91..6c487ef3dc8308f14770185706cd11242576595a 100644 (file)
-Summary: A set of Solitaire type games for the X Window System.
-Name: xpat2
-Version: 1.06
-Release: 7
-Copyright: distributable - most of it GPL
-Group: Amusements/Games
-Source: ftp://metalab.unc.edu/pub/Linux/games/solitaires/xpat2-%{version}.tar.gz
-Source1: xpat2.desktop
-Patch: xpat2-1.03-fsstnd.patch
-Patch1: xpat2.nomkdirhier.patch
-Patch2: xpat2-1.06-nochown.patch
-BuildPrereq: tetex-dvips, tetex, tetex-latex, XFree86-devel, glibc-devel
-BuildRoot: %{_tmppath}/xpat2-%{version}-root
+Summary:       A set of Solitaire type games for the X Window System
+Summary(es):   X Patience - varios juegos de cartas
+Summary(pl):   Zestaw pasjansów dla X Window System
+Summary(pt_BR):        X Patience - vários jogos de cartas
+Name:          xpat2
+Version:       1.07
+Release:       12
+License:       distributable - most of it GPL
+Group:         X11/Applications/Games
+Source0:       ftp://metalab.unc.edu/pub/Linux/games/solitaires/%{name}-%{version}-src.tar.gz
+# Source0-md5: fb2c845e3411ce39376da66c7aec2448
+Source1:       %{name}.desktop
+Source2:       %{name}.png
+Patch0:                %{name}-paths.patch
+Patch1:                %{name}-qt-locales.patch
+Patch2:                %{name}-fixes.patch
+Patch3:                %{name}-qtmt.patch
+BuildRequires: XFree86-devel
+BuildRequires: XFree86
+BuildRequires: qt-devel
+BuildRequires: tetex-dvips
+BuildRequires: tetex-latex
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _appdefsdir     /usr/X11R6/lib/X11/app-defaults
 
 %description
 Xpat2 is a generic patience or Solitaire game for the X Window System.
 Xpat2 can be used with different rules sets, so it can be used to play
 Spider, Klondike, and other card games.
 
+%description -l pl
+Xpat2 jest zestawem pasjansów dla X Window. Mo¿e byæ u¿ywany z wieloma
+ró¿nymi zasadami; mo¿na graæ w Spidera, Klondike i inne gry karciane.
+
+%description -l pt_BR
+Em 1989, Dave Lemke, Heather Rose, Donald R. Woods e a Sun
+Microsystems, Inc., criaram o jogo de paciência xsol (também conhecido
+como klondike no DOS) e as regras de alguns outros jogos de paciência.
+As características principais são variáveis com conjuntos de regras e
+diferentes conjuntos de cartas para diferentes resoluções de
+monitores. xpat2 (X Patience) é uma coleção destes variados jogos de
+paciência que irão realmente "testar a sua paciência".
+
 %prep
 %setup -q
-%patch -p1
-%patch1 -p0 -b .nobr
-%patch2 -p1 -b .nochown
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
-%build
-export PATH=/usr/bin/X11:$PATH
-make
+# moc files generated for old Qt - removing them causes regeneration for new
+rm -f src/{moc_*,mqmaskedit,mqhelpwin}.cpp
 
+%build
+cd lib
+mv -f german de
+mv -f french fr
+mv -f italian it
+mv -f russian ru
+rm -f de_DE fr_FR it_IT
+rm -f src/moc*
+rm -f src/mqmaskedit.cpp
+rm -f src/mqhelpwin.cpp
+cd ../src
+xmkmf
+%{__make} \
+       CCOPTIONS="%{rpmcflags}" \
+       CXXOPTIONS="%{rpmcflags}"
+
+cd ..
+%{__make} manual
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/etc/X11/applnk/Games
-mkdir -p $RPM_BUILD_ROOT/usr/bin
-mkdir -p $RPM_BUILD_ROOT/usr/lib/games/xpat
-mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man6
-mkdir -p $RPM_BUILD_ROOT/usr/X11R6/lib/X11/{italian,german,russian,french}/app-defaults
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
+       $RPM_BUILD_ROOT/var/games
 
-make DESTDIR=$RPM_BUILD_ROOT  XPATMANDIR=%{_mandir}/man6 install
-mv $RPM_BUILD_ROOT/usr/X11R6/bin/xpat2 $RPM_BUILD_ROOT/usr/bin/xpat2 
+%{__make} install \
+       BINDIR=%{_bindir} \
+       DESTDIR=$RPM_BUILD_ROOT
 
-chmod 0644 $RPM_BUILD_ROOT/usr/lib/games/xpat/audio/*.wav
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 
-install -m 644 %SOURCE1 $RPM_BUILD_ROOT/etc/X11/applnk/Games/xpat2.desktop
+:> $RPM_BUILD_ROOT/var/games/xpat.log
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%defattr(-,root,root)
-%doc README xpat2/xpat2.tex
-/usr/lib/games/xpat
-%{_mandir}/*/*
-/usr/bin/xpat2
-/usr/X11R6/lib/X11/app-defaults/XPat
-%config(noreplace) /etc/X11/applnk/Games/xpat2.desktop
-
-%changelog
-* Mon Jun 25 2001 Trond Eivind Glomsrød <teg@redhat.com>
-- Add some build dependencies
-- don't create ps file, ship tex file
-- make sure it doesn't try to chown files during install
-- don't create the desktop file inside the specfile
-
-* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
-- automatic rebuild
-
-* Tue Jun 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
-- use %%{_tmppath} and %%{_mandir}
-- Add BuildPrereq: of tetex and tetex-dvips
-
-* Tue Apr 04 2000 Trond Eivind Glomsrød <teg@redhat.com>
-- gzipped man page
-- changed the permissions on some wav files
-
-* Fri Mar 24 2000 Trond Eivind Glomsrød <teg@redhat.com>
-- upgraded to 1.06. This fixes some problems with internationalization.
-- Removed xpm patch, as this is no longer necesarry.
-- updated URL
-- includes doc
-  
-
-* Mon Feb 07 2000 Preston Brown <pbrown@redhat.com>
-- gzip man page
-- wmconfig --> desktop
-
-* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
-- auto rebuild in the new build environment (release 10)
-
-* Thu Dec 17 1998 Michael Maher <mike@redhat.com>
-- built package for 6.0
-
-* Thu Sep 17 1998 Jeff Johnson <jbj@redhat.com>
-- use "mkdir -p" rather than mkdirhier to avoid IFS problem with bash-2.02.
-
-* Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com>
-- build root
-
-* Fri May 08 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Fri Oct 24 1997 Marc Ewing <marc@redhat.com>
-- wmconfig
-
-* Thu Jul 31 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
+%defattr(644,root,root,755)
+%doc README doc/xpat2.ps
+%attr(2755,root,games) %{_bindir}/xpat2
+%attr(664,root,games) /var/games/xpat.log
+%{_mandir}/man6/*
+%dir %{_datadir}/xpat
+%{_datadir}/xpat/???*
+%lang(de) %{_datadir}/xpat/de
+%lang(fr) %{_datadir}/xpat/fr
+%lang(it) %{_datadir}/xpat/it
+%lang(ru) %{_datadir}/xpat/ru
+%{_appdefsdir}/XPat
+%lang(de) %{_appdefsdir}/de/XPat
+%lang(fr) %{_appdefsdir}/fr/XPat
+%lang(it) %{_appdefsdir}/it/XPat
+%lang(ru) %{_appdefsdir}/ru/XPat
+%{_desktopdir}/*
+%{_pixmapsdir}/*
This page took 0.071078 seconds and 4 git commands to generate.