]>
Commit | Line | Data |
---|---|---|
d0b3f60e JB |
1 | Summary: Serbo-Croatian and Slovenian language pair for Apertium |
2 | Summary(pl.UTF-8): Para języków serbsko-chorwacki i słoweński dla Apertium | |
3 | %define lpair hbs-slv | |
4 | Name: apertium-dict-%{lpair} | |
5 | Version: 0.5.0 | |
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: b382273d0a84b2b572fd39dcfae0940d | |
11 | Patch0: %{name}-cg-fix.patch | |
12 | URL: http://www.apertium.org/ | |
13 | BuildRequires: apertium-devel >= 3.2.0 | |
14 | BuildRequires: apertium-lex-tools | |
15 | BuildRequires: autoconf >= 2.52 | |
16 | BuildRequires: automake | |
17 | BuildRequires: libxslt-progs | |
18 | BuildRequires: lttoolbox >= 3.2.0 | |
19 | BuildRequires: pkgconfig | |
20 | BuildRequires: vislcg3 | |
21 | Requires: apertium >= 3.2.0 | |
22 | Requires: apertium-lex-tools | |
23 | Requires: lttoolbox >= 3.2.0 | |
24 | Requires: vislcg3 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This is an Apertium language pair, which can be used for translating | |
29 | between Serbo-Croatian and Slovenian, morphological analysis or | |
30 | part-of-speech tagging of both languages. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Ten pakiet zawiera parę języków dla Apertium służącą do tłumaczenia | |
34 | między serbsko-chorwackim a słoweńskim, a także analizy morfologicznej | |
35 | lub oznaczania części mowy w obu językach. | |
36 | ||
37 | %prep | |
38 | %setup -q -n apertium-%{lpair}-%{version} | |
39 | %patch0 -p1 | |
40 | ||
41 | %build | |
42 | %{__aclocal} | |
43 | %{__autoconf} | |
44 | %{__autoheader} | |
45 | %{__automake} | |
46 | %configure | |
47 | ||
60aa3798 | 48 | %{__make} -j1 |
d0b3f60e JB |
49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT%{_datadir}/apertium/modes | |
53 | ||
8e8d65f1 | 54 | %{__make} -j1 install \ |
d0b3f60e JB |
55 | DESTDIR=$RPM_BUILD_ROOT |
56 | ||
57 | # not needed here (see modes subdir) and contain wrong (builddir) paths | |
58 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/apertium/apertium-%{lpair}/*.mode | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc AUTHORS ChangeLog README | |
66 | %{_datadir}/apertium/apertium-%{lpair} | |
67 | %{_datadir}/apertium/modes/hbs-slv.mode | |
68 | %{_datadir}/apertium/modes/slv-hbs_BS.mode | |
69 | %{_datadir}/apertium/modes/slv-hbs_HR.mode | |
70 | %{_datadir}/apertium/modes/slv-hbs_SR.mode |