]> git.pld-linux.org Git - packages/mecab.git/blame - mecab.spec
- added libdir patch: put proper libdir in mecabrc file
[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
02f06e52
JB
9#Source0Download: https://taku910.github.io/mecab
10# 0.996 can be found at https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE
11Source0: %{name}-%{version}.tar.gz
753e79b3 12# Source0-md5: 7603f8975cea2496d88ed62545ba973f
649f42fa 13Patch0: %{name}-libexec.patch
ae3a9da4 14Patch1: %{name}-libdir.patch
02f06e52 15URL: https://taku910.github.io/mecab
a3b79a73 16BuildRequires: automake
7af3bf99 17BuildRequires: libstdc++-devel
7af3bf99
JB
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21Yet Another Part-of-Speech and Morphological Analyzer.
22
fb654dac
JR
23%description -l pl.UTF-8
24Jeszcze jeden analizator części mowy i morfologii.
7af3bf99
JB
25
26%package devel
27Summary: Header files for MeCab
cc9a8a34 28Summary(pl.UTF-8): Pliki nagłówkowe MeCab
7af3bf99 29Group: Development/Libraries
8f851b8f 30Requires: %{name} = %{version}-%{release}
7af3bf99
JB
31Requires: libstdc++-devel
32
33%description devel
34Header files for MeCab.
35
fb654dac
JR
36%description devel -l pl.UTF-8
37Pliki nagłówkowe MeCab.
7af3bf99
JB
38
39%package static
40Summary: Static MeCab library
cc9a8a34 41Summary(pl.UTF-8): Statyczna biblioteka MeCab
7af3bf99 42Group: Development/Libraries
8f851b8f 43Requires: %{name}-devel = %{version}-%{release}
7af3bf99
JB
44
45%description static
46Static MeCab library.
47
fb654dac 48%description static -l pl.UTF-8
7af3bf99
JB
49Statyczna biblioteka MeCab.
50
51%prep
52%setup -q
b98a79f0 53%patch0 -p1
ae3a9da4 54%patch1 -p1
307fcad4 55
7af3bf99 56%build
687cfb1b 57cp -f /usr/share/automake/config.sub .
7af3bf99
JB
58%configure
59
60%{__make} \
61 CFLAGS="%{rpmcflags} -Wall" \
62 CXXFLAGS="%{rpmcflags} -Wall"
63
64%install
65rm -rf $RPM_BUILD_ROOT
649f42fa 66install -d $RPM_BUILD_ROOT%{_libdir}/mecab/dic
7af3bf99
JB
67
68%{__make} install \
69 DESTDIR=$RPM_BUILD_ROOT
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%post -p /sbin/ldconfig
75%postun -p /sbin/ldconfig
76
77%files
78%defattr(644,root,root,755)
649f42fa
JB
79%doc AUTHORS BSD COPYING README doc/*.html
80%attr(755,root,root) %{_bindir}/mecab
81%attr(755,root,root) %{_libdir}/libmecab.so.*.*.*
82%attr(755,root,root) %ghost %{_libdir}/libmecab.so.2
93eac9f0
JB
83%dir %{_libexecdir}/mecab
84%attr(755,root,root) %{_libexecdir}/mecab/mecab-cost-train
85%attr(755,root,root) %{_libexecdir}/mecab/mecab-dict-gen
86%attr(755,root,root) %{_libexecdir}/mecab/mecab-dict-index
87%attr(755,root,root) %{_libexecdir}/mecab/mecab-system-eval
88%attr(755,root,root) %{_libexecdir}/mecab/mecab-test-gen
89%if "%{_libdir}" != "%{_libexecdir}"
649f42fa 90%dir %{_libdir}/mecab
93eac9f0 91%endif
649f42fa 92%dir %{_libdir}/mecab/dic
7af3bf99 93%{_mandir}/man1/mecab.1*
053202c9 94%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mecabrc
7af3bf99
JB
95
96%files devel
97%defattr(644,root,root,755)
649f42fa
JB
98%attr(755,root,root) %{_bindir}/mecab-config
99%attr(755,root,root) %{_libdir}/libmecab.so
100%{_libdir}/libmecab.la
7af3bf99
JB
101%{_includedir}/mecab.h
102
103%files static
104%defattr(644,root,root,755)
649f42fa 105%{_libdir}/libmecab.a
This page took 0.085215 seconds and 4 git commands to generate.