SHA256
1
0
forked from pool/gnugo
gnugo/gnugo.spec

152 lines
4.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gnugo (Version 3.7.10)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gnugo
BuildRequires: emacs-x11 giflib-devel glib-devel krb5 libpng-devel libtiff-devel openldap2 openldap2-devel xemacs xorg-x11-devel
URL: http://www.gnu.org/software/gnugo/gnugo.html
License: GNU General Public License (GPL)
Group: Amusements/Games/Board/Other
Summary: Chinese Game "Go"
Version: 3.7.10
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: gnugo-%{version}.tar.bz2
Source1: suse-start-gnugo.el
Source2: xemacs-auto-autoloads.el
Patch0: xemacs.patch
Patch1: mouse-2-dont-insert-junk.patch
Patch2: bugzilla-225902.patch
PreReq: %install_info_prereq
%description
Asian board game. /usr/share/doc/packages/gnugo
Authors:
--------
Man L. Li <manli@cs.uh.edu>
%prep
%setup -q
%patch0 -p 1
%patch1 -p 1
%patch2 -p 1
%build
autoconf
CFLAGS="$RPM_OPT_FLAGS" ./configure \
--prefix=/usr \
--mandir=/%_mandir \
--infodir=/%_infodir \
make
pushd interface/xpms
emacs -batch --no-site-file \
-l ../make-xpms-file.el -f make-xpms-file gnugo-xpms.el *.xpm
popd
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/usr/share/info/dir*
# GNU Emacs:
mkdir -p $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/gnugo
for i in $(find . -name "*.el")
do
emacs -no-site-file -q -batch -f batch-byte-compile $i
install -m 644 ${i} ${i}c \
$RPM_BUILD_ROOT/usr/share/emacs/site-lisp/gnugo
done
install -m 644 $RPM_SOURCE_DIR/suse-start-gnugo.el \
$RPM_BUILD_ROOT/usr/share/emacs/site-lisp
# XEmacs:
find . -name "*.elc" | xargs rm
mkdir -p $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/gnugo
for i in $(find . -name "*.el")
do
xemacs -no-site-file -q -batch -f batch-byte-compile $i
install -m 644 ${i} ${i}c \
$RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/gnugo
install -m 644 $RPM_SOURCE_DIR/xemacs-auto-autoloads.el \
$RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/gnugo/auto-autoloads.el
done
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%defattr(-,root,root)
%doc COPYING AUTHORS THANKS ChangeLog TODO README NEWS
/usr/bin/*
/%_infodir/*
/%_mandir/man?/*
%dir /usr/share/emacs/site-lisp/gnugo/
/usr/share/emacs/site-lisp/gnugo/*
/usr/share/emacs/site-lisp/suse-start-gnugo.el
%dir /usr/share/xemacs/site-packages/
%dir /usr/share/xemacs/site-packages/lisp/
%dir /usr/share/xemacs/site-packages/lisp/gnugo/
/usr/share/xemacs/site-packages/lisp/gnugo/*
%changelog -n gnugo
* Tue Dec 05 2006 - mfabian@suse.de
- update to 3.7.10
- fix Bugzilla #225902 ("comparison with string literal").
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Feb 04 2005 - mfabian@suse.de
- update to 3.7.2.
- adapt XEmacs patch.
* Fri Jan 21 2005 - mfabian@suse.de
- add missing directories to file list to make it build on
SuSE 9.2.
* Thu Jan 20 2005 - mfabian@suse.de
- install Emacs-lisp files.
- small fix for XEmacs to make at least the ASCII mode work with
XEmacs (graphical mode still doesn't work).
* Wed Dec 01 2004 - adrian@suse.de
- update to version 3.6
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Mon Oct 06 2003 - adrian@suse.de
- update to version 3.4
* Thu Apr 24 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
* Thu Feb 13 2003 - mmj@suse.de
- Add %%install_info macros [#23416]
* Wed Jan 29 2003 - ro@suse.de
- fix build with gcc-3.3 (-Wp,-lang-c89 unsupported)
* Tue Aug 06 2002 - adrian@suse.de
- fix file conflicts
* Tue Aug 06 2002 - adrian@suse.de
- update to version 3.2
- use BuildRoot
* Wed May 09 2001 - mfabian@suse.de
- bzip2 sources
* Mon Nov 06 2000 - ro@suse.de
- fixed neededforbuild
* Fri Mar 31 2000 - nadvornik@suse.cz
- removed directories owned by aaa_dir
- filelist cleanup
* Wed Feb 16 2000 - uli@suse.de
- fixed %%files section
* Wed Feb 16 2000 - kettner@suse.de
- New version 2.6
- moved man and info to /usr/share
* Thu Nov 25 1999 - kettner@suse.de
- New version 2.5.42
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.