diff --git a/add_audio_cover.patch b/add_audio_cover.patch new file mode 100644 index 0000000000000000000000000000000000000000..b8e38ddb7f7215f7c9d23709512bf5168581e7a8 --- /dev/null +++ b/add_audio_cover.patch @@ -0,0 +1,9 @@ +--- a/dist/ffmpegthumbnailer.thumbnailer ++++ b/dist/ffmpegthumbnailer.thumbnailer +@@ -1,4 +1,4 @@ + [Thumbnailer Entry] + TryExec=ffmpegthumbnailer + Exec=ffmpegthumbnailer -i %i -o %o -s %s -f +-MimeType=video/jpeg;video/mp4;video/mpeg;video/quicktime;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-ms-asx;video/x-ms-wmx;video/x-ms-wvx;video/x-msvideo;video/x-flv;video/x-matroska;application/x-matroska;application/mxf;video/3gp;video/3gpp;video/dv;video/divx;video/fli;video/flv;video/mp2t;video/mp4v-es;video/msvideo;video/ogg;video/vivo;video/vnd.divx;video/vnd.mpegurl;video/vnd.rn-realvideo;application/vnd.rn-realmedia;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-m4v;video/x-mpeg;video/x-mpeg2;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg ++MimeType=video/jpeg;video/mp4;video/mpeg;video/quicktime;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-ms-asx;video/x-ms-wmx;video/x-ms-wvx;video/x-msvideo;video/x-flv;video/x-matroska;application/x-matroska;application/mxf;video/3gp;video/3gpp;video/dv;video/divx;video/fli;video/flv;video/mp2t;video/mp4v-es;video/msvideo;video/ogg;video/vivo;video/vnd.divx;video/vnd.mpegurl;video/vnd.rn-realvideo;application/vnd.rn-realmedia;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-m4v;video/x-mpeg;video/x-mpeg2;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg;audio/flac;audio/mpeg + diff --git a/ffmpegthumbnailer-2.2.0.tar.gz b/ffmpegthumbnailer-2.2.0.tar.gz deleted file mode 100644 index 191568d9f7826b39bbb422add6c1cd4fe87b5e6e..0000000000000000000000000000000000000000 Binary files a/ffmpegthumbnailer-2.2.0.tar.gz and /dev/null differ diff --git a/ffmpegthumbnailer-2.2.3.tar.gz b/ffmpegthumbnailer-2.2.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..fab7d2dd8f52ef369b7bb9fcf9f9daef7c8174dd Binary files /dev/null and b/ffmpegthumbnailer-2.2.3.tar.gz differ diff --git a/ffmpegthumbnailer.spec b/ffmpegthumbnailer.spec index b48198cd3ed9ad24b00982d2e51cf3cfef0d45c8..e8ada6db2c8c90cc7a74e9070b9034e6e5de8f4f 100644 --- a/ffmpegthumbnailer.spec +++ b/ffmpegthumbnailer.spec @@ -1,14 +1,20 @@ Name: ffmpegthumbnailer -Version: 2.2.0 -Release: 9%{?dist} +Version: 2.2.3 +Release: 1%{?dist}.02 Summary: Lightweight video thumbnailer that can be used by file managers License: GPLv2+ -URL: http://code.google.com/p/ffmpegthumbnailer/ -Source0: https://github.com/dirkvdb/%{name}/archive/%{version}/%{name}-%{version}.tar.gz +URL: https://github.com/dirkvdb/%{name} +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +Patch0: add_audio_cover.patch +Patch1: gcc12_fix.patch -BuildRequires: ffmpeg-devel, libpng-devel, libjpeg-devel -BuildRequires: chrpath, cmake3, gcc-c++ +BuildRequires: ffmpeg-devel +BuildRequires: libpng-devel +BuildRequires: libjpeg-devel +BuildRequires: chrpath +BuildRequires: cmake3 +BuildRequires: gcc-c++ %description @@ -23,19 +29,20 @@ This video thumbnailer can be used to create thumbnails for your video files, development package. %prep -%setup -q +%autosetup -p1 chmod -x README INSTALL COPYING AUTHORS %build %cmake3 -DENABLE_GIO=ON -DENABLE_THUMBNAILER=ON . - +cd anolis-linux-build %make_build %install +cd anolis-linux-build %make_install #chrpath --delete $RPM_BUILD_ROOT%%{_bindir}/ffmpegthumbnailer -find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +find %{buildroot} -name '*.la' -exec rm -f {} ';' %ldconfig_scriptlets @@ -44,7 +51,8 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %license COPYING %{_bindir}/ffmpegthumbnailer %{_libdir}/libffmpegthumbnailer.so.4* -%{_mandir}/man1/ffmpegthumbnailer.1.gz +%{_mandir}/man1/ffmpegthumbnailer.1* +#%{_mandir}/man1/ffmpegthumbnailer.1.gz # gnome thumbnailer registration %dir %{_datadir}/thumbnailers %{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer @@ -56,145 +64,14 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %changelog -* Tue Aug 06 2019 Leigh Scott - 2.2.0-9 -- Rebuild for new ffmpeg version - -* Mon Mar 04 2019 RPM Fusion Release Engineering - 2.2.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Sat Dec 08 2018 Antonio Trande - 2.2.0-7 -- Rebuild for ffmpeg-3.4.5 on el7 -- Use ldconfig_scriptlets -- Use CMake3 - -* Thu Jul 26 2018 RPM Fusion Release Engineering - 2.2.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Mar 08 2018 RPM Fusion Release Engineering - 2.2.0-5 -- Rebuilt for new ffmpeg snapshot - -* Thu Mar 01 2018 RPM Fusion Release Engineering - 2.2.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jan 18 2018 Leigh Scott - 2.2.0-3 -- Rebuilt for ffmpeg-3.5 git - -* Thu Aug 31 2017 RPM Fusion Release Engineering - 2.2.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sun Jun 11 2017 Sérgio Basto - 2.2.0-1 -- Update ffmpegthumbnailer to 2.2.0 - -* Sat Apr 29 2017 Leigh Scott - 2.1.2-3 -- Rebuild for ffmpeg update - -* Sun Mar 19 2017 RPM Fusion Release Engineering - 2.1.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Aug 24 2016 Sérgio Basto - 2.1.2-1 -- Update ffmpegthumbnailer to 2.1.2 -- Clean up spec, add license tag. -- Fix changelog dates. - -* Sat Jul 30 2016 Julian Sikorski - 2.1.1-2 -- Rebuilt for ffmpeg-3.1.1 - -* Sat Jun 25 2016 Leigh Scott - 2.1.1-1 -- 2.1.1 - -* Thu Apr 09 2015 Magnus Tuominen - 2.0.9-1 -- 2.0.9 - -* Sun Oct 19 2014 Sérgio Basto - 2.0.8-11 -- Rebuilt for FFmpeg 2.4.3 - -* Fri Sep 26 2014 Nicolas Chauvet - 2.0.8-10 -- Rebuilt for FFmpeg 2.4.x - -* Thu Aug 07 2014 Sérgio Basto - 2.0.8-9 -- Rebuilt for ffmpeg-2.3 - -* Sat Mar 29 2014 Sérgio Basto - 2.0.8-8 -- Rebuilt for ffmpeg-2.2 - -* Wed Nov 27 2013 Leigh Scott - 2.0.8-7 -- fix compile error - -* Wed Oct 02 2013 Nicolas Chauvet - 2.0.8-6 -- Rebuilt - -* Thu Aug 15 2013 Nicolas Chauvet - 2.0.8-5 -- Rebuilt for FFmpeg 2.0.x - -* Sun May 26 2013 Nicolas Chauvet - 2.0.8-4 -- Rebuilt for x264/FFmpeg - -* Mon Mar 04 2013 Nicolas Chauvet - 2.0.8-3 -- Rebuilt for F-19 Features - -* Sat Nov 24 2012 Nicolas Chauvet - 2.0.8-2 -- Rebuilt for FFmpeg 1.0 - -* Wed Aug 29 2012 Magnus Tuominen - 2.0.8-1 -- 2.0.8 - -* Fri Mar 02 2012 Nicolas Chauvet - 2.0.7-4 -- Rebuilt for c++ ABI breakage - -* Tue Feb 28 2012 Nicolas Chauvet - 2.0.7-3 -- Rebuilt for x264/FFmpeg - -* Wed Feb 08 2012 Nicolas Chauvet - 2.0.7-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Thu Sep 29 2011 Magnus Tuominen - 2.0.7-1 -- new version -- patches merged upstream - -* Mon Sep 26 2011 Nicolas Chauvet - 2.0.6-3 -- Rebuilt for FFmpeg-0.8* - -* Sun Feb 13 2011 Magnus Tuominen - 2.0.6-2 -- patch NULL reference to make rawhide build - -* Fri Feb 04 2011 Magnus Tuominen - 2.0.6-1 -- version bump -- patch libdl link issue -- add BR: automake and autoconf - -* Sun Dec 05 2010 Magnus Tuominen - 2.0.5-1 -- version bump -- enable gio-support - -* Sat Aug 21 2010 Thorsten Leemhuis - 2.0.4-2 -- rebuilt - -* Wed Aug 18 2010 Magnus Tuominen 2.0.4-1 -- version bump - -* Sun May 16 2010 Magnus Tuominen 2.0.2-1 -- version bump - -* Mon Apr 19 2010 Magnus Tuominen 2.0.1-1 -- version bump -- libspatch.patch merged upstream, issue 59 +* Tue Apr 22 2025 zhaoshuang - 2.2.3-1.02 +- fix: rebuild after disabling secure compilation(bugid:313453) -* Mon Apr 12 2010 Magnus Tuominen 2.0.0-3 -- drop _kde4_ macros -- moving chmod to %%prep -- moving %%{_includedir}/libffmpegthumbnailer to -devel -- track sonames closer -- license change to GPLv2+ -- remove duplicate docs from -devel -- patching libs in pkgconfig%%{name}.pc, thanks to rdieter +* Mon Dec 02 2024 yangfei - 2.2.3-1.01 +- rebuild: rebuild -* Sun Apr 11 2010 leigh scott 2.0.0-2 -- fix rpath -- enable jpeg and png support -- clean up spec file -- remove static libs as they aren't needed -- add docs +* Mon Mar 11 2024 peijiankang - 2.2.3-1 +- update to 2.2.3 to fix build error about ffmpeg-6.1 -* Sat Apr 10 2010 Magnus Tuominen 2.0.0-1 -- initial build -- has to be built with "QA_RPATHS=$[0x0001|0x0010 ]" for now +* Thu May 13 2021 He Rengui - 2.2.2-1 +- package init diff --git a/gcc12_fix.patch b/gcc12_fix.patch new file mode 100644 index 0000000000000000000000000000000000000000..b5c737caa37986c7441cec907ab370dd270203f4 --- /dev/null +++ b/gcc12_fix.patch @@ -0,0 +1,10 @@ +--- b/libffmpegthumbnailer/videothumbnailer.cpp ++++ a/libffmpegthumbnailer/videothumbnailer.cpp +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + #include + #include + #include