]> git.pld-linux.org Git - packages/mecab.git/blame - mecab.spec
- release 2 (by relup.sh)
[packages/mecab.git] / mecab.spec
CommitLineData
83c4792a 1%include /usr/lib/rpm/macros.perl
7af3bf99 2Summary: Yet Another Part-of-Speech and Morphological Analyzer
cc9a8a34 3Summary(pl.UTF-8): Jeszcze jeden analizator części mowy i morfologii
7af3bf99 4Name: mecab
753e79b3 5Version: 0.996
2935a793 6Release: 2
649f42fa 7License: GPL v2 or LGPL v2.1 or BSD
7af3bf99 8Group: Libraries
649f42fa
JB
9#Source0Download: http://code.google.com/p/mecab/downloads/list
10Source0: http://mecab.googlecode.com/files/%{name}-%{version}.tar.gz
753e79b3 11# Source0-md5: 7603f8975cea2496d88ed62545ba973f
649f42fa
JB
12Patch0: %{name}-libexec.patch
13URL: http://code.google.com/p/mecab/
a3b79a73 14BuildRequires: automake
7af3bf99 15BuildRequires: libstdc++-devel
7af3bf99
JB
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Yet Another Part-of-Speech and Morphological Analyzer.
20
fb654dac
JR
21%description -l pl.UTF-8
22Jeszcze jeden analizator części mowy i morfologii.
7af3bf99
JB
23
24%package devel
25Summary: Header files for MeCab
cc9a8a34 26Summary(pl.UTF-8): Pliki nagłówkowe MeCab
7af3bf99 27Group: Development/Libraries
8f851b8f 28Requires: %{name} = %{version}-%{release}
7af3bf99
JB
29Requires: libstdc++-devel
30
31%description devel
32Header files for MeCab.
33
fb654dac
JR
34%description devel -l pl.UTF-8
35Pliki nagłówkowe MeCab.
7af3bf99
JB
36
37%package static
38Summary: Static MeCab library
cc9a8a34 39Summary(pl.UTF-8): Statyczna biblioteka MeCab
7af3bf99 40Group: Development/Libraries
8f851b8f 41Requires: %{name}-devel = %{version}-%{release}
7af3bf99
JB
42
43%description static
44Static MeCab library.
45
fb654dac 46%description static -l pl.UTF-8
7af3bf99
JB
47Statyczna biblioteka MeCab.
48
49%prep
50%setup -q
b98a79f0 51%patch0 -p1
307fcad4 52
7af3bf99 53%build
687cfb1b 54cp -f /usr/share/automake/config.sub .
7af3bf99
JB
55%configure
56
57%{__make} \
58 CFLAGS="%{rpmcflags} -Wall" \
59 CXXFLAGS="%{rpmcflags} -Wall"
60
61%install
62rm -rf $RPM_BUILD_ROOT
649f42fa 63install -d $RPM_BUILD_ROOT%{_libdir}/mecab/dic
7af3bf99
JB
64
65%{__make} install \
66 DESTDIR=$RPM_BUILD_ROOT
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%post -p /sbin/ldconfig
72%postun -p /sbin/ldconfig
73
74%files
75%defattr(644,root,root,755)
649f42fa
JB
76%doc AUTHORS BSD COPYING README doc/*.html
77%attr(755,root,root) %{_bindir}/mecab
78%attr(755,root,root) %{_libdir}/libmecab.so.*.*.*
79%attr(755,root,root) %ghost %{_libdir}/libmecab.so.2
80%dir %{_libdir}/mecab
81%attr(755,root,root) %{_libdir}/mecab/mecab-cost-train
82%attr(755,root,root) %{_libdir}/mecab/mecab-dict-gen
83%attr(755,root,root) %{_libdir}/mecab/mecab-dict-index
84%attr(755,root,root) %{_libdir}/mecab/mecab-system-eval
85%attr(755,root,root) %{_libdir}/mecab/mecab-test-gen
86%dir %{_libdir}/mecab/dic
7af3bf99 87%{_mandir}/man1/mecab.1*
053202c9 88%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mecabrc
7af3bf99
JB
89
90%files devel
91%defattr(644,root,root,755)
649f42fa
JB
92%attr(755,root,root) %{_bindir}/mecab-config
93%attr(755,root,root) %{_libdir}/libmecab.so
94%{_libdir}/libmecab.la
7af3bf99
JB
95%{_includedir}/mecab.h
96
97%files static
98%defattr(644,root,root,755)
649f42fa 99%{_libdir}/libmecab.a
This page took 0.048302 seconds and 4 git commands to generate.