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