]>
Commit | Line | Data |
---|---|---|
32ff359e JB |
1 | Summary: Occitan-Catalan language pair for Apertium |
2 | Summary(pl.UTF-8): Para języków okcytański-kataloński dla Apertium | |
3 | %define lpair oc-ca | |
4 | Name: apertium-dict-%{lpair} | |
886fe930 | 5 | Version: 1.0.6 |
32ff359e JB |
6 | Release: 1 |
7 | License: GPL v2+ | |
8 | Group: Applications/Text | |
9 | Source0: http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz | |
886fe930 | 10 | # Source0-md5: 7467abca9a789ed39da56e866605e4af |
32ff359e 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 Occitan and Catalan, morphological analysis or part-of-speech | |
24 | 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 okcytańskim a katalońskim, 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} | |
32ff359e JB |
33 | |
34 | %build | |
35 | %{__aclocal} | |
36 | %{__autoconf} | |
37 | %{__autoheader} | |
38 | %{__automake} | |
39 | %configure | |
40 | ||
41 | %{__make} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT%{_datadir}/apertium/modes | |
46 | ||
47 | %{__make} install \ | |
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/ca-oc.mode | |
61 | %{_datadir}/apertium/modes/ca-oc_aran.mode | |
62 | %{_datadir}/apertium/modes/oc-ca.mode | |
63 | %{_datadir}/apertium/modes/oc_aran-ca.mode |