]>
Commit | Line | Data |
---|---|---|
7c201940 JB |
1 | Summary: Macedonian-English language pair for Apertium |
2 | Summary(pl.UTF-8): Para języków macedoński-angielski dla Apertium | |
3 | %define lpair mk-en | |
4 | Name: apertium-dict-%{lpair} | |
d74e5142 | 5 | Version: 0.1.1 |
7c201940 JB |
6 | Release: 1 |
7 | License: GPL v3 | |
8 | Group: Applications/Text | |
9 | Source0: http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz | |
d74e5142 | 10 | # Source0-md5: 46bd7cfcb16afeea7a731b574ae439d8 |
7c201940 | 11 | Patch0: %{name}-DESTDIR.patch |
7c201940 JB |
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 English, 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 angielskim, 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 | |
7c201940 JB |
36 | |
37 | %build | |
38 | %{__aclocal} | |
39 | %{__autoconf} | |
40 | %{__automake} | |
41 | %configure | |
42 | ||
b0f78a1b | 43 | %{__make} -j1 |
7c201940 JB |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT%{_datadir}/apertium/modes | |
48 | ||
b0f78a1b | 49 | %{__make} -j1 install \ |
7c201940 JB |
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/mk-en.mode |