File gstreamer-plugins-moodbar.spec of Package gstreamer-plugins-moodbar

Name:           gstreamer10-plugins-moodbar
Version:        0.1.1
Release:        1
License:        GPL v2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Libraries
Source:         moodbar-%{version}.tar.gz
BuildRequires:  gstreamer010-devel fftw3-devel
Requires:       gstreamer010-plugins-base
Requires:       gstreamer010-plugins-good
Obsoletes:      gstreamer-plugins-moodbar-devel
Obsoletes:      gstreamer-plugins-moodbar-static
Summary:        Moodbar plugin for gstreamer

%description
The Moodbar is an algorithm for creating a colorful visual
representation of the contents of an audio file, giving an idea of its
"mood" (this is a rather fanciful term for the simple analysis it
actually does). The Moodbar was invented by Gavin Wood and Simon
O'Keefe for inclusion in the Amarok music player.

This package contains a GStreamer plugin with elements that are used
in the moodbar analysis, and an application that actually does the
analysis.

%define         gst_major_ver  0.10
%define         gstlibdir      %{_libdir}/gstreamer-%{gst_major_ver}
%define         _prefix  /opt/gnome
%define         _libdir  %_prefix/%_lib
%define         _bindir  %_prefix/bin
%define         _mandir  %_prefix/share/man
%define         _infodir %_prefix/share/info
%define         _sysconfdir /etc%_prefix
%define         _localstatedir /var%_prefix
%define         _libdir  %_prefix/%_lib
%define         _includedir %_prefix/include

%prep
%setup -n moodbar-%{version}

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure \
    --prefix=%{_prefix} \
    --libdir=%{_libdir} \
    --mandir=%{_mandir} \
    --infodir=%{_infodir} \
    --sysconfdir=%{_sysconfdir} \
    --localstatedir=%{_localstatedir} \
    --disable-static
make %{?jobs:-j %jobs}

%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{gstlibdir}/libmoodbar.la

%clean
rm -rf "$RPM_BUILD_ROOT"

%post
%banner %{name} -e << EOF
 *******************************************************
 *                                                     *
 *  NOTE:                                              *
 *  You must install suitable gstreamer-* packages     *
 *  to work with different audio file formats.         *
 *                                                     *
 *******************************************************

EOF

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README TODO
%attr(755,root,root) %{_bindir}/moodbar
%attr(755,root,root) %{gstlibdir}/libmoodbar.so
openSUSE Build Service is sponsored by