File libsap.spec of Package libsap

#
# spec file for package libsap (Version 1.51.1)
#
# 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:           libsap
BuildRequires:  gcc-c++
License:        Other License(s), see package
Group:          System/Libraries
#Requires:     xforms
Autoreqprov:    on
Version:        1.51.1
Release:        533
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 -n libsap
* 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
openSUSE Build Service is sponsored by