]>
Commit | Line | Data |
---|---|---|
9f1ebb84 JB |
1 | Summary: Spanish-Galician language pair for Apertium |
2 | Summary(pl.UTF-8): Para języków hiszpański-galicyjski dla Apertium | |
3 | %define lpair es-gl | |
4 | Name: apertium-dict-%{lpair} | |
5 | Version: 1.0.7 | |
6 | Release: 1 | |
7 | License: GPL v2+ | |
8 | Group: Applications/Text | |
9 | Source0: http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz | |
10 | # Source0-md5: 17e5dd2df012f8848479ed9205d9248c | |
11 | Patch0: %{name}-DESTDIR.patch | |
12 | Patch1: %{name}-apertium32.patch | |
13 | URL: http://www.apertium.org/ | |
14 | BuildRequires: apertium-devel >= 3.2.0 | |
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 Galician, 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 galicyjskim, 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 | %patch1 -p1 | |
37 | ||
38 | %build | |
39 | %{__aclocal} | |
40 | %{__autoconf} | |
41 | %{__autoheader} | |
42 | %{__automake} | |
43 | %configure | |
44 | ||
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | install -d $RPM_BUILD_ROOT%{_datadir}/apertium/modes | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | # not needed here (see modes subdir) and contain wrong (builddir) paths | |
55 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/apertium/apertium-%{lpair}/*.mode | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc AUTHORS ChangeLog README | |
63 | %{_datadir}/apertium/apertium-%{lpair} | |
64 | %{_datadir}/apertium/modes/es-gl.mode | |
65 | %{_datadir}/apertium/modes/gl-es.mode |