]>
Commit | Line | Data |
---|---|---|
3828bf08 JB |
1 | Summary: Spanish-Asturian language pair for Apertium |
2 | Summary(pl.UTF-8): Para języków hiszpański-asturski dla Apertium | |
3 | %define lpair es-ast | |
4 | Name: apertium-dict-%{lpair} | |
016fcc6d | 5 | Version: 1.1.0 |
3828bf08 JB |
6 | Release: 1 |
7 | License: GPL v2+ | |
8 | Group: Applications/Text | |
9 | Source0: http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz | |
016fcc6d | 10 | # Source0-md5: 787320214c2f35b6caffe1cac0e010bc |
3828bf08 JB |
11 | Patch0: %{name}-DESTDIR.patch |
12 | URL: http://www.apertium.org/ | |
13 | BuildRequires: apertium-devel >= 3.2.0 | |
016fcc6d | 14 | BuildRequires: apertium-pn-recogniser |
3828bf08 JB |
15 | BuildRequires: autoconf >= 2.52 |
16 | BuildRequires: automake | |
17 | BuildRequires: libxslt-progs | |
18 | BuildRequires: lttoolbox >= 3.2.0 | |
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 Spanish and Asturian, morphological analysis or part-of-speech | |
26 | 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 hiszpańskim a asturskim, 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 | %{__autoheader} | |
41 | %{__automake} | |
42 | %configure | |
43 | ||
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | install -d $RPM_BUILD_ROOT%{_datadir}/apertium/modes | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | # not needed here (see modes subdir) and contain wrong (builddir) paths | |
54 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/apertium/apertium-%{lpair}/*.mode | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc AUTHORS ChangeLog NEWS README | |
62 | %{_datadir}/apertium/apertium-%{lpair} | |
016fcc6d | 63 | %{_datadir}/apertium/modes/ast-es-pn.mode |
3828bf08 | 64 | %{_datadir}/apertium/modes/es-ast.mode |
016fcc6d | 65 | %{_datadir}/apertium/modes/es-ast-pn.mode |