source: projects/specs/trunk/nonfree/self-build-dict-jisx4081-gene95/self-build-dict-jisx4081-gene95-vl.spec @ 673

Revision 673, 4.2 KB checked in by iwaim, 14 years ago (diff)

new: self-build-dict-jisx4081-gene95

Line 
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
10Summary:        Package to automatically build %{pkgname} rpm package
11Summary(ja):    %{pkgname} の rpm パッケージを自動作成するパッケージ
12Name:           %{name}
13Version:        %{version}
14Release:        %{release}
15Source0:        %{pkgname}-vl.spec
16License:        non-free
17Group:          Restricted Software
18
19##!! Requires(posttrans) not yet implemented. So we use (post) instead.
20Requires(post): self-build-setup >= 0.8.5
21
22# (build)requies of target package.
23Requires(post): %{gene95fpw_pkgname}
24Requires(post): freepwing
25Requires(post): jcode.pl
26
27BuildArch:    noarch
28BuildRoot:    %{_tmppath}/%{name}-%{version}-root
29
30Distribution: Vine Linux
31Vendor:       Project Vine
32Packager:     iwaim
33
34%description
35JIS X 4081 format GENE95 Dictionary
36
37If you install this package, it automaticaly downloads source
38code, compile it, and create rpm packages of %{pkgname}-%{version}.
39And the created rpm packages are automatically installed
40if installation is executed by apt-get command or synaptic
41package manager.
42
43[Note]
44This package requires many other packages to compile
45targetsoftware. So it consume more disk space than usual.
46Also installation takes logner time because of compilation.
47(This will take a few minutes to quarter or half of an hour,
48depends on building environment)
49
50[About self-build package]
51For some kind of software, distributing of binary package
52may viorate the patent or law. Therefore we chose self-build
53packge, create binary package on your machine, for such kind
54of softwares instead of distributing binary package.
55
56Please obey the national law when you use the created binary
57packages. And if you want to use the softwares using patented
58thechnology, it may be required to get a permission, make an
59agreement or purchas a license. Please consider it with your
60purpose or way of use and take appropriate action.
61
62%description -l ja
63JIS 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
Note: See TracBrowser for help on using the repository browser.