[11752] | 1 | # Basic Information |
---|
| 2 | Name: ffmpegthumbnailer |
---|
| 3 | Version: 2.2.0 |
---|
[11753] | 4 | Release: 3%{?_dist_release} |
---|
| 5 | # COPYING などを参照して License を修正してください。 |
---|
[11752] | 6 | License: GPLv2+ |
---|
[11753] | 7 | # /usr/share/doc/rpm-4.11.1/GROUPS_for_vine.txt を参照して Group を修正してください。 |
---|
[11752] | 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 |
---|
[11753] | 17 | Packager: Shirow HIGA, iwaim |
---|
[11752] | 18 | |
---|
| 19 | Summary: Lightweight video thumbnailer that can be used by file managers |
---|
[11753] | 20 | #Summary(ja): ここに日本語で概要を記述してください。 |
---|
[11752] | 21 | |
---|
| 22 | # Dependency |
---|
[11753] | 23 | # 以下に依存関係を記述してください 。 |
---|
[11752] | 24 | BuildRequires: libpng-devel |
---|
| 25 | BuildRequires: libjpeg-turbo-devel |
---|
| 26 | BuildRequires: chrpath |
---|
[11753] | 27 | BuildRequires: cmake >= 2.8.5 |
---|
[11752] | 28 | BuildRequires: automake |
---|
| 29 | BuildRequires: autoconf |
---|
[11753] | 30 | ## *-devel pacages provided by other self-build-* should only be listed |
---|
| 31 | ## in self-build-%{name}.spec |
---|
| 32 | #BuildRequires: ffmpeg-devel >= 2.3 |
---|
[11752] | 33 | |
---|
[11753] | 34 | #追加のソースファイル |
---|
[11752] | 35 | |
---|
[11753] | 36 | #追加のパッチファイル |
---|
[11752] | 37 | |
---|
| 38 | %description |
---|
| 39 | This video thumbnailer can be used to create thumbnails for your video files. |
---|
| 40 | |
---|
| 41 | #%description -l ja |
---|
[11753] | 42 | #ここに日本語で詳細を記述してください。 |
---|
[11752] | 43 | |
---|
| 44 | %package devel |
---|
| 45 | Summary: Headers and libraries for building apps that use ffmpegthumbnailer |
---|
| 46 | Group: Development/Libraries |
---|
| 47 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 48 | |
---|
| 49 | %description devel |
---|
| 50 | This video thumbnailer can be used to create thumbnails for your video files, |
---|
| 51 | development package. |
---|
| 52 | |
---|
| 53 | %prep |
---|
| 54 | %setup -q |
---|
| 55 | chmod -x README INSTALL COPYING AUTHORS |
---|
| 56 | |
---|
| 57 | %if "%{version}" >= "2.1.0" |
---|
| 58 | cmake -DCMAKE_BUILD_TYPE=Release \ |
---|
| 59 | -DCMAKE_INSTALL_BINDIR=%{_bindir} \ |
---|
| 60 | -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ |
---|
| 61 | -DCMAKE_INSTALL_MANDIR=%{_mandir} \ |
---|
| 62 | -DCMAKE_INSTALL_DATADIR=%{_datadir} \ |
---|
| 63 | -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \ |
---|
| 64 | -DENABLE_GIO=ON \ |
---|
| 65 | -DENABLE_THUMBNAILER=ON |
---|
| 66 | %else |
---|
| 67 | cmake -DCMAKE_BUILD_TYPE=Release \ |
---|
| 68 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
---|
| 69 | -DENABLE_GIO=ON \ |
---|
| 70 | -DENABLE_THUMBNAILER=ON |
---|
| 71 | %endif |
---|
| 72 | |
---|
| 73 | make %{?_smp_mflags} |
---|
| 74 | |
---|
| 75 | %install |
---|
| 76 | rm -rf $RPM_BUILD_ROOT |
---|
| 77 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 78 | chrpath --delete $RPM_BUILD_ROOT/%{_bindir}/ffmpegthumbnailer |
---|
| 79 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 80 | |
---|
[11753] | 81 | %if "%{version}" < "2.1.0" |
---|
[11752] | 82 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 |
---|
| 83 | mv $RPM_BUILD_ROOT/usr/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1 |
---|
| 84 | %endif |
---|
| 85 | |
---|
| 86 | %clean |
---|
| 87 | rm -rf $RPM_BUILD_ROOT |
---|
| 88 | |
---|
| 89 | %post -p /sbin/ldconfig |
---|
| 90 | %postun -p /sbin/ldconfig |
---|
| 91 | |
---|
| 92 | %files |
---|
| 93 | %defattr(-,root,root,-) |
---|
| 94 | %doc README COPYING AUTHORS |
---|
| 95 | %{_bindir}/ffmpegthumbnailer |
---|
| 96 | %{_libdir}/libffmpegthumbnailer.so.4* |
---|
| 97 | %{_mandir}/man1/ffmpegthumbnailer.1.gz |
---|
| 98 | # gnome thumbnailer registration |
---|
| 99 | %dir %{_datadir}/thumbnailers |
---|
| 100 | %{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer |
---|
| 101 | |
---|
| 102 | %files devel |
---|
| 103 | %defattr(-,root,root,-) |
---|
| 104 | %{_libdir}/libffmpegthumbnailer.so |
---|
| 105 | %{_libdir}/pkgconfig/libffmpegthumbnailer.pc |
---|
| 106 | %{_includedir}/libffmpegthumbnailer/ |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | %changelog |
---|
[11753] | 110 | * Sun Jun 17 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 2.2.0-3 |
---|
| 111 | - add Packager |
---|
| 112 | - update BuildRequires |
---|
| 113 | |
---|
| 114 | * Tue Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-2 |
---|
[11752] | 115 | - Rebuild with ffmpeg 4.0 |
---|
[11753] | 116 | |
---|
[11752] | 117 | * Fri Mar 31 2017 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-1 |
---|
| 118 | - new upstream release |
---|
[11753] | 119 | |
---|
[11752] | 120 | * Fri Aug 19 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.2-1 |
---|
| 121 | - new upstream release |
---|
[11753] | 122 | |
---|
[11752] | 123 | * Mon Feb 29 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.1-1 |
---|
| 124 | - new upstream release |
---|
[11753] | 125 | |
---|
[11752] | 126 | * Sat Nov 7 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.1.0-1 |
---|
| 127 | - new upstream release |
---|
[11753] | 128 | |
---|
[11752] | 129 | * Tue Jun 16 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.10-1 |
---|
| 130 | - new upstream release |
---|
| 131 | - update Source0 |
---|
| 132 | - change for URL (https://github.com/dirkvdb/ffmpegthumbnailer) |
---|
[11753] | 133 | |
---|
[11752] | 134 | * Mon Jan 12 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.9-1 |
---|
| 135 | - initial build for Vine Linux |
---|