[615] | 1 | %define pkgname kino |
---|
| 2 | %define name self-build-%{pkgname} |
---|
| 3 | %define version 1.3.4 |
---|
[3143] | 4 | %define release 4%{?_dist_release} |
---|
[615] | 5 | |
---|
| 6 | %define sourceurl0 http://prdownloads.sourceforge.net/kino/%{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 | Source0: %{pkgname}-vl.spec |
---|
[3143] | 14 | #Source100: kino-udev.patch |
---|
| 15 | Source101: kino-1.3.4-dso.patch |
---|
[615] | 16 | |
---|
[3143] | 17 | License: GPLv2+ |
---|
[615] | 18 | Group: Restricted Software |
---|
| 19 | |
---|
| 20 | Obsoletes: kino < 1.3.3-2 |
---|
| 21 | |
---|
| 22 | Requires(post): self-build-setup >= 0.9.9 |
---|
| 23 | |
---|
[3143] | 24 | Requires(post): gtk2-devel >= 2.6.0 |
---|
| 25 | Requires(post): glib2-devel |
---|
| 26 | Requires(post): libxml2-devel |
---|
| 27 | Requires(post): libraw1394-devel |
---|
| 28 | Requires(post): libavc1394-devel |
---|
| 29 | Requires(post): libiec61883-devel |
---|
| 30 | Requires(post): libdv-devel |
---|
| 31 | Requires(post): libXv-devel |
---|
| 32 | Requires(post): libbonoboui-devel |
---|
| 33 | Requires(post): libogg-devel |
---|
| 34 | Requires(post): libvorbis-devel |
---|
| 35 | Requires(post): imlib-devel |
---|
| 36 | Requires(post): desktop-file-utils |
---|
| 37 | Requires(post): libsamplerate-devel |
---|
| 38 | Requires(post): zlib-devel |
---|
| 39 | Requires(post): gettext |
---|
| 40 | Requires(post): intltool |
---|
| 41 | Requires(post): perl(XML::Parser) |
---|
| 42 | Requires(post): libICE-devel |
---|
| 43 | Requires(post): libSM-devel |
---|
| 44 | Requires(post): alsa-lib-devel |
---|
| 45 | Requires(post): XOrg-devel |
---|
[615] | 46 | |
---|
| 47 | Requires: libdv |
---|
| 48 | Requires: libavc1394 |
---|
| 49 | Requires: libraw1394 |
---|
| 50 | Requires: libogg |
---|
| 51 | Requires: libvorbis |
---|
| 52 | Requires: gtk2 |
---|
| 53 | Requires: imlib |
---|
| 54 | Requires: libxml2 |
---|
| 55 | Requires(post): shared-mime-info |
---|
| 56 | |
---|
| 57 | Requires(post): self-build-libquicktime |
---|
[1816] | 58 | Requires(post): self-build-mjpegtools |
---|
| 59 | Requires(post): self-build-mplayer |
---|
[615] | 60 | Requires(post): self-build-ffmpeg |
---|
| 61 | Requires(post): self-build-ffmpeg2theora |
---|
| 62 | |
---|
| 63 | BuildArch: noarch |
---|
| 64 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 65 | |
---|
| 66 | Packager: munepi |
---|
| 67 | |
---|
| 68 | %description |
---|
| 69 | The new generation of digital camcorders use the Digital Video (DV) data |
---|
| 70 | format. Kino allows you to record, create, edit, and play movies recorded |
---|
| 71 | with DV camcorders. Unlike other editors, this program uses many keyboard |
---|
| 72 | commands for fast navigating and editing inside the movie. |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | If you install this package, it automaticaly downloads source |
---|
| 76 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
| 77 | And the created rpm packages are automatically installed |
---|
| 78 | if installation is executed by apt-get command or synaptic |
---|
| 79 | package manager. |
---|
| 80 | |
---|
| 81 | [Note] |
---|
| 82 | This package requires many other packages to compile |
---|
| 83 | targetsoftware. So it consume more disk space than usual. |
---|
| 84 | Also installation takes logner time because of compilation. |
---|
| 85 | (This will take a few minutes to quarter or half of an hour, |
---|
| 86 | depends on building environment) |
---|
| 87 | |
---|
| 88 | [About self-build package] |
---|
| 89 | For some kind of software, distributing of binary package |
---|
| 90 | may viorate the patent or law. Therefore we chose self-build |
---|
| 91 | packge, create binary package on your machine, for such kind |
---|
| 92 | of softwares instead of distributing binary package. |
---|
| 93 | |
---|
| 94 | Please obey the national law when you use the created binary |
---|
| 95 | packages. And if you want to use the softwares using patented |
---|
| 96 | thechnology, it may be required to get a permission, make an |
---|
| 97 | agreement or purchas a license. Please consider it with your |
---|
| 98 | purpose or way of use and take appropriate action. |
---|
| 99 | |
---|
| 100 | %description -l ja |
---|
| 101 | デジタルビデオカメラの新世代は |
---|
| 102 | Digital Video (DV) データフォーマットを使います。 |
---|
| 103 | Kino は DV デジタルビデオカメラで録画された動画を |
---|
| 104 | 録画、作成、編集、再生できます。 |
---|
| 105 | 他の編集ソフトとは異なり、 |
---|
| 106 | 動画の中へ素早く移動や編集するために |
---|
| 107 | 多くのキーボードコマンドを使えます。 |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | このパッケージをインストールすると、自動的にソースコードを |
---|
| 111 | ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm |
---|
| 112 | パッケージを作成します。 |
---|
| 113 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 114 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 115 | 行います。 |
---|
| 116 | |
---|
| 117 | [注意] |
---|
| 118 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 119 | ディスクの領域を多く消費します。 |
---|
| 120 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 121 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 122 | |
---|
| 123 | [self-build パッケージについて] |
---|
| 124 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 125 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 126 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 127 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 128 | ジという方法を採っています。 |
---|
| 129 | |
---|
| 130 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 131 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 132 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 133 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 134 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 135 | |
---|
| 136 | %prep |
---|
| 137 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 138 | |
---|
| 139 | %install |
---|
| 140 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 141 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 142 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
[3143] | 143 | %{__install} -m 644 %{SOURCE101} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
[615] | 144 | |
---|
| 145 | %clean |
---|
| 146 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 147 | |
---|
| 148 | %posttrans |
---|
[3143] | 149 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 111000 |
---|
[615] | 150 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
| 151 | %{pkgname}-devel-%{version}-%{release} |
---|
| 152 | |
---|
| 153 | %files |
---|
| 154 | %defattr(-,root,root) |
---|
| 155 | %{_datadir}/%{name} |
---|
| 156 | |
---|
| 157 | %changelog |
---|
[3143] | 158 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.3.4-4 |
---|
| 159 | - applied kino-1.3.4-dso.patch from RPM Fusion development |
---|
| 160 | - rebuilt for gcc bug |
---|
| 161 | - drop the udev rules patch |
---|
| 162 | |
---|
[1816] | 163 | * Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.3.4-3 |
---|
| 164 | - added Requires(post): self-build-mjpegtools, self-build-mplayer |
---|
| 165 | |
---|
[615] | 166 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.3.4-2 |
---|
| 167 | - renamed %%{Source0} to kino-vl.spec |
---|
| 168 | |
---|
| 169 | * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.3.4-1 |
---|
| 170 | - new upstream release |
---|
| 171 | - with recent ffmpeg |
---|
| 172 | |
---|
| 173 | * Sun Jun 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.3.3-2 |
---|
| 174 | - initial bulid |
---|