mlt/mlt.spec

Fri, 09 Sep 2011 16:56:22 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 09 Sep 2011 16:56:22 +0200
changeset 17
0ad158be7636
child 18
1ae0aa395adf
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

     1 # vim: set sw=4 ts=4 et:
     3 %define soname		4
     4 %define soname_pp	3
     6 %{!?python_sitelib:  %global python_sitelib  %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
     7 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
     9 Name:           mlt
    10 Version:        0.7.2
    11 Release:        1.pm.1.8
    12 License:        GNU General Public License version 2 or later (GPLv2 or later)
    13 Summary:        Multimedia framework for television broadcasting
    14 Group:          Productivity/Multimedia/Sound/Editors and Convertors
    15 URL:            http://www.mltframework.org/twiki/bin/view/MLT/WebHome
    16 # http://prdownloads.sourceforge.net/mlt/mlt-%{version}.tar.gz
    17 Source:         mlt-%{version}.tar.bz2
    18 Source90:       %{name}-rpmlintrc
    19 Patch1:         mlt-qt_backport.patch
    20 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
    21 BuildRequires:  gcc-c++
    22 BuildRequires:  libffmpeg-devel libamrnb-devel ffmpeg
    23 BuildRequires:  frei0r-plugins
    24 BuildRequires:  gamin-devel
    25 BuildRequires:  gtk2-devel
    26 %if 0%{?suse_version} < 1130
    27 BuildRequires:	gdk-pixbuf-devel
    28 %endif
    29 BuildRequires:  ImageMagick
    30 BuildRequires:  ladspa-devel
    31 BuildRequires:  ladspa
    32 BuildRequires:  libdv-devel
    33 BuildRequires:  libgsm-devel
    34 BuildRequires:  libjack-devel
    35 BuildRequires:  libkde4-devel
    36 BuildRequires:  libmad-devel
    37 BuildRequires:  libquicktime-devel
    38 BuildRequires:  libsamplerate-devel
    39 BuildRequires:  libvorbis-devel
    40 BuildRequires:  libxml2-devel >= 2.5
    41 BuildRequires:  pango-devel
    42 BuildRequires:  qt-devel
    43 BuildRequires:  pkgconfig
    44 BuildRequires:  SDL-devel >= 1.2
    45 BuildRequires:  sox-devel >= 14.3.0
    46 BuildRequires:  sox >= 14.3.0
    47 BuildRequires:  xorg-x11-devel
    48 Requires:       ladspa
    49 BuildRequires:  python-devel
    50 BuildRequires:  swig
    51 %py_requires
    53 # pmbs ...
    54 #BuildRequires:  libwavpack-devel libsndfile-devel libxine1
    56 %if %suse_version > 1101
    57 BuildRequires:  libdb-4_5-devel
    58 %endif
    60 %description
    61 MLT is an open source multimedia framework, designed and developed
    62 for television broadcasting. It provides a toolkit for broadcasters,
    63 video editors, media players, transcoders, web streamers and many
    64 more types of applications.
    66 The functionality of the system is provided via an assortment of
    67 ready to use tools, xml authoring components, and an extendible
    68 plug-in based API.
    70 %package devel
    71 Summary:        MLT Video Editor development files
    72 Group:          Development/Libraries/C and C++
    73 Requires:       %{name} = %{version}
    74 Requires:       frei0r-plugins
    75 Requires:       gtk2-devel
    76 %if 0%{?suse_version} < 1130
    77 Requires:	    gdk-pixbuf-devel
    78 %endif
    79 Requires:       ladspa-devel
    80 Requires:       ladspa
    81 Requires:       libdv-devel
    82 Requires:       libffmpeg-devel
    83 Requires:       libgsm-devel
    84 Requires:       libjack-devel
    85 Requires:       libkde4-devel
    86 Requires:       libmad-devel
    87 Requires:       libmlt%{soname} = %{version}
    88 Requires:       libquicktime-devel
    89 Requires:       libsamplerate-devel
    90 Requires:       libvorbis-devel
    91 Requires:       libxml2-devel >= 2.5
    92 Requires:       pango-devel
    93 Requires:       qt-devel
    94 Requires:       SDL-devel >= 1.2
    95 Requires:       sox-devel >= 14.3.0
    96 Requires:       sox >= 14.3.0
    97 Requires:       xorg-x11-devel
    99 %description devel
   100 MLT is an open source multimedia framework, designed and developed
   101 for television broadcasting. It provides a toolkit for broadcasters,
   102 video editors, media players, transcoders, web streamers and many
   103 more types of applications.
   105 The functionality of the system is provided via an assortment of
   106 ready to use tools, xml authoring components, and an extendible
   107 plug-in based API.
   109 Headers and link/static libraries for package MLT.
   111 %package -n mlt++-devel
   112 Summary:        MLT Video Editor development files
   113 Group:          Development/Libraries/C and C++
   114 Requires:       %{name}-devel = %{version}
   115 Requires:       libmlt++%{soname_pp} = %{version}
   117 %description -n mlt++-devel
   118 MLT is an open source multimedia framework, designed and developed
   119 for television broadcasting. It provides a toolkit for broadcasters,
   120 video editors, media players, transcoders, web streamers and many
   121 more types of applications.
   123 The functionality of the system is provided via an assortment of
   124 ready to use tools, xml authoring components, and an extendible
   125 plug-in based API.
   127 Headers and link/static libraries for package MLT++.
   129 %package -n libmlt%{soname}
   130 Summary:        MLT Video Editor shared library
   131 Group:          System/Libraries
   133 %description -n libmlt%{soname}
   134 MLT is an open source multimedia framework, designed and developed
   135 for television broadcasting. It provides a toolkit for broadcasters,
   136 video editors, media players, transcoders, web streamers and many
   137 more types of applications.
   139 The functionality of the system is provided via an assortment of
   140 ready to use tools, xml authoring components, and an extendible
   141 plug-in based API.
   143 Shared library for package MLT.
   145 %package -n libmlt++%{soname_pp}
   146 Summary:        MLT Video Editor shared library
   147 Group:          System/Libraries
   149 %description -n libmlt++%{soname_pp}
   150 MLT is an open source multimedia framework, designed and developed
   151 for television broadcasting. It provides a toolkit for broadcasters,
   152 video editors, media players, transcoders, web streamers and many
   153 more types of applications.
   155 The functionality of the system is provided via an assortment of
   156 ready to use tools, xml authoring components, and an extendible
   157 plug-in based API.
   159 Shared library for package MLT.
   161 %package -n python-mlt
   162 Summary:        MLT Video Editor python bindings
   163 Group:          Development/Languages/Python
   164 Requires:       %{name} = %{version}
   165 %if %suse_version >= 1110
   166 Requires:       python-base >= %{py_ver}
   167 %else
   168 Requires:       python >= %{py_ver}
   169 %endif
   171 %description -n python-mlt
   172 MLT is an open source multimedia framework, designed and developed
   173 for television broadcasting. It provides a toolkit for broadcasters,
   174 video editors, media players, transcoders, web streamers and many
   175 more types of applications.
   177 The functionality of the system is provided via an assortment of
   178 ready to use tools, xml authoring components, and an extendible
   179 plug-in based API.
   181 Python bindings for package MLT.
   183 %prep
   184 %setup -q -n %{name}-%{version}
   185 %if %suse_version < 1100
   186 %patch1
   187 %endif
   189 %build
   190 %suse_update_libdir src/modules/qimage/configure
   192 export KDEDIR=%{_prefix}
   193 %configure  \
   194 %ifarch %ix86
   195     --disable-sse2 \
   196     --disable-mmx \
   197 %else
   198     --enable-sse2 \
   199     --enable-mmx \
   200 %endif
   201     --enable-gpl \
   202     --enable-avformat \
   203     --avformat-shared="%{_libdir}" \
   204     --avformat-swscale \
   205     --avformat-vdpau \
   206     --enable-core \
   207     --enable-dgraft \
   208     --enable-dv \
   209     --enable-effectv \
   210     --enable-feeds \
   211     --enable-frei0r \
   212     --enable-gtk2 \
   213     --enable-jackrack \
   214     --enable-kdenlive \
   215     --enable-kino \
   216     --enable-lumas \
   217     --enable-linsys \
   218     --enable-melt \
   219 %ifarch ppc
   220     --disable-motion_est \
   221 %else
   222 %ifnarch x86_64
   223     --enable-motion-est \
   224 %else
   225     --disable-motion_est \
   226 %endif
   227 %endif
   228     --enable-normalize \
   229     --enable-oldfilm \
   230     --enable-plus \
   231     --enable-qimage \
   232     --enable-resample \
   233     --enable-sdl \
   234     --enable-sox \
   235     --enable-vmfx \
   236     --enable-vorbis \
   237 %ifarch ppc
   238     --disable-xine \
   239 %else
   240     --enable-xine \
   241 %endif
   242     --enable-xml \
   243     --enable-shared \
   244     --luma-compress \
   245     --qimage-libdir=%{_libdir} \
   246     --qimage-includedir=%{_includedir} \
   247     --swig-languages=python
   249 # luma/PAL/* gets not filled, if .executed is present
   250 %__rm -rf src/modules/lumas/.executed
   252 %__make %{?_smp_flags}
   254 %install
   255 %makeinstall
   257 # make install is missing this .. DIY :)
   258 %__install -dm 755 %{buildroot}%{python_sitearch}
   259 %__install -m 644 src/swig/python/_mlt.so \
   260     %{buildroot}%{python_sitearch}
   261 %__install -dm 755 %{buildroot}%{python_sitelib}
   262 %__install -m 644 src/swig/python/mlt.py \
   263     %{buildroot}%{python_sitelib}
   265 %clean
   266 %{?buildroot:%__rm -rf "%{buildroot}"}
   268 %post   -n libmlt%{soname} -p /sbin/ldconfig
   269 %postun -n libmlt%{soname} -p /sbin/ldconfig
   271 %post   -n libmlt++%{soname_pp} -p /sbin/ldconfig
   272 %postun -n libmlt++%{soname_pp} -p /sbin/ldconfig
   274 %files
   275 %defattr(-, root, root)
   276 %doc ChangeLog COPYING README
   277 %doc docs/*.txt
   278 %{_bindir}/melt
   279 %dir %{_libdir}/mlt
   280 %{_libdir}/mlt/libmltavformat.so
   281 %{_libdir}/mlt/libmltcore.so
   282 %{_libdir}/mlt/libmltdgraft.so
   283 %{_libdir}/mlt/libmltdv.so
   284 %{_libdir}/mlt/libmlteffectv.so
   285 %{_libdir}/mlt/libmltfrei0r.so
   286 %{_libdir}/mlt/libmltgtk2.so
   287 %{_libdir}/mlt/libmltjackrack.so
   288 %{_libdir}/mlt/libmltkdenlive.so
   289 %{_libdir}/mlt/libmltkino.so
   290 %{_libdir}/mlt/libmltlinsys.so
   291 %{_libdir}/mlt/libmltmelt.so
   292 %{_libdir}/mlt/libmltxml.so
   293 %ifnarch x86_64
   294 %ifnarch ppc
   295 %{_libdir}/mlt/libmltmotion_est.so
   296 %endif
   297 %endif
   298 %{_libdir}/mlt/libmltnormalize.so
   299 %{_libdir}/mlt/libmltoldfilm.so
   300 %{_libdir}/mlt/libmltplus.so
   301 %{_libdir}/mlt/libmltqimage.so
   302 %{_libdir}/mlt/libmltresample.so
   303 %{_libdir}/mlt/libmltrotoscoping.so
   304 %{_libdir}/mlt/libmltsdl.so
   305 %{_libdir}/mlt/libmltsox.so
   306 %{_libdir}/mlt/libmltvmfx.so
   307 %{_libdir}/mlt/libmltvorbis.so
   308 %ifnarch ppc
   309 %{_libdir}/mlt/libmltxine.so
   310 %endif
   311 %{_libdir}/mlt/libmltdecklink.so
   312 %dir %{_datadir}/mlt
   313 %{_datadir}/mlt/metaschema.yaml
   314 %dir %{_datadir}/mlt/avformat
   315 %{_datadir}/mlt/avformat/*
   316 %dir %{_datadir}/mlt/core
   317 %{_datadir}/mlt/core/data_fx.properties
   318 %{_datadir}/mlt/core/loader.dict
   319 %{_datadir}/mlt/core/loader.ini
   320 %dir %{_datadir}/mlt/feeds
   321 %{_datadir}/mlt/feeds/*
   322 %dir %{_datadir}/mlt/lumas
   323 %{_datadir}/mlt/lumas/*
   324 %dir %{_datadir}/mlt/oldfilm
   325 %{_datadir}/mlt/oldfilm/*
   326 %dir %{_datadir}/mlt/profiles
   327 %{_datadir}/mlt/profiles/*
   328 %dir %{_datadir}/mlt/rotoscoping
   329 %{_datadir}/mlt/rotoscoping/filter_rotoscoping.yml
   330 %dir %{_datadir}/mlt/xml
   331 %{_datadir}/mlt/xml/mlt-xml.dtd
   332 %dir %{_datadir}/mlt/frei0r
   333 %{_datadir}/mlt/frei0r/blacklist.txt
   334 %{_datadir}/mlt/frei0r/not_thread_safe.txt
   335 %dir %{_datadir}/mlt/decklink
   336 %{_datadir}/mlt/decklink/*.yml
   338 %files devel
   339 %defattr(-, root, root)
   340 %dir %{_includedir}/mlt
   341 %dir %{_includedir}/mlt/framework
   342 %{_includedir}/mlt/framework/*.h
   343 %{_libdir}/libmlt.so
   344 %{_libdir}/pkgconfig/mlt-framework.pc
   346 %files -n mlt++-devel
   347 %defattr(-, root, root)
   348 %dir %{_includedir}/mlt++
   349 %{_includedir}/mlt++/*
   350 %{_libdir}/libmlt++.so
   351 %{_libdir}/pkgconfig/mlt++.pc
   353 %files -n libmlt%{soname}
   354 %defattr(-, root, root)
   355 %{_libdir}/libmlt.so.%{soname}
   356 # no kidding, on purpose, go figure...:
   357 %{_libdir}/libmlt.so.0.*
   359 %files -n libmlt++%{soname_pp}
   360 %defattr(-, root, root)
   361 %{_libdir}/libmlt++.so.%{soname_pp}
   362 # no kidding, on purpose, go figure...:
   363 %{_libdir}/libmlt++.so.0.*
   365 %files -n python-mlt
   366 %defattr(-, root, root)
   367 %{python_sitearch}/_mlt.so
   368 %{python_sitelib}/mlt.py
   370 %changelog
   371 * Sun Jun 12 2011 pascal.bleser@opensuse.org
   372 - build with SSE2 and MMX support on 64bit
   373 - build with VDPAU support
   374 - update to 0.7.2:
   375   * this is a minor release to fix a few things between the 0.7.0 release and
   376     the release of Kdenlive 0.8. I recommend Kdenlive v0.8 users to upgrade to
   377     this version of Mlt
   378   * some exciting additions to the Blackmagic Design DeckLink plugin
   379   * added mlt_profile_list()
   380   * added decklink producer (i.e. capture, live encoding)
   381   * added keyer output for decklink consumer
   382   * added AVOptions to the avformat service metadata
   383   * added support for new major API versions (53) of FFmpeg
   384   * melt: added '-query profile' option
   385   * melt: added '-query formats', '-query audio_codecs' and '-query
   386     video_codecs'
   387 * Mon Apr 11 2011 reddwarf@opensuse.org
   388 - update to 0.7.0
   389 * Wed Sep 29 2010 pascal.bleser@opensuse.org
   390 - update to 0.5.10
   391 * Fri Jul 30 2010 toni@links2linux.de
   392 - update to 0.5.6
   393 - This is a maintenance release to address some bugs that appeared
   394   thus far in the 0.5.x series. Beyond that is a few enhancements:
   395   * Added interpolation to the affine transition and filter.
   396   * Added multi-track audio encoding to avformat consumer.
   397   * Added interlaced field rendering to kdenlivetitle producer.
   398 * Thu Mar 11 2010 toni@links2linux.de
   399 - update to 0.5.2
   400 - This is a minor maintenance release, but it is interesting because
   401   it now enables usage of libswscale as the default choice for image
   402   scaling, image format conversion, and color space conversion. That
   403   gives better quality and performance. In addition, there are some
   404   improvements in the sdl_preview consumer to make it suitable for use
   405   in OpenShot 1.1.
   406 * Tue Mar  2 2010 toni@links2linux.de
   407 - rebuild with --disable-sse2
   408 - new URL
   409 * Tue Feb 16 2010 toni@links2linux.de
   410 - update to 0.5.0
   411 - This is an enhancement release, confined mainly to the modules rather
   412   than the framework. In particular, this adds support for VDPAU, YADIF,
   413   and HD-SDI technologies!
   414 * Mon Feb  1 2010 toni@links2linux.de
   415 - update to 0.4.10
   416 - added libmltlinsys.so
   417 * Tue Jan 12 2010 toni@links2linux.de
   418 - added python-mlt sub-package
   419 * Fri Oct  9 2009 pascal.bleser@opensuse.org
   420 - update to 0.4.6
   421 * Fri Oct  2 2009 Manfred.Tremmel@iiv.de
   422 - included debian patch mlt_0.4.4-3.diff
   423 * Thu Sep 24 2009 Manfred.Tremmel@iiv.de
   424 - update to 0.4.4
   425 * Mon May 18 2009 toni@links2linux.de
   426 - update to 0.4.2
   427 - dropped libvalerie1, libmiracle1
   428 - added mlt++-devel, libmlt++2 sub-packages (obsoletes mlt++-*)
   429 * Wed Apr 15 2009 toni@links2linux.de
   430 - update to 0.3.8
   431 - split of libvalerie1, libmlt1, libmiracle1
   432 * Tue Feb  3 2009 toni@links2linux.de
   433 - update to 0.3.6
   434 * Sun Feb  1 2009 toni@links2linux.de
   435 - rebuild with new sox(-devel) packages
   436 * Fri Jan  2 2009 toni@links2linux.de
   437 - update to 0.3.4
   438 * Tue Nov 11 2008 toni@links2linux.de
   439 - update to 0.3.2
   440 - openSuSE >= 11.0 use only kde4 and qt4
   441 * Tue Oct 28 2008 toni@links2linux.de
   442 - rebuild with newest ffmpeg libs
   443 * Wed Sep 24 2008 toni@links2linux.de
   444 - mad ==> libmad-devel, sox ==> sox-devel
   445 - we have new sox 14.1 ... so I grabbed the sox-module from svn-version
   446 * Thu Aug  7 2008 toni@links2linux.de
   447 - update to 0.3.0
   448 * Sun Jun 29 2008 toni@links2linux.de
   449 - rebuild with new ffmpeg package
   450 - removed the av_free_static call
   451 - don't strip the binaries via make install
   452 * Fri Dec 21 2007 toni@links2linux.de
   453 - rebuild with new ffmpeg package
   454 * Thu Dec 20 2007 Manfred.Tremmel@iiv.de
   455 - a little change to compile it on ppc
   456 - added a patch to make it compile with the latest ffmpeg version
   457 * Tue Aug  7 2007 toni@links2linux.de
   458 - update to 0.2.4
   459 - added some more plugin-modules (qimage, kdenlive, effecttv)
   460 * Sat Aug  4 2007 toni@links2linux.de
   461 - rebuild with option --avformat-swscale
   462 * Wed Apr 25 2007 toni@links2linux.de
   463 - update to 0.2.3
   464 * Tue Dec  5 2006 toni@links2linux.de
   465 - update to 0.2.2
   466 - repacked as tar.bz2
   467 * Wed Mar 22 2006 guru@unixtech.be
   468 - rewrote spec file
   469 - disable mmx support on x86_64
   470 - new upstream version
   471 * Sun Aug 28 2005 guru@unixtech.be
   472 - fixed bug in requires
   473 * Fri Aug 19 2005 guru@unixtech.be
   474 - new package

mercurial