[1816] | 1 | %define pkgname mjpegtools |
---|
| 2 | %define name self-build-%{pkgname} |
---|
| 3 | %define version 1.9.0 |
---|
| 4 | %define release 1%{?_dist_release} |
---|
| 5 | |
---|
| 6 | %define sourceurl0 http://prdownloads.sourceforge.net/mjpeg/%{pkgname}-%{version}.tar.gz |
---|
| 7 | |
---|
| 8 | Summary: Package to automatically build %{pkgname} rpm package |
---|
| 9 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
| 10 | Name: %{name} |
---|
| 11 | Version: %{version} |
---|
| 12 | Release: %{release} |
---|
| 13 | |
---|
| 14 | Source0: %{pkgname}-vl.spec |
---|
| 15 | Source100: mjpegtools-1.9.0rc1-anytovcd-ffmpegver.patch |
---|
| 16 | Source101: mjpegtools-1.9.0-gcc44.patch |
---|
| 17 | Source102: mjpegtools-1.9.0-png-memleak.patch |
---|
| 18 | |
---|
| 19 | License: GPLv2+ |
---|
| 20 | Group: Restricted Software |
---|
| 21 | |
---|
| 22 | # Requires(posttrans) not yet implemented. So we use (post) instead. |
---|
| 23 | Requires(post): self-build-setup >= 0.9.0 |
---|
| 24 | |
---|
| 25 | Requires(post): libjpeg-devel |
---|
| 26 | Requires(post): nasm |
---|
| 27 | Requires(post): libdv-devel |
---|
| 28 | Requires(post): SDL-devel >= 1.1.3 |
---|
| 29 | Requires(post): SDL_gfx-devel |
---|
| 30 | Requires(post): self-build-libquicktime >= 0.9.8 |
---|
| 31 | Requires(post): libpng-devel |
---|
| 32 | Requires(post): gtk2-devel >= 2.4.0 |
---|
| 33 | Requires(post): self-build-mplayer |
---|
| 34 | Requires(post): self-build-ffmpeg |
---|
| 35 | #Requires(post): y4mscaler |
---|
| 36 | Requires: which |
---|
| 37 | Requires(post): /sbin/install-info |
---|
| 38 | Requires(preun): /sbin/install-info |
---|
| 39 | |
---|
| 40 | BuildArch: noarch |
---|
| 41 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 42 | |
---|
| 43 | Packager: munepi |
---|
| 44 | |
---|
| 45 | %description |
---|
| 46 | The mjpeg programs are a set of tools that can do recording of videos |
---|
| 47 | and playback, simple cut-and-paste editing and the MPEG compression of |
---|
| 48 | audio and video under Linux. |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | If you install this package, it automaticaly downloads source |
---|
| 52 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
| 53 | And the created rpm packages are automatically installed |
---|
| 54 | if installation is executed by apt-get command or synaptic |
---|
| 55 | package manager. |
---|
| 56 | |
---|
| 57 | [Note] |
---|
| 58 | This package requires many other packages to compile |
---|
| 59 | targetsoftware. So it consume more disk space than usual. |
---|
| 60 | Also installation takes logner time because of compilation. |
---|
| 61 | (This will take a few minutes to quarter or half of an hour, |
---|
| 62 | depends on building environment) |
---|
| 63 | |
---|
| 64 | [About self-build package] |
---|
| 65 | For some kind of software, distributing of binary package |
---|
| 66 | may viorate the patent or law. Therefore we chose self-build |
---|
| 67 | packge, create binary package on your machine, for such kind |
---|
| 68 | of softwares instead of distributing binary package. |
---|
| 69 | |
---|
| 70 | Please obey the national law when you use the created binary |
---|
| 71 | packages. And if you want to use the softwares using patented |
---|
| 72 | thechnology, it may be required to get a permission, make an |
---|
| 73 | agreement or purchas a license. Please consider it with your |
---|
| 74 | purpose or way of use and take appropriate action. |
---|
| 75 | |
---|
| 76 | %description -l ja |
---|
| 77 | mjpegtools は、Linux 上で |
---|
| 78 | ビデオ録画や再生、 |
---|
| 79 | 簡単なカット&ペーストの編集、 |
---|
| 80 | オーディオやビデオの MPEG 圧縮 |
---|
| 81 | ができるツール集です。 |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | このパッケージをインストールすると、自動的にソースコードを |
---|
| 85 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
| 86 | の rpm パッケージを作成します。 |
---|
| 87 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 88 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 89 | 行います。 |
---|
| 90 | |
---|
| 91 | [注意] |
---|
| 92 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 93 | ディスクの領域を多く消費します。 |
---|
| 94 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 95 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 96 | |
---|
| 97 | [self-build パッケージについて] |
---|
| 98 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 99 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 100 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 101 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 102 | ジという方法を採っています。 |
---|
| 103 | |
---|
| 104 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 105 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 106 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 107 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 108 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 109 | |
---|
| 110 | |
---|
| 111 | %prep |
---|
| 112 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | %install |
---|
| 116 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 117 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 118 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 119 | %{__install} -m 644 \ |
---|
| 120 | %{SOURCE100} %{SOURCE101} %{SOURCE102} \ |
---|
| 121 | ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 122 | |
---|
| 123 | |
---|
| 124 | %clean |
---|
| 125 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 126 | |
---|
| 127 | %posttrans |
---|
| 128 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 194000 |
---|
| 129 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
| 130 | %{pkgname}-devel-%{version}-%{release} |
---|
| 131 | |
---|
| 132 | %files |
---|
| 133 | %defattr(-,root,root) |
---|
| 134 | %{_datadir}/%{name}/* |
---|
| 135 | |
---|
| 136 | |
---|
| 137 | %changelog |
---|
| 138 | * Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.0-1 |
---|
| 139 | - initial build |
---|
| 140 | |
---|
| 141 | ### end of file |
---|