]>
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} | |
5 | Version: 1.0.5 | |
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: 902a96a35ae43d3f9437ae92f812459e | |
11 | Patch0: %{name}-DESTDIR.patch | |
12 | Patch1: %{name}-apertium32.patch | |
13 | Patch2: %{name}-fix.patch | |
14 | URL: http://www.apertium.org/ | |
15 | BuildRequires: apertium-devel >= 3.2.0 | |
16 | BuildRequires: autoconf >= 2.52 | |
17 | BuildRequires: automake | |
18 | BuildRequires: libxslt-progs | |
19 | BuildRequires: lttoolbox >= 3.2.0 | |
20 | BuildRequires: pkgconfig | |
21 | Requires: apertium >= 3.2.0 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This is an Apertium language pair, which can be used for translating | |
26 | between Occitan and Catalan, morphological analysis or part-of-speech | |
27 | tagging of both languages. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Ten pakiet zawiera parę języków dla Apertium służącą do tłumaczenia | |
31 | między okcytańskim a katalońskim, a także analizy morfologicznej lub | |
32 | oznaczania części mowy w obu językach. | |
33 | ||
34 | %prep | |
35 | %setup -q -n apertium-%{lpair}-%{version} | |
36 | %patch0 -p1 | |
37 | %patch1 -p1 | |
38 | %patch2 -p1 | |
39 | ||
40 | %build | |
41 | %{__aclocal} | |
42 | %{__autoconf} | |
43 | %{__autoheader} | |
44 | %{__automake} | |
45 | %configure | |
46 | ||
47 | %{__make} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | install -d $RPM_BUILD_ROOT%{_datadir}/apertium/modes | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | # not needed here (see modes subdir) and contain wrong (builddir) paths | |
57 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/apertium/apertium-%{lpair}/*.mode | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc AUTHORS ChangeLog NEWS README | |
65 | %{_datadir}/apertium/apertium-%{lpair} | |
66 | %{_datadir}/apertium/modes/ca-oc.mode | |
67 | %{_datadir}/apertium/modes/ca-oc_aran.mode | |
68 | %{_datadir}/apertium/modes/oc-ca.mode | |
69 | %{_datadir}/apertium/modes/oc_aran-ca.mode |