]> git.pld-linux.org Git - packages/tomoe.git/blame - tomoe.spec
- release 18 (by relup.sh)
[packages/tomoe.git] / tomoe.spec
CommitLineData
ad34972e
JR
1#
2# Conditional build:
19d2e237
JB
3%bcond_without python # build without Python bindings
4%bcond_without ruby # build without Ruby bindings
ad34972e
JR
5%bcond_without static_libs # don't build static libraries
6#
7Summary: Handwritten input system for Japanese and Chinese
c325a108 8Summary(pl.UTF-8): System wprowadzania pisma ręcznego dla japońskiego i chińskiego
ad34972e
JR
9Name: tomoe
10Version: 0.6.0
d92b4190 11Release: 18
ad34972e
JR
12License: LGPL v2+
13Group: Libraries
14Source0: http://downloads.sourceforge.net/tomoe/%{name}-%{version}.tar.gz
15# Source0-md5: 0e51e88d097085e101bf722fc04808ed
16Patch0: %{name}-multiarch-conflict.patch
17Patch1: %{name}-bz502662.patch
18Patch2: %{name}-svn-libs.patch
d2cbbb84 19Patch3: %{name}-glib2.32.patch
19d2e237 20Patch4: %{name}-ruby.patch
fb2ea8b8 21Patch5: %{name}-format.patch
22d315e6 22Patch6: am.patch
ad34972e 23URL: http://tomoe.sourceforge.jp/
c325a108 24BuildRequires: apr-util-devel
19d2e237
JB
25BuildRequires: autoconf >= 2.57
26BuildRequires: automake
2107692e 27BuildRequires: gettext-tools
5fba1661
JB
28BuildRequires: glib2-devel >= 1:2.4.0
29BuildRequires: gtk-doc >= 1.4
c325a108 30BuildRequires: hyperestraier-devel
5fba1661 31BuildRequires: intltool >= 0.35.0
19d2e237 32BuildRequires: libtool
5fba1661 33BuildRequires: libxslt-progs
c325a108
JB
34BuildRequires: mysql-devel
35BuildRequires: pakchois-devel
36BuildRequires: perl-XML-Parser
5fba1661 37BuildRequires: pkgconfig
ad34972e 38BuildRequires: python
c325a108 39BuildRequires: subversion-devel
ad34972e
JR
40%if %{with python}
41BuildRequires: python-devel
42BuildRequires: python-pygobject-devel
2aac118f 43BuildRequires: python-pygtk-devel >= 2:2.0
ad34972e
JR
44%endif
45%if %{with ruby}
19d2e237 46BuildRequires: ruby-glib2-devel
ad34972e 47%endif
5fba1661 48Requires: glib2 >= 1:2.4.0
ad34972e
JR
49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51%description
5fba1661 52A program which does Japanese and Chinese handwriting recognition.
ad34972e 53
c325a108 54%description -l pl.UTF-8
5fba1661 55Program rozpoznający japońskie i chińskie pismo ręczne.
c325a108 56
ad34972e 57%package devel
c325a108
JB
58Summary: Header files for tomoe library
59Summary(pl.UTF-8): Pliki nagłówkowe biblioteki tomoe
ad34972e
JR
60Group: Development/Libraries
61Requires: %{name} = %{version}-%{release}
5fba1661 62Requires: glib2-devel >= 1:2.4.0
ad34972e
JR
63
64%description devel
65The tomoe-devel package includes the header files for the tomoe
66package. Install this package if you want to develop programs which
67use tomoe.
68
c325a108
JB
69%description devel -l pl.UTF-8
70Ten pakiet zawiera pliki nagłówkowe biblioteki tomoe. Należy go
71zainstalować, aby rozwijać programy wykorzystujące tomoe.
72
ad34972e
JR
73%package static
74Summary: Tomoe static library
c325a108 75Summary(pl.UTF-8): Statyczna biblioteka tomoe
ad34972e
JR
76Group: Development/Libraries
77Requires: %{name}-devel = %{version}-%{release}
78
79%description static
80Tomoe static library.
81
c325a108
JB
82%description static -l pl.UTF-8
83Statyczna biblioteka tomoe.
84
ad34972e
JR
85%package hyperestraier
86Summary: Hyper Estraier dictionary support for tomoe
c325a108
JB
87Summary(pl.UTF-8): Obsługa słowników Hyper Estraiera dla tomoe
88Group: Libraries
89Requires: %{name} = %{version}-%{release}
ad34972e
JR
90
91%description hyperestraier
92Hyper Estraier dictionary support for tomoe.
93
c325a108
JB
94%description hyperestraier -l pl.UTF-8
95Obsługa słowników Hyper Estraiera dla tomoe.
96
ad34972e 97%package mysql
c325a108
JB
98Summary: MySQL dictionary support for tomoe
99Summary(pl.UTF-8): Obsługa słowników MySQL dla tomoe
100Group: Libraries
101Requires: %{name} = %{version}-%{release}
ad34972e
JR
102
103%description mysql
c325a108
JB
104MySQL dictionary support for tomoe.
105
106%description mysql -l pl.UTF-8
107Obsługa słowników MySQL dla tomoe.
ad34972e
JR
108
109%package svn
110Summary: Subversion dictionary support for tomoe
c325a108
JB
111Summary(pl.UTF-8): Obsługa słowników Subversion dla tomoe
112Group: Libraries
113Requires: %{name} = %{version}-%{release}
ad34972e
JR
114
115%description svn
116Subversion dictionary support for tomoe.
117
c325a108
JB
118%description svn -l pl.UTF-8
119Obsługa słowników Subversion dla tomoe.
120
ad34972e 121%package -n python-tomoe
c325a108
JB
122Summary: Tomoe bindings for Python
123Summary(pl.UTF-8): Wiązania tomoe dla Pythona
124Group: Libraries/Python
ad34972e
JR
125Requires: %{name} = %{version}-%{release}
126
127%description -n python-tomoe
c325a108
JB
128Tomoe bindings for Python.
129
130%description -n python-tomoe -l pl.UTF-8
131Wiązania tomoe dla Pythona.
ad34972e 132
f1dff604
JB
133%package -n python-tomoe-devel
134Summary: Development files for Tomoe Python binding
135Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do Tomoe
136Group: Development/Libraries
137Requires: %{name}-devel = %{version}-%{release}
138Requires: python-tomoe = %{version}-%{release}
139Requires: python-pygobject-devel
140
141%description -n python-tomoe-devel
142Development files for Tomoe Python binding.
143
144%description -n python-tomoe-devel -l pl.UTF-8
145Pliki programistyczne wiązań Pythona do Tomoe.
146
ad34972e 147%package -n ruby-tomoe
c325a108
JB
148Summary: Tomoe bindings for Ruby
149Summary(pl.UTF-8): Wiązania tomoe dla języka Ruby
150Group: Development/Languages
ad34972e 151Requires: %{name} = %{version}-%{release}
19d2e237 152Requires: ruby-glib2
ad34972e
JR
153
154%description -n ruby-tomoe
c325a108
JB
155Tomoe bindings for Ruby.
156
157%description -n ruby-tomoe -l pl.UTF-8
158Wiązania tomoe dla języka Ruby.
ad34972e 159
19d2e237
JB
160%package -n ruby-tomoe-devel
161Summary: Header file for Ruby/Tomoe library
162Summary(pl.UTF-8): Plik nagłówkowy biblioteki Ruby/Tomoe
163Group: Development/Libraries
164Requires: %{name}-devel = %{version}-%{release}
165Requires: ruby-glib2-devel
166Requires: ruby-tomoe = %{version}-%{release}
167
168%description -n ruby-tomoe-devel
169Header file for Ruby/Tomoe library.
170
171%description -n ruby-tomoe-devel -l pl.UTF-8
172Plik nagłówkowy biblioteki Ruby/Tomoe.
173
ad34972e
JR
174%prep
175%setup -q
176%patch0 -p0
177%patch1 -p0
178%patch2 -p1
d2cbbb84 179%patch3 -p1
507d005f 180%patch4 -p1
fb2ea8b8 181%patch5 -p1
22d315e6 182%patch6 -p1
ad34972e 183
19d2e237 184%{__sed} -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' data/xml2est.rb
ad34972e
JR
185
186%build
187%{__libtoolize}
188%{__aclocal} -I macros
189%{__autoconf}
190%{__automake}
191export CFLAGS="%{rpmcflags} -I/usr/include/apr-util"
192%configure \
5fba1661 193 UNZIP=/usr/bin/unzip \
ad34972e 194 %{!?with_static_libs:--disable-static} \
22d315e6
JR
195 %{?with_ruby:--with-ruby-bindingdir=%{ruby_vendorarchdir}} \
196 %{?with_ruby:--with-ruby-libdir=%{ruby_vendorlibdir}} \
ad34972e 197 --enable-gtk-doc \
c325a108
JB
198 --with-html-dir=%{_gtkdocdir} \
199 --with-svn-lib=%{_libdir}
ad34972e
JR
200
201%{__make}
202
203%install
204rm -rf $RPM_BUILD_ROOT
ab01150c
JR
205install -d $RPM_BUILD_ROOT%{_datadir}/tomoe/dict
206
ad34972e
JR
207%{__make} install \
208 DESTDIR=$RPM_BUILD_ROOT
209
210%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
211%{__rm} $RPM_BUILD_ROOT%{_libdir}/tomoe/module/{dict,recognizer}/*.{a,la}
212%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/tomoe.{a,la}
22d315e6 213%{?with_ruby:%{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/tomoe.{a,la}}
ad34972e 214
c325a108
JB
215%if %{without ruby}
216%{__rm} $RPM_BUILD_ROOT%{_datadir}/tomoe/xml2est.rb
217%endif
218
ad34972e
JR
219%find_lang %{name}
220
221%clean
222rm -rf $RPM_BUILD_ROOT
223
c325a108
JB
224%post -p /sbin/ldconfig
225%postun -p /sbin/ldconfig
ad34972e
JR
226
227%files -f %{name}.lang
228%defattr(644,root,root,755)
229%doc AUTHORS NEWS README TODO data/kanjidic*.html
230%dir %{_sysconfdir}/tomoe
231%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tomoe/config
232%attr(755,root,root) %{_libdir}/libtomoe.so.*.*.*
c325a108 233%attr(755,root,root) %ghost %{_libdir}/libtomoe.so.0
ad34972e
JR
234%dir %{_libdir}/tomoe
235%dir %{_libdir}/tomoe/module
236%dir %{_libdir}/tomoe/module/dict
237%attr(755,root,root) %{_libdir}/tomoe/module/dict/unihan.so
238%attr(755,root,root) %{_libdir}/tomoe/module/dict/xml.so
239%dir %{_libdir}/tomoe/module/recognizer
240%attr(755,root,root) %{_libdir}/tomoe/module/recognizer/simple.so
241%dir %{_datadir}/tomoe
242%dir %{_datadir}/tomoe/dict
243%dir %{_datadir}/tomoe/recognizer
5fba1661 244%{_datadir}/tomoe/recognizer/handwriting-*.xml
ad34972e
JR
245%{_datadir}/tomoe/dict.dtd
246
247%files devel
248%defattr(644,root,root,755)
249%attr(755,root,root) %{_libdir}/libtomoe.so
250%{_includedir}/tomoe
251%{_pkgconfigdir}/tomoe.pc
252%{_gtkdocdir}/tomoe
253
254%if %{with static_libs}
255%files static
256%defattr(644,root,root,755)
257%{_libdir}/libtomoe.a
258%endif
259
260%files hyperestraier
261%defattr(644,root,root,755)
262%attr(755,root,root) %{_libdir}/tomoe/module/dict/est.so
263
264%files mysql
265%defattr(644,root,root,755)
266%attr(755,root,root) %{_libdir}/tomoe/module/dict/mysql.so
267
268%files svn
269%defattr(644,root,root,755)
270%attr(755,root,root) %{_libdir}/tomoe/module/dict/svn.so
271
ad34972e
JR
272%if %{with python}
273%files -n python-tomoe
274%defattr(644,root,root,755)
ad34972e 275%attr(755,root,root) %{py_sitedir}/tomoe.so
f1dff604
JB
276
277%files -n python-tomoe-devel
278%defattr(644,root,root,755)
279%dir %{_datadir}/tomoe/python
280%{_datadir}/tomoe/python/tomoe.defs
c325a108 281%{_pkgconfigdir}/pytomoe.pc
ad34972e 282%endif
19d2e237
JB
283
284%if %{with ruby}
285%files -n ruby-tomoe
286%defattr(644,root,root,755)
287%attr(755,root,root) %{_datadir}/tomoe/xml2est.rb
22d315e6
JR
288%attr(755,root,root) %{ruby_vendorarchdir}/tomoe.so
289%{ruby_vendorlibdir}/tomoe.rb
19d2e237
JB
290
291%files -n ruby-tomoe-devel
292%defattr(644,root,root,755)
22d315e6 293%{ruby_vendorarchdir}/rbtomoe.h
19d2e237 294%endif
This page took 0.242538 seconds and 4 git commands to generate.