source: projects/specs/trunk/k/kakasi/kakasi-vl.spec @ 8521

Revision 8521, 5.2 KB checked in by daisuke, 10 years ago (diff)

kakasi: update to 2.3.6

Line 
1%define tkver 2.04
2%define perl_vendorarch    %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
3
4Summary: Filter to convert Kanji to Hiragana, Katakana or Romaji
5Summary(ja): 漢字かなまじり文をひらがな文やローマ字文に変換するフィルタ
6Name: kakasi
7Version: 2.3.6
8Release: 1%{?_dist_release}
9Group: Applications/Text
10License: GPLv2+
11URL: http://kakasi.namazu.org/
12
13Source: ftp://kakasi.namazu.org/pub/kakasi/kakasi-%{version}.tar.xz
14Source1: http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/Text-Kakasi-%{tkver}.tar.gz
15
16Buildroot: %{_tmppath}/%{name}-%{version}-root
17BuildRequires: perl >= 1:5.10.0
18
19Provides: perl-Text-Kakasi = %{tkver}
20
21Distribution: Vine Linux
22Vendor: Project Vine
23Packager: daisuke
24
25
26%description
27KAKASI is the language processing filter to convert Kanji characters
28to Hiragana, Katakana or Romaji(1) and may be helpful to read Japanese
29documents. perl module for kakasi is also involved.
30
31%description -l ja
32KAKASI は漢字かなまじり文をひらがな文やローマ字文に変換することを
33目的として作成したプログラムと辞書の総称です。
34このパッケージには、kakasi を perlで用いるモジュール Text-Kakasi-%{tkver}
35も含んでいます。
36
37
38%package devel
39Summary: Libraries and include files of KAKASI
40Group: Development/Libraries
41Summary(ja): KAKASIのライブラリとヘッダファイル
42
43%description devel
44Libraries and include files of KAKASI
45
46%description devel -l ja
47KAKASI のライブラリとヘッダファイルです
48
49%prep
50%setup -q -a 1
51find . -type d -name CVS | xargs -r rm -frv
52
53%build
54%configure --disable-static
55make
56
57# build Text-Kakasi
58cd Text-Kakasi-%{tkver}
59
60CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
61make INC=-I../lib/ LDFLAGS=-L../lib/
62
63%install
64rm -rf %{buildroot}
65%makeinstall
66
67# install manual page
68mkdir -p %{buildroot}%{_mandir}/ja/man1
69install -p -m 644 man/kakasi.1.ja %{buildroot}%{_mandir}/ja/man1/kakasi.1
70
71# install Text-Kakasi
72cd Text-Kakasi-%{tkver}
73make DESTDIR=$RPM_BUILD_ROOT install
74find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
75  -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
76
77rm -rf ../Text-Kakasi
78mkdir -p ../Text-Kakasi
79cp -a README* COPYING* MANIFEST ../Text-Kakasi
80cd -
81
82# removed unpackaed files
83rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
84
85%clean
86rm -rf %{buildroot}
87
88%post -p /sbin/ldconfig
89
90%postun -p /sbin/ldconfig
91
92%files
93%defattr(-,root,root)
94%doc doc Text-Kakasi
95%doc README* AUTHORS COPYING ChangeLog TODO NEWS
96%{_bindir}/*
97%exclude %{_bindir}/kakasi-config
98%{_libdir}/libkakasi.so.*
99%dir %{_datadir}/kakasi
100%{_datadir}/kakasi/*
101%{perl_vendorarch}/Text/Kakasi.pm
102%{perl_vendorarch}/Text/Kakasi/JP.pod
103%{perl_vendorarch}/auto/Text/Kakasi
104%{_mandir}/man3/*
105%{_mandir}/man1/kakasi.1*
106%{_mandir}/ja/man1/kakasi.1*
107
108%files devel
109%defattr(-,root,root)
110%{_bindir}/kakasi-config
111%{_includedir}/*
112%{_libdir}/libkakasi.so
113%{_mandir}/man1/kakasi-config.1*
114
115
116%changelog
117* Fri Jun 06 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.3.6-1
118- update to 2.3.6
119
120* Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.4-2
121- spec in utf-8
122- remove static library
123
124* Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.4-1vl5
125- rebuilt with perl 5.10.0
126- applied new versioning policy
127- removed lib*.la from devel package
128- fixed %%doc section
129- fixed %%changelog typo
130
131* Wed Mar 15 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.3.4-0vl7
132- add strdup.patch (patch0) to avoid segmentation fault
133
134* Wed Feb 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.4-0vl6
135- rebuilt with new toolchains and perl-5.8.6
136- updated Text-Kakasi source and its URL
137- added Provides: perl-Text-Kakasi
138
139* Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 2.3.4-0vl5
140- rebuilt on perl-5.8.2
141
142* Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 2.3.4-0vl4
143- rebuilt on perl-5.8.1
144
145* Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 2.3.4-0vl3
146- rebuild with perl-5.8.0
147
148* Mon Jan 28 2002 Toru Sagami <sagami@vinelinux.org> 2.3.4-0vl2
149- make sure thet libkakasi.{a,la,so} are splitted into devel subpackage
150
151* Fri Sep  7 2001 Jun Nishii <jun@vinelinux.org> - 2.3.4-0vl1
152- ver.up
153- ver.up Text-Kakasi
154
155* Sat Jun 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
156- 2.3.3-0vl4
157- rebuilt with perl-5.6.1
158
159* Wed Jun 13 2001 Jun Nishii <jun@vinelinux.org> 2.3.3-0vl3
160- modify perl version dependency
161
162* Fri May 11 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
163- 2.3.3-0vl2
164- TextKakasi VersionDown(1.05 -> 1.04)
165
166* Mon May  7 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
167- 2.3.3-0vl1
168- update to 2.3.3(TextKakasi 1.04 -> 1.05)
169
170* Sat Jan 13 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
171- 2.3.2-0vl3
172- use better macros, _mandir
173- dont pack CVS directory
174
175* Fri Sep 08 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
176- 2.3.2-0vl2
177- modified %files section to handle compressed man page(s)
178
179* Sat May 27 2000 Jun Nishii <jun@vinelinux.org>
180- 2.3.2-0vl1
181- merge Text Kakasi
182
183* Fri Jan  7 2000 Jun Nishii <jun@vinelinux.org>
184- change group
185- strip bins
186
187* Fri Oct 29 1999 Jun Nishii <jun@flatout.org>
188- updated to 2.3.1
189
190* Thu Oct 28 1999 Jun Nishii <jun@flatout.org>
191- updated to 2.3.0
192- separate devel
193
194* Mon Sep 20 1999 Jun Nishii <jun@flatout.org>
195- added %defattr
196
197* Wed Jul 28 1999 Jun Nishii <jun@flatout.org>
198- rebuild for Vine-1.9
Note: See TracBrowser for help on using the repository browser.