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 http://bugs.opensuse.org/
#

# 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

%description
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.



Authors:
--------
    Adam Bienias <adam@nautilus.com.pl>
    Michal Kunikowski <kunik@poczta.onet.pl>

%prep
%setup -a 1
%patch
cd sapplay-0.2
%patch1

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

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

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc LICENSE README
%_libdir/libsap.so
/usr/include/libsap.h
/usr/bin/sapplay
%{_mandir}/man1/sapplay.1.gz

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