From fcfa68f127d629094f454c4d9f606a74653f2d5b Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 2 Jan 2011 14:48:52 +0000 Subject: [PATCH] - new Changed files: apertium-dict-es-ro-DESTDIR.patch -> 1.1 apertium-dict-es-ro-apertium32.patch -> 1.1 apertium-dict-es-ro-fix.patch -> 1.1 apertium-dict-es-ro-install.patch -> 1.1 apertium-dict-es-ro.spec -> 1.1 --- apertium-dict-es-ro-DESTDIR.patch | 14 ++++++ apertium-dict-es-ro-apertium32.patch | 12 +++++ apertium-dict-es-ro-fix.patch | 54 ++++++++++++++++++++++ apertium-dict-es-ro-install.patch | 11 +++++ apertium-dict-es-ro.spec | 68 ++++++++++++++++++++++++++++ 5 files changed, 159 insertions(+) create mode 100644 apertium-dict-es-ro-DESTDIR.patch create mode 100644 apertium-dict-es-ro-apertium32.patch create mode 100644 apertium-dict-es-ro-fix.patch create mode 100644 apertium-dict-es-ro-install.patch create mode 100644 apertium-dict-es-ro.spec diff --git a/apertium-dict-es-ro-DESTDIR.patch b/apertium-dict-es-ro-DESTDIR.patch new file mode 100644 index 0000000..ab351d6 --- /dev/null +++ b/apertium-dict-es-ro-DESTDIR.patch @@ -0,0 +1,14 @@ +--- apertium-es-ro-0.7.1/Makefile.am.orig 2007-10-11 21:06:30.000000000 +0200 ++++ apertium-es-ro-0.7.1/Makefile.am 2011-01-02 12:27:14.809901529 +0100 +@@ -91,8 +91,8 @@ + install-data-local: + apertium-gen-modes modes.xml apertium-$(PREFIX1) + # spanish -> romanian is not currently functional ~fmt +-# $(INSTALL_DATA) $(PREFIX1).mode $(apertium_es_modesdir) +- $(INSTALL_DATA) $(PREFIX2).mode $(apertium_es_modesdir) +- $(INSTALL_DATA) $(BASENAME).trules-$(PREFIX2).xml $(BASENAME).trules-$(PREFIX1).xml $(apertium_es_rodir) ++# $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_es_modesdir) ++ $(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_es_modesdir) ++ $(INSTALL_DATA) $(BASENAME).trules-$(PREFIX2).xml $(BASENAME).trules-$(PREFIX1).xml $(DESTDIR)$(apertium_es_rodir) + + CLEANFILES = -rf $(TARGETS) modes diff --git a/apertium-dict-es-ro-apertium32.patch b/apertium-dict-es-ro-apertium32.patch new file mode 100644 index 0000000..2e91e5d --- /dev/null +++ b/apertium-dict-es-ro-apertium32.patch @@ -0,0 +1,12 @@ +--- apertium-es-ro-0.7.1/configure.ac.orig 2007-10-11 21:06:44.000000000 +0200 ++++ apertium-es-ro-0.7.1/configure.ac 2011-01-02 11:19:51.217906558 +0100 +@@ -13,6 +13,8 @@ + AC_CONFIG_HEADER([config]) + + PKG_CHECK_MODULES(apertium, [dnl +- apertium-3.0 >= required_apertium_version]) ++ apertium-3.0 >= required_apertium_version],, ++ [PKG_CHECK_MODULES(apertium, [apertium-3.1 >= 3.1.0],, ++ [PKG_CHECK_MODULES(apertium, [apertium-3.2 >= 3.2.0])])]) + + AC_OUTPUT([Makefile]) diff --git a/apertium-dict-es-ro-fix.patch b/apertium-dict-es-ro-fix.patch new file mode 100644 index 0000000..52bed12 --- /dev/null +++ b/apertium-dict-es-ro-fix.patch @@ -0,0 +1,54 @@ +--- apertium-es-ro-0.7.1/apertium-es-ro.trules-ro-es.xml.orig 2007-10-11 21:04:49.000000000 +0200 ++++ apertium-es-ro-0.7.1/apertium-es-ro.trules-ro-es.xml 2011-01-02 14:57:38.409901529 +0100 +@@ -4545,8 +4545,6 @@ + + + +- +- + + + +@@ -4676,8 +4674,6 @@ + + + +- +- + + + +@@ -4984,8 +4980,6 @@ + + + +- +- + + + +@@ -5115,8 +5109,6 @@ + + + +- +- + + + +@@ -5758,6 +5750,7 @@ + + + ++ + + + +@@ -5766,6 +5759,7 @@ + + + ++ + + + diff --git a/apertium-dict-es-ro-install.patch b/apertium-dict-es-ro-install.patch new file mode 100644 index 0000000..41b5391 --- /dev/null +++ b/apertium-dict-es-ro-install.patch @@ -0,0 +1,11 @@ +--- apertium-es-ro-0.7.1/Makefile.am.orig 2011-01-02 14:58:35.629905720 +0100 ++++ apertium-es-ro-0.7.1/Makefile.am 2011-01-02 15:10:59.653898177 +0100 +@@ -86,7 +86,7 @@ + $(PREFIX1).autopgen.bin $(PREFIX2).autopgen.bin \ + $(PREFIX1).prob $(PREFIX2).prob trules-$(PREFIX1).xml \ + trules-$(PREFIX2).xml trules-$(PREFIX1).bin \ +- trules-$(PREFIX2).bin $(PREFIX1).mode $(PREFIX2).mode ++ trules-$(PREFIX2).bin $(PREFIX2).mode + + install-data-local: + apertium-gen-modes modes.xml apertium-$(PREFIX1) diff --git a/apertium-dict-es-ro.spec b/apertium-dict-es-ro.spec new file mode 100644 index 0000000..a40c61f --- /dev/null +++ b/apertium-dict-es-ro.spec @@ -0,0 +1,68 @@ +Summary: Spanish-Romanian language pair for Apertium +Summary(pl.UTF-8): Para języków hiszpański-rumuński dla Apertium +%define lpair es-ro +Name: apertium-dict-%{lpair} +Version: 0.7.1 +Release: 1 +License: GPL v3 +Group: Applications/Text +Source0: http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz +# Source0-md5: 9de6e21ddf8dfb65a6b09b430e8ab600 +Patch0: %{name}-DESTDIR.patch +Patch1: %{name}-apertium32.patch +Patch2: %{name}-fix.patch +Patch3: %{name}-install.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 Romanian, 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 rumuńskim, 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 +%patch2 -p1 +%patch3 -p1 + +%build +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_datadir}/apertium/modes + +%{__make} 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 NEWS README +%{_datadir}/apertium/apertium-%{lpair} +%{_datadir}/apertium/modes/ro-es.mode -- 2.43.0