File libsidplay1.spec of Package libsidplay1

#
# spec file for package libsidplay1
#
# Copyright (c) 2011 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:           libsidplay1
BuildRequires:  gcc-c++
Url:            http://web.archive.org/web/20061202103201/http://www.geocities.com/SiliconValley/Lakes/5147/sidplay/
%define _name libsidplay
License:        GPLv2+
Group:          System/Libraries
Version:        1.36.59
Release:        146
Source:         %{_name}-%{version}.tar.bz2
Patch:          libsidplay-gcc43.patch
Summary:        A Library for C64 Music Files
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package allows you to create packages able to play music from C64
games and demos on your PC.

You can find a comprehensive archive on the WWW at:
http://www.hvsc.c64.org/



Authors:
--------
    Michael Schwendt <mschwendt@fedoraproject.org>
    Asger Alstrup Nielsen
    Phillip Wooller
    Dennis Lindroos
    Dag Lem
    Peter Kunath
    Vincent Penn

%package devel
License:        GPLv2+
Summary:        A Library for C64 Music Files
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version} libstdc++-devel
AutoReqProv:    on

%description devel
This package allows you to create packages able to play music from C64
games and demos on your PC.

You can find a comprehensive archive on the WWW at:
http://www.hvsc.c64.org/



Authors:
--------
    Michael Schwendt <mschwendt@fedoraproject.org>
    Asger Alstrup Nielsen
    Phillip Wooller
    Dennis Lindroos
    Dag Lem
    Peter Kunath
    Vincent Penn

%prep
%setup -n %{_name}-%{version}
%patch

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static --with-pic
make %{?jobs:-j %jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS COPYING DEVELOPER
%{_libdir}/*.so.*

%files devel
%defattr(-, root, root)
/usr/include/sidplay
%{_libdir}/*.so
%exclude %{_libdir}/*.la

%changelog
openSUSE Build Service is sponsored by