- new master auto/th/apertium-dict-eu-en-0.3.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Jun 2013 18:20:15 +0000 (20:20 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Jun 2013 18:20:15 +0000 (20:20 +0200)
apertium-dict-eu-en-DESTDIR.patch [new file with mode: 0644]
apertium-dict-eu-en.spec [new file with mode: 0644]

diff --git a/apertium-dict-eu-en-DESTDIR.patch b/apertium-dict-eu-en-DESTDIR.patch
new file mode 100644 (file)
index 0000000..a091fbc
--- /dev/null
@@ -0,0 +1,25 @@
+--- apertium-eu-en-0.3.1/Makefile.am.orig      2011-12-28 21:03:14.000000000 +0100
++++ apertium-eu-en-0.3.1/Makefile.am   2013-06-30 19:04:42.760122149 +0200
+@@ -181,16 +181,15 @@
+                     $(PREFIX1).autopgen.bin \
+                     $(PREFIX1).prob $(PREFIX1).ordinals.t1x.bin \
+                     $(PREFIX1).colloc.t1x.bin \
+-                  $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin \
+-                  $(PREFIX1).mode       
++                  $(PREFIX1).t1x.bin $(PREFIX1).t2x.bin $(PREFIX1).t3x.bin
+ install-data-local:
+       apertium-gen-modes modes.xml apertium-$(PREFIX1)
+-      $(INSTALL_DATA) $(PREFIX1).mode $(apertium_eu_modesdir)
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(apertium_eu_esdir)
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(apertium_eu_esdir)
+-      $(INSTALL_DATA) $(BASENAME).ordinals.t1x $(apertium_eu_esdir)
+-      $(INSTALL_DATA) $(BASENAME).colloc.t1x $(apertium_eu_esdir)
++      $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_eu_modesdir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(DESTDIR)$(apertium_eu_esdir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(DESTDIR)$(apertium_eu_esdir)
++      $(INSTALL_DATA) $(BASENAME).ordinals.t1x $(DESTDIR)$(apertium_eu_esdir)
++      $(INSTALL_DATA) $(BASENAME).colloc.t1x $(DESTDIR)$(apertium_eu_esdir)
+       cp *.mode modes/
+ CLEANFILES = -r $(TARGETS) 
diff --git a/apertium-dict-eu-en.spec b/apertium-dict-eu-en.spec
new file mode 100644 (file)
index 0000000..08c301e
--- /dev/null
@@ -0,0 +1,59 @@
+Summary:       Basque-English language pair for Apertium
+Summary(pl.UTF-8):     Para języków baskijski-angielski dla Apertium
+%define        lpair   eu-en
+Name:          apertium-dict-%{lpair}
+Version:       0.3.1
+Release:       1
+License:       GPL v2+
+Group:         Applications/Text
+Source0:       http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz
+# Source0-md5: 2f2a1d4beb643677053936d809dd64cb
+Patch0:                %{name}-DESTDIR.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 Basque and English, 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 baskijskim a angielskim, a także analizy morfologicznej lub
+oznaczania części mowy w obu językach.
+
+%prep
+%setup -q -n apertium-%{lpair}-%{version}
+%patch0 -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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%{_datadir}/apertium/apertium-%{lpair}
+%{_datadir}/apertium/modes/eu-en.mode
This page took 0.125422 seconds and 4 git commands to generate.