File hercules.spec of Package hercules

#
# spec file for package hercules (Version 20080407)
#
# Copyright (c) 2008 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:           hercules
BuildRequires:  libbz2-devel zlib-devel
Url:            http://www.hercules-390.org/
License:        Qt Free Edition License (Qt 1.x Licence)
Group:          System/Emulators/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
Version:        20080407
Release:        1
Summary:        Hercules IBM Mainframe Emulator
Source:         %name-%version.tar.bz2
Patch:          hercules-3.03-overflow.patch
Patch1:         hercules-lib64.patch

%description
Hercules is an emulator for the IBM System/370, ESA/390, and
z/Architecture series of mainframe computers. It is capable of running
any IBM operating system and applications that a real system will run,
as long as the hardwre needed is emulated. Hercules can emulate FBA and
CKD DASD, tape, printer, card reader, card punch, channel-to-channel
adapter, and printer-keyboard and 3270 terminal devices.

Hercules information can be found on the web at
http://www.conmicro.cx/hercules .



Authors:
--------
    Roger Bowler (retired) <rbowler@snipix.freeserve.co.uk>
    Jay Maynard  (active)  <jmaynard@conmicro.cx>

%prep
%setup -n %name
%patch
%patch1

%build
#use newer libltdl
sh ./autogen.sh
%configure \
	--enable-cckd-bzip2 \
	--enable-het-bzip2 \
	--enable-optimization="$RPM_OPT_FLAGS" \
	--enable-multi-cpu=8
make %{?jobs:-j%{jobs}}

%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%_libdir/*.la
%find_lang %{name}

%files -f %{name}.lang
%defattr(-, root, root)
/usr/bin/*
%_libdir/hercules
%_libdir/*.so
%_mandir/man1/*
%_mandir/man4/*
/usr/share/hercules

%changelog
* Mon Apr 07 2008 uli@suse.de
- update to current CVS (runs SLES10 correctly, bug #366731)
- fix module load path for 64-bit systems (bug #366731)
* Tue Feb 26 2008 crrodriguez@suse.de
- use find_lang macro
- update to version 3.05
* Mon Apr 02 2007 rguenther@suse.de
- Add zlib-devel BuildRequires.
* Sat Mar 24 2007 aj@suse.de
- Add libbz2-devel as BuildRequire.
* Thu Mar 02 2006 uli@suse.de
- update -> 3.04
- This update includes the fiollowing fixes:
  - CCKD garbage collection fix (Greg Smith)
  - Reworked timing functions (Jan Jaeger)
  - Codepage 1047 conversion tables (Kevin Leonard)
  - Fixed off-by-one-day bug with SYSEPOCH other than 1900; added new config parameter, YROFFSET, and added warning if SYSEPOCH is not 1900 or 1960 (Jay Maynard, Jan Jaeger)
  - New 2305 CKD disk emulation (Jay Maynard)
  - Added floating point instructions CEGR, CDGR and CXGR (Bernard van der Helm)
  - Added support for cgi-bin dynamic modules (David "Fish" Trout)
  - Instruction fixes: PLO, CVB, CXFBR, CXGBR (Bernard van der Helm, David "Fish" Trout, Greg Smith, Pasi Pirhonen)
  - Fix for Windows ..\relative path dasd files (David "Fish" Trout)
* Thu Feb 23 2006 uli@suse.de
- added fix for cxgbr insn (bug #153105)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Dec 28 2005 uli@suse.de
- new package
openSUSE Build Service is sponsored by