File libsidplay.spec of Package libsidplay
#
# spec file for package libsidplay (Version 2.1.1)
#
# Copyright (c) 2007 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: libsidplay
BuildRequires: gcc-c++
Url: http://sidplay2.sourceforge.net/
License: GPL v2 or later
Group: Productivity/Multimedia/Sound/Players
AutoReqProv: on
Version: 2.1.1
Release: 84
Summary: A Player for C64 Music Files
Source: sidplay-libs-%{version}.tar.bz2
Patch: sidplay-libs-%{version}.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package allows you 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 <sidplay@geocities.com>
%package devel
Summary: A Player for C64 Music Files
Group: Productivity/Multimedia/Sound/Players
Provides: libsidplay:/usr/include/sidplay/sidplay2.h
Requires: libsidplay = %{version}
AutoReqProv: on
%description devel
This package allows you 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 <sidplay@geocities.com>
%prep
%setup -q -n sidplay-libs-%{version}
%patch
%build
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
export CFLAGS="$RPM_OPT_FLAGS"
autoreconf --force --install
for i in libsidplay libsidutils resid builders/resid-builder ; do
pushd $i
autoreconf --force --install
popd
done
./configure --prefix=/usr --enable-shared --libdir=%_libdir
make
%install
export LIBRARY_PATH=$RPM_BUILD_ROOT/usr/%_lib
make install DESTDIR=$RPM_BUILD_ROOT
DOCDIR=$RPM_BUILD_ROOT/%{_docdir}/libsidplay
rm -fr $DOCDIR
install -d -m 755 $DOCDIR
install -d -m 755 $DOCDIR/libsidplay
install -d -m 755 $DOCDIR/libsidutils
install -d -m 755 $DOCDIR/resid
cd libsidplay
install -m 644 AUTHORS COPYING ChangeLog INSTALL README TODO $DOCDIR/libsidplay
cd ../libsidutils
install -m 644 AUTHORS COPYING ChangeLog INSTALL README TODO $DOCDIR/libsidutils
cd ../resid
install -m 644 AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO $DOCDIR/resid
find $RPM_BUILD_ROOT -name "*.la" | xargs chmod 644
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_libdir/libresid.so.*
%_libdir/libsidplay2.so.*
%_libdir/libsidutils.so.*
%dir %_libdir/sidplay
%dir %_libdir/sidplay/builders
%_libdir/sidplay/builders/lib*builder.so.*
%files devel
%defattr(-,root,root)
%{_docdir}/libsidplay
%_libdir/pkgconfig/*.pc
/usr/include/resid
/usr/include/sidplay
%_libdir/libresid.*a
%_libdir/libsidplay2.*a
%_libdir/libsidutils.*a
%_libdir/libresid.so
%_libdir/libsidplay2.so
%_libdir/libsidutils.so
%_libdir/sidplay/builders/lib*builder.*a
%_libdir/sidplay/builders/lib*builder.so
%changelog
* Wed Nov 28 2007 - ro@suse.de
- fix build with gcc-4.3 again
* Mon Oct 22 2007 - ro@suse.de
- fix build with gcc43
* Wed May 16 2007 - ro@suse.de
- branch off devel package
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 18 2005 - ro@suse.de
- remove extra qualification (gcc-4.1 fix)
* Wed Jan 19 2005 - ro@suse.de
- fixed gcc uninitialized warning
- fix build with newer gcc
* Fri Jul 23 2004 - ro@suse.de
- update to 2.1.1
* Mon Oct 20 2003 - ro@suse.de
- use defattr
- don't build as root
* Thu May 15 2003 - ro@suse.de
- change mode of .la files to 644
* Fri Jan 24 2003 - ro@suse.de
- libtoolize it ...
* Thu Jan 23 2003 - ro@suse.de
- split from package sidplay