[3143] | 1 | %define pkg_version 0.27 |
---|
| 2 | %define pkg_release 1%{?_dist_release} |
---|
[615] | 3 | |
---|
| 4 | Summary: Convert any file that ffmpeg can decode to theora |
---|
| 5 | Summary(ja): ffmpeg がデコード可能なファイルを theora に変換するツール |
---|
| 6 | Name: ffmpeg2theora |
---|
| 7 | Version: %{pkg_version} |
---|
| 8 | Release: %{pkg_release} |
---|
[3143] | 9 | Source0: http://www.v2v.cc/~j/ffmpeg2theora/downloads/%{name}-%{version}.tar.bz2 |
---|
| 10 | Patch0: ffmpeg2theora-0.27-ldflags.patch |
---|
[615] | 11 | License: GPL |
---|
| 12 | Group: Applications/Multimedia |
---|
| 13 | URL: http://www.v2v.cc/~j/ffmpeg2theora/ |
---|
| 14 | |
---|
| 15 | BuildRequires: scons |
---|
[3143] | 16 | BuildRequires: libogg-devel >= 1.1 |
---|
| 17 | BuildRequires: libtheora-devel >= 1.1.0 |
---|
| 18 | BuildRequires: libvorbis-devel |
---|
[615] | 19 | ### *-devel pacages provided by other self-build-* should only be listed |
---|
| 20 | ### in self-build-%{name}.spec as PreReq. |
---|
| 21 | # |
---|
[3143] | 22 | # BuildRequires: ffmpeg-devel >= 0.6.1 |
---|
[615] | 23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | with ffmpeg2theora you can convert any file that ffmpeg can |
---|
| 28 | decode to theora. right now the settings are hardcoded into |
---|
| 29 | the binary. |
---|
| 30 | |
---|
| 31 | %description -l ja |
---|
| 32 | ffmpeg2theora を使えば ffmpeg がデコードできるどんな種類のファイル |
---|
| 33 | でも theora 形式に変換できます。現状、設定情報はハードコードされて |
---|
| 34 | います。 |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | |
---|
| 39 | %setup -q |
---|
[3143] | 40 | %patch0 -p1 -b .ldflags |
---|
[615] | 41 | |
---|
| 42 | |
---|
| 43 | %build |
---|
| 44 | scons APPEND_CCFLAGS="$RPM_OPT_FLAGS" |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 49 | scons install destdir=$RPM_BUILD_ROOT prefix=%{_prefix} |
---|
[3143] | 50 | %__mkdir_p $RPM_BUILD_ROOT%{_mandir}/man1 |
---|
| 51 | %__mv $RPM_BUILD_ROOT%{_prefix}/man/man1/ffmpeg2theora.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
---|
| 52 | %__rm -rf $RPM_BUILD_ROOT%{_prefix}/man |
---|
[615] | 53 | |
---|
| 54 | |
---|
| 55 | %clean |
---|
[3143] | 56 | %__rm -rf ${RPM_BUILD_ROOT} |
---|
[615] | 57 | |
---|
| 58 | |
---|
| 59 | %files |
---|
| 60 | %defattr(-,root,root) |
---|
| 61 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
---|
| 62 | %{_bindir}/ffmpeg2theora |
---|
| 63 | %{_mandir}/man1/ffmpeg2theora.1.gz |
---|
| 64 | |
---|
| 65 | %changelog |
---|
[3143] | 66 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.27-1 |
---|
| 67 | - new upstream release |
---|
| 68 | - fixed the location of %%Source0 |
---|
| 69 | |
---|
[615] | 70 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.25-2 |
---|
| 71 | - change release to sync with self-build-ffmpeg2theora |
---|
| 72 | |
---|
| 73 | * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.25-1 |
---|
| 74 | - new upstream release |
---|
| 75 | - with recent ffmpeg |
---|
| 76 | |
---|
| 77 | * Sat Jun 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.24-1 |
---|
| 78 | - new upstream release |
---|
| 79 | |
---|
| 80 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.23-2 |
---|
| 81 | - change release to sync with self-build-ffmpeg2theora |
---|
| 82 | |
---|
| 83 | * Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.23-1 |
---|
| 84 | - new upstream release |
---|
| 85 | - dropped ffmpeg2theora-0.20-new_ffmpeg.patch |
---|
| 86 | - added BuildRequires: scons |
---|
| 87 | |
---|
| 88 | * Sat May 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.20-2 |
---|
| 89 | - spec in utf8 |
---|
| 90 | |
---|
| 91 | * Sat May 17 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.20-1 |
---|
| 92 | - initial build for Vine Linux |
---|