File libsap.spec of Package libsap

# spec file for package libsap (Version 1.51.1)
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           libsap
BuildRequires:  gcc-c++
License:        Restricted Shareware
Group:          System/Libraries
#Requires:     xforms
AutoReqProv:    on
Version:        1.51.1
Release:        657
Summary:        Library for Playing Atari XL/XE Tunes
Source:         libsap-1.51.1.tar.gz
Source1:        sapplay-0.2.tar.gz
Patch:          libsap-1.51.1.dif
Patch1:         sapplay-0.2.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

libSap is a Linux port of the SAP Library, a software emulation of the
6502 microprocessor and the Pokey chip. Those two chips are used in
Atari XL/XE computers. SAP Library is used to run programs written in
6502 machine language, programs that are using the Pokey chip to play
tunes and sounds.

This package also contains sapplay, a simple command line-based player.

    Adam Bienias <>
    Michal Kunikowski <>

%setup -a 1
cd sapplay-0.2

make dynamic OPTS="-fPIC $RPM_OPT_FLAGS"
make -C sapplay-0.2 OPTS="$RPM_OPT_FLAGS"

make install libdir=%_libdir DESTDIR=$RPM_BUILD_ROOT
make -C sapplay-0.2 install MANDIR=%{_mandir} DESTDIR=$RPM_BUILD_ROOT



* Mon May 29 2006
- Don't strip binaries.
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005
- don't build as root
* Sun Jan 23 2005
* Tue Jun 17 2003
- use BuildRoot
* Wed Sep 11 2002
- fixed for lib64 archs
* Fri Apr 19 2002
- build using g++ (source-files have .cpp extension ...)
* Sun Apr 08 2001
- Build with -fPIC.
* Wed Mar 28 2001
- fixed to build with older distros
* Tue Mar 20 2001
- initial package