File goom2k4.spec of Package goom2k4

#
# spec file for package goom2k4 (Version 0)
#
# 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:           goom2k4
BuildRequires:  SDL-devel gcc-c++ glib-devel gtk-devel
# xmms support disabled by default, use -D "HAVE_XMMS 1"
%if 0%{?HAVE_XMMS}
BuildRequires:  xmms-devel xmms-lib
%endif
Url:            http://sourceforge.net/projects/goom/
# http://www.ios-software.com/?page=projet&quoi=1
%define my_provides %{_builddir}/%{?buildsubdir}/my-provides
License:        LGPL v2.1 or later
Group:          Productivity/Multimedia/Sound/Visualization
AutoReqProv:    on
Summary:        Program and Library for Visual Effects
Version:        0
Release:        144
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# from http://goom.sourceforge.net/
Source:         goom-2k4-0-src.tar.bz2
# Patches
Patch0:         goom2k4-ppc.patch
Patch1:         goom2k4-execlp.patch
Patch2:         goom2k4-dev15pre.patch
Patch10:        goom2k4-sdl_xmms.patch
Patch11:        goom2k4-noxmms.patch
Patch12:        goom2k4-fix-make-install.patch
Patch13:        goom2k4-plug-memleak.patch

%description
Goom is a visual effects generator for mp3 players.



Authors:
--------
    Jean-Christophe Hoelt <jeko@ios-software.com>
    Guillaume Borios <gyom@ios-software.com>

%package devel
License:        LGPL v2.1 or later
Group:          Development/Languages/C and C++
Summary:        Program and Library for Visual Effects
Requires:       %{name} = %{version}
Requires:       SDL-devel gcc-c++ glib-devel gtk-devel
%if 0%{?HAVE_XMMS}
BuildRequires:  xmms-devel
%endif

%description devel
Goom is a visual effects generator for mp3 players.



Authors:
--------
    Jean-Christophe Hoelt <jeko@ios-software.com>
    Guillaume Borios <gyom@ios-software.com>

%prep
%setup -q -n goom2k4-0
%patch0 -p1
%patch1 -p1
%patch2 -p1
# repair broken configure.in
%patch10 -p1
# patch out xmms checks to build without xmms dependencies
%if 0%{?HAVE_XMMS}
%else
%patch11 -p1
%endif
%patch12 -p1
%patch13 -p1

%build
# running autoreconf later, so don't bother w/ suse_update_config
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
autoreconf -f -i
%configure --with-pic
make

%install
make DESTDIR=%{buildroot} install

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_bindir}/goom2
%{_libdir}/libgoom2.so.*
%if 0%{?HAVE_XMMS}
%{_libdir}/xmms/Visualization/*
%endif
%doc AUTHORS ChangeLog COPYING INSTALL README

%files devel
%defattr(-,root,root)
%dir %{_prefix}/include/goom
%{_prefix}/include/goom/*.h
%{_libdir}/libgoom2.so
%exclude %{_libdir}/libgoom2.la
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by