[packages/apertium-dict-eu-en] - new

qboosh qboosh at pld-linux.org
Sun Jun 30 20:20:31 CEST 2013


commit 15cba8e21886b8178ea458d4d98e852689d4de73
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 30 20:20:15 2013 +0200

    - new

 apertium-dict-eu-en-DESTDIR.patch | 25 +++++++++++++++++
 apertium-dict-eu-en.spec          | 59 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)
---
diff --git a/apertium-dict-eu-en.spec b/apertium-dict-eu-en.spec
new file mode 100644
index 0000000..08c301e
--- /dev/null
+++ b/apertium-dict-eu-en.spec
@@ -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
diff --git a/apertium-dict-eu-en-DESTDIR.patch b/apertium-dict-eu-en-DESTDIR.patch
new file mode 100644
index 0000000..a091fbc
--- /dev/null
+++ b/apertium-dict-eu-en-DESTDIR.patch
@@ -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) 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apertium-dict-eu-en.git/commitdiff/15cba8e21886b8178ea458d4d98e852689d4de73



More information about the pld-cvs-commit mailing list