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