1 | %define dictname gene95 |
---|
2 | %define gene95fpw_pkgname gene95-fpw |
---|
3 | %define pkgname dict-jisx4081-%{dictname} |
---|
4 | %define name self-build-%{pkgname} |
---|
5 | %define version 1.0 |
---|
6 | %define release 1%{?_dist_release} |
---|
7 | |
---|
8 | %define sourceurl0 http://www.namazu.org/~tsuchiya/sdic/data/%{dictname}.tar.bz2 |
---|
9 | |
---|
10 | Summary: Package to automatically build %{pkgname} rpm package |
---|
11 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
12 | Name: %{name} |
---|
13 | Version: %{version} |
---|
14 | Release: %{release} |
---|
15 | Source0: %{pkgname}-vl.spec |
---|
16 | License: non-free |
---|
17 | Group: Restricted Software |
---|
18 | |
---|
19 | ##!! Requires(posttrans) not yet implemented. So we use (post) instead. |
---|
20 | Requires(post): self-build-setup >= 0.8.5 |
---|
21 | |
---|
22 | # (build)requies of target package. |
---|
23 | Requires(post): %{gene95fpw_pkgname} |
---|
24 | Requires(post): freepwing |
---|
25 | Requires(post): jcode.pl |
---|
26 | |
---|
27 | BuildArch: noarch |
---|
28 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
29 | |
---|
30 | Distribution: Vine Linux |
---|
31 | Vendor: Project Vine |
---|
32 | Packager: iwaim |
---|
33 | |
---|
34 | %description |
---|
35 | JIS X 4081 format GENE95 Dictionary |
---|
36 | |
---|
37 | If you install this package, it automaticaly downloads source |
---|
38 | code, compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
39 | And the created rpm packages are automatically installed |
---|
40 | if installation is executed by apt-get command or synaptic |
---|
41 | package manager. |
---|
42 | |
---|
43 | [Note] |
---|
44 | This package requires many other packages to compile |
---|
45 | targetsoftware. So it consume more disk space than usual. |
---|
46 | Also installation takes logner time because of compilation. |
---|
47 | (This will take a few minutes to quarter or half of an hour, |
---|
48 | depends on building environment) |
---|
49 | |
---|
50 | [About self-build package] |
---|
51 | For some kind of software, distributing of binary package |
---|
52 | may viorate the patent or law. Therefore we chose self-build |
---|
53 | packge, create binary package on your machine, for such kind |
---|
54 | of softwares instead of distributing binary package. |
---|
55 | |
---|
56 | Please obey the national law when you use the created binary |
---|
57 | packages. And if you want to use the softwares using patented |
---|
58 | thechnology, it may be required to get a permission, make an |
---|
59 | agreement or purchas a license. Please consider it with your |
---|
60 | purpose or way of use and take appropriate action. |
---|
61 | |
---|
62 | %description -l ja |
---|
63 | JIS X 4081 形式の GENE95 辞書 |
---|
64 | |
---|
65 | このパッケージをインストールすると、自動的にソースコードを |
---|
66 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
67 | の rpm パッケージを作成します。 |
---|
68 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
69 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
70 | 行います。 |
---|
71 | |
---|
72 | [注意] |
---|
73 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
74 | ディスクの領域を多く消費します。 |
---|
75 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
76 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
77 | |
---|
78 | [self-build パッケージについて] |
---|
79 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
80 | 違反する可能性があるものがあります。その為、このような問題が |
---|
81 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
82 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
83 | ジという方法を採っています。 |
---|
84 | |
---|
85 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
86 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
87 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
88 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
89 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
90 | |
---|
91 | |
---|
92 | %prep |
---|
93 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
94 | |
---|
95 | %install |
---|
96 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
97 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
98 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
99 | |
---|
100 | %clean |
---|
101 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
102 | |
---|
103 | %posttrans |
---|
104 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 750000 |
---|
105 | |
---|
106 | |
---|
107 | %files |
---|
108 | %defattr(-,root,root) |
---|
109 | %{_datadir}/%{name} |
---|
110 | |
---|
111 | %changelog |
---|
112 | * Thu Mar 25 2010 IWAI, Masaharu <iwai@alib.jp> 1.0-1 |
---|
113 | - first release for Vine Linux |
---|