]> git.pld-linux.org Git - packages/mecab.git/blob - mecab.spec
- added libdir patch: put proper libdir in mecabrc file
[packages/mecab.git] / mecab.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        Yet Another Part-of-Speech and Morphological Analyzer
3 Summary(pl.UTF-8):      Jeszcze jeden analizator części mowy i morfologii
4 Name:           mecab
5 Version:        0.996
6 Release:        2
7 License:        GPL v2 or LGPL v2.1 or BSD
8 Group:          Libraries
9 #Source0Download: https://taku910.github.io/mecab
10 # 0.996 can be found at https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE
11 Source0:        %{name}-%{version}.tar.gz
12 # Source0-md5:  7603f8975cea2496d88ed62545ba973f
13 Patch0:         %{name}-libexec.patch
14 Patch1:         %{name}-libdir.patch
15 URL:            https://taku910.github.io/mecab
16 BuildRequires:  automake
17 BuildRequires:  libstdc++-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Yet Another Part-of-Speech and Morphological Analyzer.
22
23 %description -l pl.UTF-8
24 Jeszcze jeden analizator części mowy i morfologii.
25
26 %package devel
27 Summary:        Header files for MeCab
28 Summary(pl.UTF-8):      Pliki nagłówkowe MeCab
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}-%{release}
31 Requires:       libstdc++-devel
32
33 %description devel
34 Header files for MeCab.
35
36 %description devel -l pl.UTF-8
37 Pliki nagłówkowe MeCab.
38
39 %package static
40 Summary:        Static MeCab library
41 Summary(pl.UTF-8):      Statyczna biblioteka MeCab
42 Group:          Development/Libraries
43 Requires:       %{name}-devel = %{version}-%{release}
44
45 %description static
46 Static MeCab library.
47
48 %description static -l pl.UTF-8
49 Statyczna biblioteka MeCab.
50
51 %prep
52 %setup -q
53 %patch0 -p1
54 %patch1 -p1
55
56 %build
57 cp -f /usr/share/automake/config.sub .
58 %configure
59
60 %{__make} \
61         CFLAGS="%{rpmcflags} -Wall" \
62         CXXFLAGS="%{rpmcflags} -Wall"
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_libdir}/mecab/dic
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %files
78 %defattr(644,root,root,755)
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
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}"
90 %dir %{_libdir}/mecab
91 %endif
92 %dir %{_libdir}/mecab/dic
93 %{_mandir}/man1/mecab.1*
94 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mecabrc
95
96 %files devel
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_bindir}/mecab-config
99 %attr(755,root,root) %{_libdir}/libmecab.so
100 %{_libdir}/libmecab.la
101 %{_includedir}/mecab.h
102
103 %files static
104 %defattr(644,root,root,755)
105 %{_libdir}/libmecab.a
This page took 0.104182 seconds and 3 git commands to generate.