#For git snapshots, set to 0 to use release instead: %global usesnapshot 0 %if 0%{?usesnapshot} %global commit0 21710f51e7f14e14bfed998ef2df8cc444d26776 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global snapshottag .git%{shortcommit0} %endif %global unique_name io.github.jliljebl.Flowblade Name: flowblade %if 0%{?usesnapshot} Version: 2.14.0.2 Release: 1%{?dist} %else Version: 2.16.2 Release: 3%{?dist} %endif License: GPL-3.0-only Summary: Multitrack non-linear video editor for Linux Url: https://github.com/jliljebl/flowblade %if 0%{?usesnapshot} Source0: %{url}/archive/%{commit0}/%{name}-%{version}-%{shortcommit0}.tar.gz %else Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz %endif Patch0: %{name}_sys_path.patch Patch1: %{name}-invalid-escape-sequence.patch BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: /usr/bin/ffmpeg Requires: python3-mlt Requires: frei0r-plugins >= 1.4 Requires: gmic Requires: gtk3 # This dependency isn't available anymore since f30 Requires: ladspa-swh-plugins Requires: librsvg2 Requires: python3-numpy Requires: python3-pillow Requires: python3-dbus Requires: python3-gobject-base Requires: python3-libusb1 Requires: shared-mime-info%{?_isa} BuildArch: noarch %description Flowblade Movie Editor is a multitrack non-linear video editor for Linux released under GPL 3 license. Flowblade is designed to provide a fast, precise and robust editing experience. In Flowblade clips are usually automatically placed tightly after or between clips when they are inserted on the timeline. Edits are fine tuned by trimming in and out points of clips, or by cutting and deleting parts of clips. Flowblade provides powerful tools to mix and filter video and audio. %prep %if 0%{?usesnapshot} %setup -qn %{name}-%{commit0} %else %autosetup -p1 -n %{name}-%{version} %endif # fix wrong-script-interpreter errors sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python3|g' flowblade-trunk/Flowblade/launch/* sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python3|g' flowblade-trunk/Flowblade/tools/clapperless.py # fix to %%{_datadir}/locale sed -i "s|respaths.LOCALE_PATH|'%{_datadir}/locale'|g" flowblade-trunk/Flowblade/translations.py %build cd flowblade-trunk %py3_build %install cd flowblade-trunk %py3_install # fix permissions chmod +x %{buildroot}%{python3_sitelib}/Flowblade/launch/* # setup of mime is already done, so for what we need this file ? rm %{buildroot}/usr/lib/mime/packages/flowblade # move .mo files to /usr/share/locale the right place for i in $(ls -d %{buildroot}%{python3_sitelib}/Flowblade/locale/*/LC_MESSAGES/ | sed 's/\(^.*locale\/\)\(.*\)\(\/LC_MESSAGES\/$\)/\2/') ; do mkdir -p %{buildroot}%{_datadir}/locale/$i/LC_MESSAGES/ mv %{buildroot}%{python3_sitelib}/Flowblade/locale/$i/LC_MESSAGES/%{name}.mo \ %{buildroot}%{_datadir}/locale/$i/LC_MESSAGES/ done # E: non-executable-script chmod a+x %{buildroot}%{python3_sitelib}/Flowblade/tools/clapperless.py chmod a+x %{buildroot}%{python3_sitelib}/Flowblade/tools/exportardour.py %find_lang %{name} %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{unique_name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml %files -f flowblade-trunk/%{name}.lang %doc flowblade-trunk/README %license flowblade-trunk/COPYING %{_bindir}/%{name} %{_datadir}/applications/%{unique_name}.desktop %{_mandir}/man1/%{name}.1.* %{_datadir}/mime/packages/%{unique_name}.xml %{_datadir}/metainfo/%{unique_name}.appdata.xml %{_datadir}/icons/hicolor/128x128/apps/%{unique_name}.png %{python3_sitelib}/Flowblade/ %{python3_sitelib}/%{name}* %changelog * Sun Jun 16 2024 Martin Gansser - 2.16.2-3 - Changed RR python3-gobject to python3-gobject-base * Wed Jun 12 2024 Martin Gansser - 2.16.2-2 - Changed RR ffmpeg to RR /usr/bin/ffmpeg * Sat Jun 08 2024 Martin Gansser - 2.16.2-1 - Update to 2.16.2 - Add %%{name}-invalid-escape-sequence.patch * Wed May 29 2024 Martin Gansser - 2.16-2 - Add RR python3-libusb1 * Wed May 29 2024 Martin Gansser - 2.16-1 - Update to 2.16 * Thu May 02 2024 Leigh Scott - 2.14.0.2-1 - Update to 2.14.0.2 release * Tue Apr 09 2024 Martin Gansser - 2.14.0.1-1 - Update to 2.14.0.1 * Sat Feb 03 2024 RPM Fusion Release Engineering - 2.12.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Jan 02 2024 Martin Gansser - 2.12.0.2-1 - Update to 2.12.0.2 * Sun Dec 03 2023 Martin Gansser - 2.12-1 - Update to 2.12 * Sat Aug 05 2023 Martin Gansser - 2.10.0.4-1 - Update to 2.10.0.4 * Wed Aug 02 2023 RPM Fusion Release Engineering - 2.8.0.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jul 08 2023 Leigh Scott - 2.8.0.3-8 - Rebuilt for Python 3.12 * Sun Aug 07 2022 RPM Fusion Release Engineering - 2.8.0.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg 5.1 * Sat Jun 25 2022 Robert-André Mauchin - 2.8.0.3-6 - Rebuilt for Python 3.11 * Mon Feb 14 2022 Sérgio Basto - 2.8.0.3-5 - Add patch to mlt7 * Wed Feb 09 2022 RPM Fusion Release Engineering - 2.8.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Aug 02 2021 RPM Fusion Release Engineering - 2.8.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 15 2021 Leigh Scott - 2.8.0.3-2 - Rebuild for python-3.10 * Wed Jun 02 2021 Martin Gansser - 2.8.0.3-1 - Update to 2.8.0.3 * Thu Feb 18 2021 Martin Gansser - 2.8.0.2-1 - Update to 2.8.0.2 * Mon Feb 15 2021 Martin Gansser - 2.8-1 - Update to 2.8 * Wed Feb 03 2021 RPM Fusion Release Engineering - 2.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Oct 28 2020 Martin Gansser - 2.6.3-1 - Update to 2.6.3 * Tue Oct 20 2020 Martin Gansser - 2.6.2-1 - Update to 2.6.2 * Sat Oct 17 2020 Martin Gansser - 2.6.1-1 - Update to 2.6.1 * Mon Aug 17 2020 RPM Fusion Release Engineering - 2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jul 09 2020 Martin Gansser - 2.6-1 - Update to 2.6 * Sat May 30 2020 Leigh Scott - 2.4.0.1-2 - Rebuild for python-3.9 * Thu Feb 20 2020 Leigh Scott - 2.4.0.1-1 - Update 2.4.0.1 (rfbz#5529) * Tue Feb 04 2020 RPM Fusion Release Engineering - 2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Dec 13 2019 Martin Gansser - 2.4-1 - Update to 2.4-1 - Switched to python3 * Thu Sep 12 2019 Sérgio Basto - 2.2-1 - Update Flowblade to 2.2 * Fri Aug 09 2019 RPM Fusion Release Engineering - 2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Apr 08 2019 Nicolas Chauvet - 2.0-4 - Drop ladspa-swh-plugins on f30+ * Fri Mar 08 2019 Sérgio Basto - 2.0-3 - Requires python2-mlt instead mlt-python * Mon Mar 04 2019 RPM Fusion Release Engineering - 2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Feb 04 2019 Martin Gansser - 2.0-1 - Update to 2.0-1 * Thu Jul 26 2018 RPM Fusion Release Engineering - 1.16.0-5.git4c25c3c - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jul 14 2018 Martin Gansser - 1.16.0-4.git4c25c3c - Update to 1.16.0-4.git4c25c3c * Thu Jun 28 2018 Martin Gansser - 1.16.0-3.git3fdb76d - Update to 1.16.0-3.git3fdb76d - Add BR libappstream-glib * Sun Apr 01 2018 Martin Gansser - 1.16.0-2.gitd2f153f - Use url macro to shorten line - Fix python requires for f28 and remove old mlt-freeworld conditional - Fix directory ownership - Remove scriplets * Sun Apr 01 2018 Martin Gansser - 1.16.0-1.gitd2f153f - Update to 1.16.0-1.gitd2f153f * Thu Mar 01 2018 RPM Fusion Release Engineering - 1.14.0-2.gitc2cc6a8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Oct 06 2017 Martin Gansser - 1.14.0-1.gitc2cc6a8 - Update to 1.14.0-1.gitc2cc6a8 * Thu Aug 31 2017 RPM Fusion Release Engineering - 1.12.0-2.gitfd577a9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Mar 24 2017 Martin Gansser - 1.12.0-1.gitfd577a9 - Update to 1.12.0-1.gitfd577a9 * Sun Mar 19 2017 RPM Fusion Release Engineering - 1.10.0-4.git9365491 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 22 2016 Martin Gansser - 1.10.0-3.git25c07ce - rebuild * Fri Dec 16 2016 Martin Gansser - 1.10.0-2.git25c07ce - Readd ffmpeg - Add Requires mlt-freeworld in a if clause * Thu Dec 15 2016 Martin Gansser - 1.10.0-1.git25c07ce - Update to 1.10.0-1.git25c07ce - Dropped Requires ffmpeg - Add Requires mlt-freeworld * Thu Sep 22 2016 Martin Gansser - 1.8.0-1.git9365491 - Update to 1.8.0-1.git9365491 * Fri Aug 26 2016 Leigh Scott - 1.6.0-5.gitc847b32 - Fix python requires for F23 (rfbz#4213) * Wed Aug 17 2016 Leigh Scott - 1.6.0-4.gitc847b32 - Update package requires for git snapshot * Mon Aug 01 2016 Sérgio Basto - 1.6.0-3.gitc847b32 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Jun 30 2016 Martin Gansser - 1.6.0-2.gitc847b32 - Update to 1.6.0-2.gitc847b32 * Thu Jun 09 2016 Martin Gansser - 1.6.0-1.git50f6fca - Update to 1.6.0 * Mon Nov 30 2015 Martin Gansser - 1.4.0-1.git3f5d08d - Update to 1.4.0 * Fri Sep 11 2015 Martin Gansser - 1.2.0-1.git7d98158 - Update to 1.2.0 * Thu Aug 27 2015 Martin Gansser - 1.1.0-6.git7d98158 - spec cleanup * Sat Jul 18 2015 Martin Gansser - 1.1.0-5.git94f69ce - dropped gnome-python2-gnomevfs requirement - dropped ladspa requirement - dropped pycairo requirement - dropped mlt requirement - dropped calf requirement - dropped numpy requirement - dropped cairo requirement * Mon Jun 22 2015 Martin Gansser - 1.1.0-4.git94f69ce - Fix file permissions before and after build - Remove flowblade mime file - move .mo files to /usr/share/locale * Sun Jun 21 2015 Martin Gansser - 1.1.0-3.git94f69ce - added flowblade.patch - put setup.py into %%build section - added macro %%find_lang - fixed locale path * Sat Jun 20 2015 Martin Gansser - 1.1.0-2.git94f69ce - used macro %%{python_sitearch} - spec file cleanup - mime file belong to %%{_libexecdir} * Fri Jun 19 2015 Martin Gansser - 1.1.0-1.git94f69ce - Update to 1.1.0 * Fri Mar 20 2015 David Vásquez - 0.18.0-1 - Updated to 0.18.0 * Sat Jul 05 2014 David Vásquez 0.12.0-1 - Updated to 0.12.0 * Thu Oct 24 2013 David Vásquez 0.10.0-1 - Initial build rpm Fedora