libmlt/libmlt.spec
Dave Plater a9742e5675 Accepting request 893433 from home:alois:branches:multimedia:libs
- Update to version 7.0.1
  * Fixed a system-installed build cannot finds its modules and
    data.
  * Fixed the python installation path for binaries.
  * Added support for the `DESTDIR` environment variable when
    creating melt symlink.
  * Increased the build constant for the maximum size of a line
    of a properties file.
  * Fixed the vid.stab metadata install path.
- Drop mlt-7.0.0-python_install_dir.patch (merged upstream)
- Update to version 7.0.0
  Framework:
  * Added `mlt_chain` and `Mlt::Chain` classes.
  * Added `mlt_link` and `Mlt::Link` classes.
  * Added a `link` value to service `type` in the service
    metadata schema.
  * Added a boolean `animation` parameter attribute to the
    service metadata schema.
  * Added `mlt_animation_shift_frame()` and
    `Mlt::Animation::shift_frames()`.
  * Added `mlt_animation_get_string()`.
  * Fixed using a stale cached property animation string.
  * Added `mlt_image` and `Mlt::Image` classes.
  * Remove legacy "height + 1" workaround in image allocation.
  * Fixed a crash on setting `timewarp` speed higher than 23x.
  * Added `mlt_audio_silence()`.
  * Removed `mlt_image_opengl`.
  * Replaced variadic arguments in `mlt_events` with new
    `mlt_event_data` APIs.
  * Removed `mlt_geometry` APIs.
  * Renamed `mlt_image_rgb24a` as `mlt_image_rgba`.
  * Renamed `mlt_image_rgb24` to `mlt_image_rgb`.
  * Renamed `mlt_image_glsl` to `mlt_image_movit`.
  * Renamed `mlt_image_glsl_texture` to
    `mlt_image_opengl_texture`.
  * Removed virtual function `mlt_frame::get_alpha_mask()`.
  * Removed `mlt_frame_get_alpha_mask()`.
  * Removed deprecated functions:
    + `mlt_sample_calculator`
    + `mlt_sample_calculator_to_now`
    + `mlt_channel_layout_name`
    + `mlt_channel_layout_id`
    + `mlt_channel_layout_channels`
    + `mlt_channel_layout_default`
    + `mlt_slices_init`
    + `mlt_slices_close`
    + `mlt_slices_run`
    + `mlt_playlist_move_region`
    + `Mlt::Playlist::move_region`
  * Fixed a rounding error calculating display aspect ratio in
    `mlt_profile_from_producer()`.
  Modules:
  * Added a `timeremap` link to the core module with animatable
    `map` property. (Speed can increase or decrease between
    keyframes including reverse.)
  * Added `chain` and `link` XML elements to `xml` module.
  * Added "meta.media.has_b_frames" property to `avformat`
    producer.
  * Removed deprecated modules:
    + `dv`
    + `gtk2` (not gdk)
    + `kino`
    + `linsys`
    + `lumas`
    + `motion_est`
    + `swfdec`
    + `videostab`
  * Removed the following services:
    + `data_feed` filter
    + `data_show` filter
    + `region` filter and transition
    + `sdl_image`
  * Converted filters to use new `mlt_image` class:
    + `brightness`
    + `imageconver`
    + `mirror`
    + `spot_remover`
  * Deprecated the `audiowave` filter.
  * Added the ability to build the `jackrack` module without
    JACK to get only LADSPA producers and filters.
  * Deprecated `start` and `end` properties for the following
    filters:
    + `brightness`
    + `panner`
    + `boxblur`
    + `wave`
    + `volume`
  * Removed deprecated `font` property from `pango` producer.
  * Improved album art (attached pic) detection in `avformat`
    producer.
  * Improved the `resample` filter to have less artifacts and
    use less memory.
  Other:
  * CMake: nearly complete rewrite.
  * Removed the old configure bash scripts and Makefiles.
  * Added `-chain` and `-link` options to `melt` command line.
- Switch build to cmake
- Drop libmlt-fixluma.patch (no longer useful)
- Add mlt-7.0.0-python_install_dir.patch
- Create single devel subpackage as cmake scripts are
  undifferentiated
- Rename melt subpackage and add update-alternatives
- Spec cleanup

OBS-URL: https://build.opensuse.org/request/show/893433
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=123
2021-05-16 10:22:27 +00:00

263 lines
8.8 KiB
RPMSpec

#
# spec file for package libmlt
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define _name mlt
%define libname lib%{_name}
%define lversion 7.0.1
%define sover 7
%define lib_pkgname %{libname}-%{sover}-%{sover}
%define _name_pp %{_name}++
%define libname_pp lib%{_name_pp}
%define sover_pp 7
%define lversion_pp 7.0.1
%define libpp_pkgname %{libname_pp}-%{sover_pp}-%{sover_pp}
Name: %{libname}
Version: 7.0.1
Release: 0
Summary: Multimedia framework for television broadcasting
License: GPL-3.0-or-later
Group: Development/Libraries/C and C++
URL: https://www.mltframework.org
Source0: https://github.com/mltframework/mlt/archive/v%{version}.tar.gz#/%{_name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: ladspa-devel
BuildRequires: pkgconfig
BuildRequires: cmake(Qt5Core) >= 5.10
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Svg)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5Xml)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(frei0r)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libavcodec) >= 58
BuildRequires: pkgconfig(libavdevice) >= 58
BuildRequires: pkgconfig(libavformat) >= 58
BuildRequires: pkgconfig(libavutil) >= 56
BuildRequires: pkgconfig(libebur128)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libpulse-simple)
BuildRequires: pkgconfig(libswscale) >= 5
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(movit)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(pangoft2)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(sox)
BuildRequires: pkgconfig(vidstab)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(vorbisfile)
%description
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers. The functionality of the system is
provided via an assortment of tools, XML authoring components, and an
plug-in based API.
%package -n %{lib_pkgname}
Summary: C library API for the MLT multimedia framework
Group: System/Libraries
%description -n %{lib_pkgname}
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
This subpackage contains the C library API for MLT.
%package -n %{libpp_pkgname}
Summary: C++ library API for the MLT multimedia framework
Group: System/Libraries
%description -n %{libpp_pkgname}
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
This subpackage contains the C++ library API for MLT.
%package devel
Summary: Development files for MLT's C and C++ language API
Group: Development/Libraries/C and C++
Requires: %{lib_pkgname} = %{version}
Requires: %{libpp_pkgname} = %{version}
%description devel
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
This subpackage contains the headers to make use of the MLT C and
C++ API.
%package -n melt%{sover}
Summary: Multimedia framework for television broadcasting
Group: Productivity/Multimedia/Video/Editors and Convertors
Provides: melt%{soname} = %{version}
Obsoletes: melt%{soname} < %{version}
Requires: %{libname}%{sover}-data = %{version}
Requires: %{libname}%{sover}-modules = %{version}
Requires(post): update-alternatives
Requires(postun):update-alternatives
%description -n melt%{sover}
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
The functionality of the system is provided via an assortment of
tools, XML authoring components, and an plug-in based API.
%package -n %{libname}%{sover}-modules
Summary: Modules for the MLT multimedia framework
Group: Productivity/Multimedia/Video/Editors and Convertors
Recommends: frei0r-plugins
Provides: mlt(%{sover})(avformat)
%description -n %{libname}%{sover}-modules
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
The functionality of the system is provided via an assortment of
tools, XML authoring components, and an plug-in based API.
%package -n %{libname}%{sover}-data
Summary: Architecture-independent data files for the MLT multimedia framework
Group: Productivity/Multimedia/Video/Editors and Convertors
BuildArch: noarch
%description -n %{libname}%{sover}-data
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
%package -n python3-%{_name}
Summary: Python bindings for the MLT multimedia framework
Group: Development/Languages/Python
BuildRequires: swig
BuildRequires: pkgconfig(python3)
Provides: python3-%{_name}%{sover}
%description -n python3-%{_name}
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
This package contains python bindings.
%prep
%setup -q -n %{_name}-%{version}
%autopatch -p1
%build
# WARNING: building opencv module causes multicore issues - boo#1068792
%cmake \
-DMOD_OPENCV=OFF \
-DGPL=ON \
-DGPL3=ON \
-DSWIG_PYTHON=ON
%cmake_build
%install
%cmake_install
# update-alternatives
mkdir -pv %{buildroot}%{_sysconfdir}/alternatives
ln -sf %{_sysconfdir}/alternatives/melt %{buildroot}%{_bindir}/melt
ln -sf %{_sysconfdir}/alternatives/melt.1%{?ext_man} %{buildroot}%{_mandir}/man1/melt.1%{?ext_man}
# Get the modules that need data
for MODULE in %{buildroot}%{_libdir}/mlt-%{sover}/libmlt*.so; do
echo $MODULE
MODULEDIR=%{_datadir}/mlt-%{sover}/$(echo $MODULE | sed 's|%{buildroot}%{_libdir}/mlt-%{sover}/libmlt\(.*\).so|\1|')
echo $MODULEDIR
if [ -e %{buildroot}$MODULEDIR ]; then
echo Done $MODULEDIR
echo $MODULEDIR >> module_data.dirs
fi;
done
# remove dupes
%fdupes %{buildroot}%{_datadir}/mlt-%{sover}
%post -n melt%{sover}
update-alternatives \
--install %{_bindir}/melt melt %{_bindir}/melt-%{sover} 20 \
--slave %{_mandir}/man1/melt.1%{?ext_man} melt.1%{?ext_man} %{_mandir}/man1/melt-%{sover}.1%{?ext_man}
%postun -n melt%{sover}
if [ $1 -eq 0 ] ; then
update-alternatives --remove melt %{_bindir}/melt-%{sover}
fi
%post -n %{lib_pkgname} -p /sbin/ldconfig
%postun -n %{lib_pkgname} -p /sbin/ldconfig
%post -n %{libpp_pkgname} -p /sbin/ldconfig
%postun -n %{libpp_pkgname} -p /sbin/ldconfig
%files -n %{lib_pkgname}
%{_libdir}/lib%{_name}-%{sover}.so.%{sover}
%{_libdir}/lib%{_name}-%{sover}.so.%{lversion}
%files devel
%{_includedir}/%{_name}-%{sover}
%{_libdir}/cmake/Mlt%{sover}
%{_libdir}/lib%{_name}-%{sover}.so
%{_libdir}/lib%{_name_pp}-%{sover_pp}.so
%{_libdir}/pkgconfig/%{_name}-framework-%{sover}.pc
%{_libdir}/pkgconfig/%{_name_pp}-%{sover_pp}.pc
%files -n %{libpp_pkgname}
%{_libdir}/lib%{_name_pp}-%{sover_pp}.so.%{sover_pp}
%{_libdir}/lib%{_name_pp}-%{sover_pp}.so.%{lversion_pp}
%files -n melt%{sover}
%{_bindir}/melt
%{_bindir}/melt-%{sover}
%{_mandir}/man1/melt.1%{?ext_man}
%{_mandir}/man1/melt-%{sover}.1%{?ext_man}
%ghost %{_sysconfdir}/alternatives/melt
%ghost %{_sysconfdir}/alternatives/melt.1%{?ext_man}
%files -n %{libname}%{sover}-modules -f module_data.dirs
%doc AUTHORS NEWS README.md
%license GPLv3 COPYING GPL
%{_libdir}/%{_name}-%{sover}
%dir %{_datadir}/%{_name}-%{sover}/
%files -n %{libname}%{sover}-data
%dir %{_datadir}/%{_name}-%{sover}/
%{_datadir}/%{_name}-%{sover}/metaschema.yaml
%{_datadir}/%{_name}-%{sover}/profiles/
%{_datadir}/%{_name}-%{sover}/presets/
%{_datadir}/%{_name}-%{sover}/vid.stab/
%files -n python3-%{_name}
%{python3_sitearch}/_%{_name}%{sover}.so
%{python3_sitearch}/%{_name}%{sover}.py
%changelog