Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 84c2e05e3d8b3254f8ac91fdd6fccf5f > files > 5

openlibraries-0.5.0-0.20080328.1mdv2008.1.src.rpm

%define major		0
%define libname		%mklibname %name %major
%define old_libname	%mklibname %name 0.0.5
%define libnamedev	%mklibname %name -d
%define libname_orig	lib%{name}
%define snapshot	20080328

Summary: Library suite for non-linear editing, VFX and rich media applications
Name:		openlibraries
Version:	0.5.0
Release:	0.%{snapshot}.%mkrel 1
License:	LGPL
Group:		System/Libraries
Source:		http://kent.dl.sourceforge.net/sourceforge/openlibraries/openlibraries-%{version}.tar.bz2
Patch0:		openlibraries-0.2-system-boost.patch
Patch1:		openlibraries-0.2-compile.patch
Patch2:		openlibraries-0.5.0-libpath.patch
URL:		http://www.openlibraries.org/
BuildRoot:	%{_tmppath}/%name-%{version}-root
Requires:	boost >= 1.33
BuildRequires:	automake autoconf
BuildRequires:	qt3-devel
BuildRequires:	glew-devel >= 1.3.3
BuildRequires:	boost-devel >= 1.33
BuildRequires:	sqlite3-devel
BuildRequires:	tiff-devel
BuildRequires:	bzip2-devel
BuildRequires:	zlib-devel
BuildRequires:	libxml2-devel
BuildRequires:	libpng-devel
BuildRequires:	libjpeg-devel
Buildconflicts:	libcaca-devel
BuildRequires:	openal-devel
BuildRequires:	python-devel
BuildRequires:	OpenEXR-devel
BuildRequires:	MesaGLU-devel
%if %{mdkversion} >= 200610
BuildRequires:	mesagl-devel
BuildRequires:	mesaglut-devel
%else
BuildRequires:	Mesa-devel
BuildRequires:	mesaglut-devel
%endif
BuildRequires:	mlt-devel
BuildRequires:	mlt++-devel

%description
Openlibraries contains a powerful cross-platform set of libraries that provide 
developers with the key building blocks they need to easily create, test
and deploy rich media applications.

%package -n 	%{libname}
Summary:	OpenLibraries libraries
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}
Obsoletes:	%old_libname

%description -n %{libname}
This package contains the libraries needed to run programs dynamically
linked with openlibraries.

%package -n	%{libnamedev}
Summary:	Headers for developing programs that will use openlibraries
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:       %{name}-devel = %{version}-%{release}
Provides:       %{libname_orig}-devel = %{version}-%{release}
Obsoletes:	%old_libname-devel

%description -n %{libnamedev}
OpenLibraries development headers/libs.

%package media
Summary:	OpenLibraries sample media files
Group:		Video
Requires:	openlibraries = %{version}
Requires:	boost >= 1.33
Requires:	glew >= 1.3.3

%description media
OpenLibraries sample media files.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .system-boost
%patch1 -p1 -b .compile
%patch2 -p1 -b .libpath
aclocal -I m4
libtoolize --force --copy
autoheader
automake --add-missing --copy
autoconf

%build
if [ ! -z $QTDIR ]; then
        export QTPATH=$QTDIR/bin
        export PATH=$PATH:$QTPATH
else
        export PATH=$PATH:%{qt3dir}
fi
%configure2_5x \
	--enable-static \
	--disable-cg \
	--with-boostruntime=mt \
	--with-boostthreadruntime=mt \
	--with-qtinclude=%{qt3include} \
	--with-qtlib=%{qt3lib} \
%if %{mdkversion} >= 200710
	--with-pythonversion=2.5
%endif
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.%{major}*
%{_libdir}/%{name}-%{version}/*/plugins/*.so.%{major}*
%{py_platsitedir}/*

%files -n %{libnamedev}
%defattr(-,root,root)
%doc COPYING
%{_includedir}/%{name}-%{version}
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/%{name}-%{version}/*/plugins/*.a
%{_libdir}/%{name}-%{version}/*/plugins/*.la
%{_libdir}/%{name}-%{version}/*/plugins/*.so
%{_libdir}/%{name}-%{version}/*/plugins/*.opl
%{_libdir}/pkgconfig/*.pc

%files media
%defattr(-,root,root)
%{_datadir}/%{name}-%{version}


%changelog
* Thu Apr 03 2008 Giuseppe Ghibò <ghibo@mandriva.com> 0.5.0-0.20080328.1mdv2008.1
+ Revision: 192199
- Release 0.5.0-svn-20080328.

  + Austin Acton <austin@mandriva.org>
    - rebuild for new libglew

  + Thierry Vignaud <tvignaud@mandriva.com>
    - fix mesa BR
    - kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Funda Wang <fundawang@mandriva.org>
    - fix BR
    - build mt
    - New version 0.4.0

* Sun Aug 12 2007 Funda Wang <fundawang@mandriva.org> 0.3.0-5mdv2008.0
+ Revision: 62179
- Rebuild


* Wed Mar 14 2007 Giuseppe Ghibò <ghibo@mandriva.com> 0.3.0-4mdv2007.1
+ Revision: 143349
- Use %%{py_platsitedir}/ for python file list.
- Rebuilt against latest mlt, mlt++.
- Force building against python2.5.

* Wed Feb 14 2007 Lenny Cartier <lenny@mandriva.com> 0.3.0-3mdv2007.1
+ Revision: 120998
- Filelist
- Filelist
- Add buildconflicts
- Import openlibraries

* Sun Sep 17 2006 Giuseppe Ghibò <ghibo@mandriva.com> 0.3.0-1mdv2007.0
- Release 0.0.3.

* Sun Sep 17 2006 Giuseppe Ghibò <ghibo@mandriva.com> 0.2.0-0.20060619.1mdv2007.0
- Release cvs 20060619.

* Sat Sep 16 2006 Giuseppe Ghibò <ghibo@mandriva.com> 0.2.0-1mdv2007.0
- Initial Mandriva Release.
- Added Patch2 for libpath.
- Merged Patch0, Patch1 from ArkLinux (release 0.20060619.1ark).