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