Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 03a69ffe51a50a11797a5f0b38c006c4 > files > 3

mlt-0.9.2-5.mga5.src.rpm

%define major		6
%define libname		%mklibname %{name} %{major}
%define libplus_major	3
%define libplus		%mklibname mlt++ %{libplus_major}
%define libnamedev	%mklibname %{name} -d

%define use_mmx	0
%{?_with_mmx: %global use_mmx 1}
%{?_without_mmx: %global use_mmx 0}

%define _disable_ld_no_undefined 1

Name:		mlt
Version:	0.9.2
Release:	%mkrel 5
Summary:	Media Lovin' Toolkit
Source0:	http://downloads.sourceforge.net/mlt/%{name}-%{version}.tar.gz
Patch0:         mlt-0.7.6-fix-used-symbols.patch
#Patch1:		mlt-0.9.0-freetype251.patch
License:	LGPLv2+ and GPLv2+
Group:		Video/Editors and Converters
Url:		http://mlt.sourceforge.net
BuildRequires:	pkgconfig
BuildRequires:	ffmpeg
BuildRequires:	ffmpeg-devel >= 0.4.9-3.pre1
BuildRequires:	glib2-devel
BuildRequires:	gtk2-devel
BuildRequires:	kdelibs4-devel
BuildRequires:	ladspa-devel
BuildRequires:	libdv-devel
BuildRequires:	libogg-devel
BuildRequires:	libsamplerate-devel
BuildRequires:	libvorbis-devel
BuildRequires:	libxml2-devel
BuildRequires:	multiarch-utils >= 1.0.3
BuildRequires:	pango-devel
BuildRequires:	qt4-devel
BuildRequires:	quicktime-devel
BuildRequires:	SDL-devel
BuildRequires:	imagemagick
BuildRequires:	mad-devel
BuildRequires:	libjack-devel
BuildRequires:	sox-devel
BuildRequires:	frei0r-devel
# For python-bindings
BuildRequires:	swig
BuildRequires:	python-devel

%description
MLT is an open source multimedia framework, designed and developed for
television broadcasting.

It provides a toolkit for broadcasters, video editors, media players,
transcoders, web streamers and many more types of applications. The
functionality of the system is provided via an assortment of ready to
use tools, xml authoring components, and an extendible plug-in based
API.

%package        kdenlive
Summary:        Media Lovin' Toolkit
Group:          Video/Editors and Converters
Conflicts:	%{name} < 0.8.8-2

%description    kdenlive
MLT is an open source multimedia framework, designed and developed for
television broadcasting.

It provides a toolkit for broadcasters, video editors, media players,
transcoders, web streamers and many more types of applications. The
functionality of the system is provided via an assortment of ready to
use tools, xml authoring components, and an extendible plug-in based
API.

This package contains plugins aimed to used by kde apps.

%package -n     %{libname}
Summary:        Main library for mlt 
Group:          System/Libraries

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

%package -n	%{libplus}
Summary:	Main library for mlt++
Group:		System/Libraries

%description -n	%{libplus}
This package contains the libraries needed to run programs dynamically
linked with mlt++.

%package -n     %{libnamedev}
Summary:        Headers for developing programs that will use mlt
Group:          Development/C
Requires:       %{libname} = %{version}
Requires:	%{libplus} = %{version}
# mlt-config requires stuff from %{_datadir}/%{name}
Requires:	%{name} = %{version}
Provides:       %{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}

%description -n %{libnamedev}
This package contains the headers that programmers will need to develop
applications which will use mlt.

%package -n  python-%{name}
Summary:     Python bindings for MLT
Group:	     Development/Python
Requires:    python
Requires:    %{name} = %{version}-%{release}
Summary:     Python package to work with MLT

%description -n     python-%{name}
This module allows to work with MLT using python.

%prep
%setup -q
%apply_patches

%build
%configure2_5x \
	--disable-debug \
	--enable-gpl \
%if %use_mmx
	--enable-mmx \
%else
	%ifarch x86_64
	--enable-mmx \
	--enable-sse \
	%else
	--disable-mmx \
	%endif
%endif
	--luma-compress \
	--enable-avformat \
	--avformat-shared=%{_prefix} \
	--avformat-swscale \
	--enable-motion-est \
	--swig-languages='python'
%make

%install
%makeinstall_std

#python bindings
install -d %{buildroot}%{py_platsitedir}
install -pm 0644 src/swig/python/%{name}.py* %{buildroot}%{py_platsitedir}/
install -pm 0755 src/swig/python/_%{name}.so %{buildroot}%{py_platsitedir}/

%files
%doc docs COPYING README
%{_bindir}/melt
%{_datadir}/mlt
%{_libdir}/mlt
%exclude %{_libdir}/mlt/libmltqimage.so
%exclude %{_libdir}/mlt/libmltkdenlive.so

%files kdenlive
%{_libdir}/mlt/libmltkdenlive.so

%files -n %{libname}
%{_libdir}/libmlt.so.%{major}*
%{_libdir}/libmlt.so.%{version}

%files -n %{libplus}
%{_libdir}/libmlt++.so.%{libplus_major}*
%{_libdir}/libmlt++.so.%{version}

%files -n %{libnamedev}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files -n python-%{name}
%{py_platsitedir}/%{name}.p*
%{py_platsitedir}/_%{name}.so


%changelog
* Fri Nov 14 2014 akien <akien> 0.9.2-5.mga5
+ Revision: 797104
- Rebuild for ffmpeg 2.4

* Wed Oct 15 2014 umeabot <umeabot> 0.9.2-4.mga5
+ Revision: 748641
- Second Mageia 5 Mass Rebuild

* Sat Sep 27 2014 tv <tv> 0.9.2-3.mga5
+ Revision: 727337
- rebuild for missing pythoneggs deps

* Tue Sep 16 2014 umeabot <umeabot> 0.9.2-2.mga5
+ Revision: 682547
- Mageia 5 Mass Rebuild

* Mon Sep 01 2014 juancho <juancho> 0.9.2-1.mga5
+ Revision: 670322
- Updated to version 0.9.2

* Sun Jul 06 2014 fwang <fwang> 0.9.0-3.mga5
+ Revision: 644179
- fix build with recent freetype

  + pterjan <pterjan>
    - Rebuild for new Python

* Sat Oct 19 2013 umeabot <umeabot> 0.9.0-2.mga4
+ Revision: 529702
- Mageia 4 Mass Rebuild

* Thu Jul 11 2013 fwang <fwang> 0.9.0-1.mga4
+ Revision: 452914
- bump libmajor
- new version 0.9.0

* Mon Feb 04 2013 fwang <fwang> 0.8.8-3.mga3
+ Revision: 394478
- add conflicts to ease upgrading

* Mon Feb 04 2013 neoclust <neoclust> 0.8.8-2.mga3
+ Revision: 394470
- Try to remove kde deps out of main package

* Wed Jan 30 2013 zezinho <zezinho> 0.8.8-1.mga3
+ Revision: 393528
- new version

* Tue Jan 29 2013 cjw <cjw> 0.8.6-4.mga3
+ Revision: 393221
- patch1 from mlt git: fix audio decoding with ffmpeg 1.1

* Sat Jan 12 2013 umeabot <umeabot> 0.8.6-3.mga3
+ Revision: 360171
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Jan 08 2013 fwang <fwang> 0.8.6-2.mga3
+ Revision: 341726
- rebuild for new ffmpeg

* Thu Nov 29 2012 juancho <juancho> 0.8.6-1.mga3
+ Revision: 322924
- Updated group to comply with new RPM group policy.
- Updated to 0.8.6

* Wed Sep 12 2012 fwang <fwang> 0.8.2-1.mga3
+ Revision: 292515
- new version 0.8.2

* Mon Jul 30 2012 fwang <fwang> 0.8.0-2.mga3
+ Revision: 275947
- rebuild for new sox

* Fri Jun 15 2012 fwang <fwang> 0.8.0-1.mga3
+ Revision: 260700
- update libamjor
- new version 0.8.0

* Wed May 30 2012 fwang <fwang> 0.7.8-3.mga3
+ Revision: 249674
- rebuild for new ffmpeg

* Sun Apr 08 2012 sander85 <sander85> 0.7.8-2.mga2
+ Revision: 229720
- fix some audio codecs not detected with newer libavcodec

* Mon Feb 27 2012 fwang <fwang> 0.7.8-1.mga2
+ Revision: 215634
- drop more internal sybol
- new version 0.7.8

* Tue Dec 27 2011 dmorgan <dmorgan> 0.7.6-2.mga2
+ Revision: 188252
- Do not use ffmeg private symbols ( mga #3732)

* Tue Nov 01 2011 fwang <fwang> 0.7.6-1.mga2
+ Revision: 160763
- new version 0.7.6
- new version 0.7.4

* Mon Jul 04 2011 ahmad <ahmad> 0.7.2-3.mga2
+ Revision: 118265
- Add BR frei0r-devel

* Sat Jun 25 2011 fwang <fwang> 0.7.2-2.mga2
+ Revision: 113451
- rebuild for new ffmpeg

* Tue May 17 2011 dmorgan <dmorgan> 0.7.2-1.mga1
+ Revision: 99445
- New version 0.7.2

* Thu Feb 17 2011 wally <wally> 0.6.2-1.mga1
+ Revision: 53196
- new version 0.6.2
- new major 3
- fix license and summary
- drop old obsoletes
- clean .spec
- imported package mlt