]>
Commit | Line | Data |
---|---|---|
4fc90545 JB |
1 | Summary: Macedonian-Bulgarian language pair for Apertium |
2 | Summary(pl.UTF-8): Para języków macedoński-bułgarski dla Apertium | |
3 | %define lpair mk-bg | |
4 | Name: apertium-dict-%{lpair} | |
5 | Version: 0.2.0 | |
6 | Release: 1 | |
7 | License: GPL v3 | |
8 | Group: Applications/Text | |
9 | Source0: http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz | |
10 | # Source0-md5: a0f12e989097c67eb3d3a96e06a0fa38 | |
11 | Patch0: %{name}-DESTDIR.patch | |
12 | URL: http://www.apertium.org/ | |
13 | BuildRequires: apertium-devel >= 3.2.0 | |
14 | BuildRequires: autoconf >= 2.52 | |
15 | BuildRequires: automake | |
16 | BuildRequires: libxslt-progs | |
17 | BuildRequires: lttoolbox >= 3.2.0 | |
18 | BuildRequires: vislcg3 >= 0.9.7.5129 | |
19 | BuildRequires: pkgconfig | |
20 | Requires: apertium >= 3.2.0 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | This is an Apertium language pair, which can be used for translating | |
25 | between Macedonian and Bulgarian, morphological analysis or | |
26 | part-of-speech tagging of both languages. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Ten pakiet zawiera parę języków dla Apertium służącą do tłumaczenia | |
30 | między macedońskim a bułgarskim, a także analizy morfologicznej lub | |
31 | oznaczania części mowy w obu językach. | |
32 | ||
33 | %prep | |
34 | %setup -q -n apertium-%{lpair}-%{version} | |
35 | %patch0 -p1 | |
36 | ||
37 | %build | |
38 | %{__aclocal} | |
39 | %{__autoconf} | |
40 | %{__automake} | |
41 | %configure | |
42 | ||
43 | %{__make} | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT%{_datadir}/apertium/modes | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | # not needed here (see modes subdir) and contain wrong (builddir) paths | |
53 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/apertium/apertium-%{lpair}/*.mode | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc AUTHORS ChangeLog NEWS README | |
61 | %{_datadir}/apertium/apertium-%{lpair} | |
62 | %{_datadir}/apertium/modes/bg-mk.mode | |
63 | %{_datadir}/apertium/modes/mk-bg.mode |