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: Revert Revert-Prefer-qimage-over-pixbuf.patch
Date: Mon, 20 Jul 2026 18:17:16 GMT	[thread overview]
Message-ID: <178457143686.1.51901160312566024.rpms-mlt-f6da6b6f0913@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/mlt
            Branch : epel9-next
            Commit : f6da6b6f0913b6c9347fd12b9c89a82cfb133702
            Author : Martin Gansser <mgansser@online.de>
            Date   : 2018-07-13T14:18:11+02:00
            Stats  : +13/-6 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/mlt/c/f6da6b6f0913b6c9347fd12b9c89a82cfb133702?branch=epel9-next

            Log:
            Revert Revert-Prefer-qimage-over-pixbuf.patch
Add 'if' conditions to fix missing python2 on Fedora 29

---
diff --git a/mlt.spec b/mlt.spec
index c2aa15d..17beca5 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.10.0
-Release:        3%{?gver}%{?dist}
+Release:        2%{?gver}%{?dist}
 Summary:        Toolkit for broadcasters, video editors, media players, transcoders
 
 # mlt/src/win32/fnmatch.{c,h} are BSD-licensed.
@@ -123,7 +126,7 @@ This module allows to work with MLT using PHP.
 
 
 %prep
-%setup -n %{name}-%{version}
+%setup -qn %{name}-%{version}
 
 chmod 644 src/modules/qt/kdenlivetitle_wrapper.cpp
 chmod 644 src/modules/kdenlive/filter_freeze.c
@@ -144,6 +147,12 @@ 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
@@ -234,11 +243,9 @@ test "$(pkg-config --modversion mlt++)" = "%{version}"
 
 
 %changelog
-* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.10.0-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Thu Jul 12 2018 Martin Gansser <martinkg@fedoraproject.org> - 6.10.0-2
+* Fri Jul 13 2018 Martin Gansser <martinkg@fedoraproject.org> - 6.10.0-2
 - Revert Revert-Prefer-qimage-over-pixbuf.patch
+- Add 'if' conditions to fix missing python2 on Fedora 29
 
 * Tue Jul 03 2018 Martin Gansser <martinkg@fedoraproject.org> - 6.10.0-1
 - Update to 6.10.0

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-20 18:17 Martin Gansser [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-07-20 18:17 [rpms/mlt] epel9-next: Revert Revert-Prefer-qimage-over-pixbuf.patch Martin Gansser

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=178457143686.1.51901160312566024.rpms-mlt-f6da6b6f0913@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