File Xsystem35.spec of Package Xsystem35

%define ver 1.7.3
%define rel 1

Summary: system35 scenario decoder on X
Name: xsystem35
Version: %{ver}pre5
Release: %{rel}
License: GPL
Group: Amusements/Games
Source0: xsystem35-1.7.3-pre5.tar.gz
Patch0:  01_change_conflict_define.patch
Patch1:  02_use_utf8.patch
Patch2:  03_remove_libltdl.patch
Patch3:  fix-return.patch
URL: http://www.aist-nara.ac.jp/~masaki-c/private/unitbase/xsys35/index.html
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gcc-c++ gcc-fortran autoconf automake libtool nasm
BuildRequires: gtk2-devel freetype2-devel alsa-devel libxslt-devel libpng12-devel libjpeg8-devel libesd-devel libogg-devel libvorbis-devel
BuildRequires: libSDL-devel libSDL_mixer-devel libSDL_ttf-devel

%description
system35 scenario decoder on X 
Xsystem35 enables AliceSoft's games on X.
Please use xsys35rc.sample of a document directory for a home directory, copying it to it as .xsys35rc before performing first. 

%prep
%setup -q -n %{name}-%{ver}-pre5
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3

%build
export LDFLAGS="-lX11 -lltdl"
%configure --enable-audio=default,oss,alsa,esd --enable-cdrom=default,linux,mp3 --enable-midi=extp,raw,seq --disable-debug --enable-qmidi
make %{?_smp_mflags}

%install
%makeinstall

%clean
rm -rf %{buildroot}

%files 
%defattr(-, root, root, -)
%doc ABOUT-NLS COPYING INSTALL doc/* src/xsys35rc.sample
%doc contrib
%doc patch
%{_libdir}/xsystem35/*
%{_bindir}/xsystem35
%{_datadir}/locale/*/LC_MESSAGES/xsystem35*

%changelog
* Sun Dec 21 2003 CHIKAMA Masaki <masaki-c@is.aist-nara.ac.jp>
  [xsystem35-1.7.2]
- version 1.7.2

* Sun Aug 31 2003 CHIKAMA Masaki <masaki-c@is.aist-nara.ac.jp>
  [xsystem35-1.7.1]
- version 1.7.1

* Thu May 01 2003 CHIKAMA Masaki <masaki-c@is.aist-nara.ac.jp>
  [xsystem35-1.7.0]
- version 1.7.0 preX

* Sat Feb 01 2003 CHIKAMA Masaki <masaki-c@is.aist-nara.ac.jp>
  [xsystem35-1.6.0]
- version 1.6.0

* Sun Jan 05 2003 CHIKAMA Masaki <masaki-c@is.aist-nara.ac.jp>
  [xsystem35-1.6.0]
- 1.6.0 preX

* Tue May 14 2002 CHIKAMA Masaki <masaki-c@is.aist-nara.ac.jp>
  [xsystem35-1.5.x]
- revised for xsystem35-1.5.x

* Tue May 01 2001 CHIKAMA Masaki <masaki-c@is.aist-nara.ac.jp>
  [xsystem35-1.4.0]
- update to xsystem35-1.4.0

* Sun Apr 01 2001 CHIKAMA Masaki <masaki-c@is.aist-nara.ac.jp>
  [xsystem35-1.3.4]
- update to xsystem35-1.3.4

* Sun Nov 26 2000 CHIKAMA Masaki <masaki-c@is.aist-nara.ac.jp>
  [xsystem35-1.3.3]
- import spec file from JRPM to tar ball. (Grate thanks to Toshiya Takagi)

* Sat Dec 04 1999 Toshiya Takagi <jwtoshi@mars.dti.ne.jp>
  [xsystem35-1.2.4-1]
- Updated to xsystem35-1.2.4

* Sun Sep 05 1999 Toshiya Takagi <jwtoshi@mars.dti.ne.jp>
  [xsystem35-1.2.3-2]
- Use TiMidity and mp3 instead of CD-DA

* Thu Aug 26 1999 Toshiya Takagi <jwtoshi@mars.dti.ne.jp>
  [xsystem35-1.2.3-1]
- Updated to xsystem35-1.2.3

* Sat Jul 24 1999 Toshiya Takagi <jwtoshi@mars.dti.ne.jp>
  [xsystem35-1.2.2-1]
- Updated to xsystem35-1.2.2

* Thu Jun 10 1999 Toshiya Takagi <jwtoshi@mars.dti.ne.jp>
  [xsystem35-1.2.1-1]
- Updated to xsystem35-1.2.1

* Mon May 24 1999 Toshiya Takagi <jwtoshi@mars.dti.ne.jp>
  [xsystem35-1.2.0-1]
- Updated to xsystem35-1.2.0

* Thu May 13 1999 Toshiya Takagi <jwtoshi@mars.dti.ne.jp>
- Changed /usr/local/lib/xsystem35 to /usr/X11R6/lib/xsystem35

* Mon May 03 1999 Toshiya Takagi <jwtoshi@mars.dti.ne.jp>
- First release against glibc