File libomxil-bellagio.spec of Package libomxil-bellagio

#
# spec file for package libomxil-bellagio
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Guillaume GARDET <guillaume@opensuse.org>
#
# 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/
#


Name:           libomxil-bellagio
Version:        0.9.3
Release:        0
Summary:        Bellagio implementation of the OpenMAX IL API
License:        LGPL-2.1
Group:          System/Libraries
Url:            http://omxil.sourceforge.net/
Source0:        libomxil-bellagio-%{version}.tar.gz
Patch0:         configure.ac.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf automake libtool
BuildRequires:  gcc-c++
BuildRequires:  pkg-config

%description
Bellagio is an opensource implementation of the OpenMAX IL API.
OpenMAX Integration Layer (IL) is a standard API to access Multimedia Components on mobile platforms. 
It has been defined by the Khronos group. By means of the OpenMAX IL API, multimedia frameworks can access hardware accelerators on platforms that provide it.

%package devel
Summary:        Bellagio implementation of the OpenMAX IL API - devel package
Requires:       %{name} == %{version}

%description devel
libomxil-bellagio devel package. Include header files, static libs, etc.

%prep
%setup -q
%patch0

%build
autoreconf
%configure
make 

%install
%make_install
# Workaround a bug in install
mkdir -p %buildroot/usr/share/doc/libomxil-bellagio/
mv %buildroot/%buildroot/usr/share/doc/libomxil-bellagio/ChangeLog %buildroot/usr/share/doc/libomxil-bellagio/ChangeLog
mv %buildroot/%buildroot/usr/share/doc/libomxil-bellagio/README %buildroot/usr/share/doc/libomxil-bellagio/README
mv %buildroot/%buildroot/usr/share/doc/libomxil-bellagio/TODO %buildroot/usr/share/doc/libomxil-bellagio/TODO

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%dir /usr/share/doc/libomxil-bellagio/
/usr/share/doc/libomxil-bellagio/*
/usr/share/man/man1/omxregister-bellagio.1.gz
%{_bindir}/omxregister-bellagio
%dir %{_libdir}/bellagio/
%{_libdir}/bellagio/libomxaudio_effects.so.0
%{_libdir}/bellagio/libomxaudio_effects.so.0.0.0
%{_libdir}/bellagio/libomxclocksrc.so.0
%{_libdir}/bellagio/libomxclocksrc.so.0.0.0
%{_libdir}/bellagio/libomxvideosched.so.0
%{_libdir}/bellagio/libomxvideosched.so.0.0.0
%{_libdir}/libomxil-bellagio.so.0
%{_libdir}/libomxil-bellagio.so.0.0.0
%dir %{_libdir}/omxloaders
%{_libdir}/omxloaders/libomxdynamicloader.so.0
%{_libdir}/omxloaders/libomxdynamicloader.so.0.0.0

%files devel
%defattr(-,root,root)
%{_includedir}/OMX_Audio.h
%{_includedir}/OMX_Component.h
%{_includedir}/OMX_ContentPipe.h
%{_includedir}/OMX_Core.h
%{_includedir}/OMX_IVCommon.h
%{_includedir}/OMX_Image.h
%{_includedir}/OMX_Index.h
%{_includedir}/OMX_Other.h
%{_includedir}/OMX_Types.h
%{_includedir}/OMX_Video.h
%dir %{_includedir}/bellagio
%{_includedir}/bellagio/OMXComponentRMExt.h
%{_includedir}/bellagio/OMXCoreRMExt.h
%{_includedir}/bellagio/common.h
%{_includedir}/bellagio/component_loader.h
%{_includedir}/bellagio/extension_struct.h
%{_includedir}/bellagio/omx_base_audio_port.h
%{_includedir}/bellagio/omx_base_clock_port.h
%{_includedir}/bellagio/omx_base_component.h
%{_includedir}/bellagio/omx_base_filter.h
%{_includedir}/bellagio/omx_base_image_port.h
%{_includedir}/bellagio/omx_base_port.h
%{_includedir}/bellagio/omx_base_sink.h
%{_includedir}/bellagio/omx_base_source.h
%{_includedir}/bellagio/omx_base_video_port.h
%{_includedir}/bellagio/omx_classmagic.h
%{_includedir}/bellagio/omx_comp_debug_levels.h
%{_includedir}/bellagio/omx_reference_resource_manager.h
%{_includedir}/bellagio/omxcore.h
%{_includedir}/bellagio/queue.h
%{_includedir}/bellagio/st_static_component_loader.h
%{_includedir}/bellagio/tsemaphore.h
%{_includedir}/bellagio/user_debug_levels.h
%{_includedir}/bellagio/utils.h
%{_libdir}/bellagio/libomxaudio_effects.a
%{_libdir}/bellagio/libomxaudio_effects.la
%{_libdir}/bellagio/libomxaudio_effects.so
%{_libdir}/bellagio/libomxclocksrc.a
%{_libdir}/bellagio/libomxclocksrc.la
%{_libdir}/bellagio/libomxclocksrc.so
%{_libdir}/bellagio/libomxvideosched.a
%{_libdir}/bellagio/libomxvideosched.la
%{_libdir}/bellagio/libomxvideosched.so
%{_libdir}/libomxil-bellagio.a
%{_libdir}/libomxil-bellagio.la
%{_libdir}/libomxil-bellagio.so
%{_libdir}/omxloaders/libomxdynamicloader.a
%{_libdir}/omxloaders/libomxdynamicloader.la
%{_libdir}/omxloaders/libomxdynamicloader.so
%{_libdir}/pkgconfig/libomxil-bellagio.pc

%changelog