public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Martin Gansser <mgansser@online.de>
To: git-commits@fedoraproject.org
Subject: [rpms/mlt] epel9-next: Re-Add mlt-python2 subpackage
Date: Mon, 20 Jul 2026 18:17:22 GMT	[thread overview]
Message-ID: <178457144298.1.176887930775893099.rpms-mlt-66d86f2e236b@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-07-20 18:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178457144298.1.176887930775893099.rpms-mlt-66d86f2e236b@fedoraproject.org \
    --to=mgansser@online.de \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox