public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mlt] epel9-next: Re-Add mlt-python2 subpackage
@ 2026-07-20 18:17 Martin Gansser
0 siblings, 0 replies; only message in thread
From: Martin Gansser @ 2026-07-20 18:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mlt
Branch : epel9-next
Commit : 66d86f2e236b3d90fc00855d35d6120d479c2b44
Author : Martin Gansser <mgansser@online.de>
Date : 2019-03-03T14:20:16+01:00
Stats : +41/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/mlt/c/66d86f2e236b3d90fc00855d35d6120d479c2b44?branch=epel9-next
Log:
Re-Add mlt-python2 subpackage
---
diff --git a/mlt.spec b/mlt.spec
index d14233c..335f9d0 100644
--- a/mlt.spec
+++ b/mlt.spec
@@ -9,9 +9,12 @@
%global shortcommit %(c=%{commit}; echo ${c:0:7})
#global gver .%%{gitdate}git%%{shortcommit}
+# bytecompile with Python 2
+%global __python %{__python2}
+
Name: mlt
Version: 6.12.0
-Release: 5%{?gver}%{?dist}
+Release: 6%{?gver}%{?dist}
Summary: Toolkit for broadcasters, video editors, media players, transcoders
# mlt/src/win32/fnmatch.{c,h} are BSD-licensed.
@@ -45,6 +48,7 @@ BuildRequires: libxml2-devel
BuildRequires: sox-devel
# verion 3.0.11 needed for php7 IIRC
BuildRequires: swig >= 3.0.11
+BuildRequires: python2-devel
BuildRequires: freetype-devel
BuildRequires: libexif-devel
BuildRequires: fftw-devel
@@ -82,10 +86,21 @@ tools, xml authoring components, and an extendible plug-in based API.
%package devel
-Summary: Libraries, includes to develop applications with %{name}
-License: LGPLv2+
-Requires: pkgconfig
+Summary: Libraries, includes to develop applications with %{name}
+License: LGPLv2+
+Group: Development/Libraries
+Requires: pkgconfig
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%package -n python2-mlt
+%{?python_provide:%python_provide python2-mlt}
+# Remove before F30
+Provides: %{name}-python = %{version}-%{release}
+Provides: %{name}-python%{?_isa} = %{version}-%{release}
+Obsoletes: %{name}-python < %{version}-%{release}
+Requires: python2
Requires: %{name}%{?_isa} = %{version}-%{release}
+Summary: Python package to work with MLT
%package ruby
Requires: %{name}%{_isa} = %{version}-%{release}
@@ -101,6 +116,9 @@ Summary: PHP package to work with MLT
The %{name}-devel package contains the header files and static libraries for
building applications which use %{name}.
+%description -n python2-mlt
+This module allows to work with MLT using python.
+
%description ruby
This module allows to work with MLT using ruby.
@@ -110,7 +128,6 @@ This module allows to work with MLT using PHP.
%prep
%setup -qn %{name}-%{version}
-%patch0 -p0
chmod 644 src/modules/qt/kdenlivetitle_wrapper.cpp
chmod 644 src/modules/kdenlive/filter_freeze.c
@@ -131,6 +148,13 @@ sed -i 's|-php5|-php7|g' src/swig/php/build
sed -i 's|mlt_wrap.cpp|mlt_wrap.cxx|g' src/swig/php/build
%endif
+%if 0%{?fedora} >= 29
+find src/swig/python -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python2}|'
+sed -i -e 's|which python|which python2|' src/swig/python/build
+sed -i -e 's|python -c|python2 -c|' src/swig/python/build
+sed -i -e 's|python-config|python2-config|' src/swig/python/build
+%endif
+
%build
#export STRIP=/bin/true
%configure \
@@ -143,7 +167,7 @@ sed -i 's|mlt_wrap.cpp|mlt_wrap.cxx|g' src/swig/php/build
--disable-xine \
%endif
--rename-melt=%{name}-melt \
- --swig-languages="%{?with_php: php}%{?with_ruby: ruby}"
+ --swig-languages="python %{?with_php: php}%{?with_ruby: ruby}"
%make_build
@@ -152,6 +176,9 @@ sed -i 's|mlt_wrap.cpp|mlt_wrap.cxx|g' src/swig/php/build
%make_install
# manually do what 'make install' skips
+install -D -pm 0644 src/swig/python/mlt.py %{buildroot}%{python2_sitelib}/mlt.py
+install -D -pm 0755 src/swig/python/_mlt.so %{buildroot}%{python2_sitearch}/_mlt.so
+
%if %{with ruby}
install -D -pm 0755 src/swig/ruby/play.rb %{buildroot}%{ruby_vendorlibdir}/play.rb
install -D -pm 0755 src/swig/ruby/thumbs.rb %{buildroot}%{ruby_vendorlibdir}/thumbs.rb
@@ -176,7 +203,6 @@ export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/
test "$(pkg-config --modversion mlt-framework)" = "%{version}"
test "$(pkg-config --modversion mlt++)" = "%{version}"
-
%ldconfig_scriptlets
%files
@@ -188,6 +214,10 @@ test "$(pkg-config --modversion mlt++)" = "%{version}"
%{_libdir}/libmlt.so.*
%{_datadir}/mlt/
+%files -n python2-mlt
+%{python2_sitelib}/mlt.py*
+%{python2_sitearch}/_mlt.so
+
%if %{with ruby}
%files ruby
%{ruby_vendorlibdir}/play.rb
@@ -212,6 +242,9 @@ test "$(pkg-config --modversion mlt++)" = "%{version}"
%changelog
+* Sun Mar 03 2019 Martin Gansser <martinkg@fedoraproject.org> - 6.12.0-6
+- Re-Add mlt-python2 subpackage
+
* Sat Feb 02 2019 Martin Gansser <martinkg@fedoraproject.org> - 6.12.0-5
- Add mlt-null-pointer-crash.patch fixes (RHBZ #1669010)
@@ -221,7 +254,7 @@ test "$(pkg-config --modversion mlt++)" = "%{version}"
* Mon Jan 21 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 6.12.0-3
- F-30: rebuild against ruby26
-* Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 6.12.0-2
+* Fri Jan 04 2019 Miro Hron�~Mok <mhroncok@redhat.com> - 6.12.0-2
- Remove the Python 2 subpackage (#1628684)
* Thu Nov 29 2018 Martin Gansser <martinkg@fedoraproject.org> - 6.12.0-1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-20 18:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 18:17 [rpms/mlt] epel9-next: Re-Add mlt-python2 subpackage Martin Gansser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox