[11752] | 1 | # Basic Information |
---|
| 2 | Name: ffmpegthumbnailer |
---|
| 3 | Version: 2.2.0 |
---|
| 4 | Release: 2%{?_dist_release} |
---|
| 5 | # COPYING ÈÇðQÆµÄ License ðC³µÄ¾³¢B |
---|
| 6 | License: GPLv2+ |
---|
| 7 | # /usr/share/doc/rpm-4.11.1/GROUPS_for_vine.txt ðQÆµÄ Group ðC³µÄ¾³¢B |
---|
| 8 | Group: Applications/Multimedia |
---|
| 9 | #URL: http://code.google.com/p/ffmpegthumbnailer/ |
---|
| 10 | URL: https://github.com/dirkvdb/ffmpegthumbnailer |
---|
| 11 | #Source0: http://gdurl.com/z9ne/download/ffmpegthumbnailer-%{version}.tar.gz |
---|
| 12 | Source0: https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/%{version}/ffmpegthumbnailer-%{version}.tar.bz2 |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | |
---|
| 15 | Vendor: Project Vine |
---|
| 16 | Distribution: Vine Linux |
---|
| 17 | Packager: Shirow HIGA |
---|
| 18 | |
---|
| 19 | Summary: Lightweight video thumbnailer that can be used by file managers |
---|
| 20 | #Summary(ja): ±±Éú{êÅTvðLqµÄ¾³¢B |
---|
| 21 | |
---|
| 22 | # Dependency |
---|
| 23 | # ȺÉ˶ÖWðLqµÄ¾³¢ B |
---|
| 24 | BuildRequires: ffmpeg-devel |
---|
| 25 | BuildRequires: libpng-devel |
---|
| 26 | BuildRequires: libjpeg-turbo-devel |
---|
| 27 | BuildRequires: chrpath |
---|
| 28 | BuildRequires: automake |
---|
| 29 | BuildRequires: autoconf |
---|
| 30 | |
---|
| 31 | #ÇÁÌ\[Xt@C |
---|
| 32 | |
---|
| 33 | #ÇÁÌpb`t@C |
---|
| 34 | |
---|
| 35 | %description |
---|
| 36 | This video thumbnailer can be used to create thumbnails for your video files. |
---|
| 37 | |
---|
| 38 | #%description -l ja |
---|
| 39 | #±±Éú{êÅÚ×ðLqµÄ¾³¢B |
---|
| 40 | |
---|
| 41 | %package devel |
---|
| 42 | Summary: Headers and libraries for building apps that use ffmpegthumbnailer |
---|
| 43 | Group: Development/Libraries |
---|
| 44 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 45 | |
---|
| 46 | %description devel |
---|
| 47 | This video thumbnailer can be used to create thumbnails for your video files, |
---|
| 48 | development package. |
---|
| 49 | |
---|
| 50 | %prep |
---|
| 51 | %setup -q |
---|
| 52 | chmod -x README INSTALL COPYING AUTHORS |
---|
| 53 | |
---|
| 54 | %if "%{version}" >= "2.1.0" |
---|
| 55 | cmake -DCMAKE_BUILD_TYPE=Release \ |
---|
| 56 | -DCMAKE_INSTALL_BINDIR=%{_bindir} \ |
---|
| 57 | -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ |
---|
| 58 | -DCMAKE_INSTALL_MANDIR=%{_mandir} \ |
---|
| 59 | -DCMAKE_INSTALL_DATADIR=%{_datadir} \ |
---|
| 60 | -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \ |
---|
| 61 | -DENABLE_GIO=ON \ |
---|
| 62 | -DENABLE_THUMBNAILER=ON |
---|
| 63 | %else |
---|
| 64 | cmake -DCMAKE_BUILD_TYPE=Release \ |
---|
| 65 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
---|
| 66 | -DENABLE_GIO=ON \ |
---|
| 67 | -DENABLE_THUMBNAILER=ON |
---|
| 68 | %endif |
---|
| 69 | |
---|
| 70 | make %{?_smp_mflags} |
---|
| 71 | |
---|
| 72 | %install |
---|
| 73 | rm -rf $RPM_BUILD_ROOT |
---|
| 74 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 75 | chrpath --delete $RPM_BUILD_ROOT/%{_bindir}/ffmpegthumbnailer |
---|
| 76 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 77 | |
---|
| 78 | %if "%{version}" >= "2.1.0" |
---|
| 79 | %else |
---|
| 80 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 |
---|
| 81 | mv $RPM_BUILD_ROOT/usr/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1 |
---|
| 82 | %endif |
---|
| 83 | |
---|
| 84 | %clean |
---|
| 85 | rm -rf $RPM_BUILD_ROOT |
---|
| 86 | |
---|
| 87 | %post -p /sbin/ldconfig |
---|
| 88 | %postun -p /sbin/ldconfig |
---|
| 89 | |
---|
| 90 | %files |
---|
| 91 | %defattr(-,root,root,-) |
---|
| 92 | %doc README COPYING AUTHORS |
---|
| 93 | %{_bindir}/ffmpegthumbnailer |
---|
| 94 | %{_libdir}/libffmpegthumbnailer.so.4* |
---|
| 95 | %{_mandir}/man1/ffmpegthumbnailer.1.gz |
---|
| 96 | # gnome thumbnailer registration |
---|
| 97 | %dir %{_datadir}/thumbnailers |
---|
| 98 | %{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer |
---|
| 99 | |
---|
| 100 | %files devel |
---|
| 101 | %defattr(-,root,root,-) |
---|
| 102 | %{_libdir}/libffmpegthumbnailer.so |
---|
| 103 | %{_libdir}/pkgconfig/libffmpegthumbnailer.pc |
---|
| 104 | %{_includedir}/libffmpegthumbnailer/ |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | %changelog |
---|
| 108 | * Thu Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-2 |
---|
| 109 | - Rebuild with ffmpeg 4.0 |
---|
| 110 | * Fri Mar 31 2017 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-1 |
---|
| 111 | - new upstream release |
---|
| 112 | * Fri Aug 19 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.2-1 |
---|
| 113 | - new upstream release |
---|
| 114 | * Mon Feb 29 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.1-1 |
---|
| 115 | - new upstream release |
---|
| 116 | * Sat Nov 7 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.1.0-1 |
---|
| 117 | - new upstream release |
---|
| 118 | * Tue Jun 16 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.10-1 |
---|
| 119 | - new upstream release |
---|
| 120 | - update Source0 |
---|
| 121 | - change for URL (https://github.com/dirkvdb/ffmpegthumbnailer) |
---|
| 122 | * Mon Jan 12 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.9-1 |
---|
| 123 | - initial build for Vine Linux |
---|