packages: apertium-dict-es-ro/apertium-dict-es-ro-apertium32.patch (NEW), a...
qboosh
qboosh at pld-linux.org
Sun Jan 2 15:48:57 CET 2011
Author: qboosh Date: Sun Jan 2 14:48:57 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/apertium-dict-es-ro:
apertium-dict-es-ro-apertium32.patch (NONE -> 1.1) (NEW), apertium-dict-es-ro-DESTDIR.patch (NONE -> 1.1) (NEW), apertium-dict-es-ro-fix.patch (NONE -> 1.1) (NEW), apertium-dict-es-ro-install.patch (NONE -> 1.1) (NEW), apertium-dict-es-ro.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/apertium-dict-es-ro/apertium-dict-es-ro-apertium32.patch
diff -u /dev/null packages/apertium-dict-es-ro/apertium-dict-es-ro-apertium32.patch:1.1
--- /dev/null Sun Jan 2 15:48:57 2011
+++ packages/apertium-dict-es-ro/apertium-dict-es-ro-apertium32.patch Sun Jan 2 15:48:52 2011
@@ -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])
================================================================
Index: packages/apertium-dict-es-ro/apertium-dict-es-ro-DESTDIR.patch
diff -u /dev/null packages/apertium-dict-es-ro/apertium-dict-es-ro-DESTDIR.patch:1.1
--- /dev/null Sun Jan 2 15:48:57 2011
+++ packages/apertium-dict-es-ro/apertium-dict-es-ro-DESTDIR.patch Sun Jan 2 15:48:52 2011
@@ -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
================================================================
Index: packages/apertium-dict-es-ro/apertium-dict-es-ro-fix.patch
diff -u /dev/null packages/apertium-dict-es-ro/apertium-dict-es-ro-fix.patch:1.1
--- /dev/null Sun Jan 2 15:48:57 2011
+++ packages/apertium-dict-es-ro/apertium-dict-es-ro-fix.patch Sun Jan 2 15:48:52 2011
@@ -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 @@
+ <clip pos="3" side="sl" part="a_case"/>
+ <lit-tag v="nom"/>
+ </equal>
+- </and>
+- <and>
+ <equal>
+ <clip pos="4" side="sl" part="a_def"/>
+ <lit-tag v="def"/>
+@@ -4676,8 +4674,6 @@
+ <clip pos="2" side="sl" part="a_case"/>
+ <lit-tag v="nom"/>
+ </equal>
+- </and>
+- <and>
+ <equal>
+ <clip pos="3" side="sl" part="a_def"/>
+ <lit-tag v="def"/>
+@@ -4984,8 +4980,6 @@
+ <clip pos="2" side="sl" part="a_case"/>
+ <lit-tag v="nom"/>
+ </equal>
+- </and>
+- <and>
+ <equal>
+ <clip pos="3" side="sl" part="a_def"/>
+ <lit-tag v="def"/>
+@@ -5115,8 +5109,6 @@
+ <clip pos="2" side="sl" part="a_case"/>
+ <lit-tag v="nom"/>
+ </equal>
+- </and>
+- <and>
+ <equal>
+ <clip pos="3" side="sl" part="a_def"/>
+ <lit-tag v="def"/>
+@@ -5758,6 +5750,7 @@
+ <choose>
+ <when>
+ <test>
++ <and>
+ <equal>
+ <clip pos="1" side="sl" part="a_case"/>
+ <lit-tag v="nom"/>
+@@ -5766,6 +5759,7 @@
+ <clip pos="1" side="sl" part="a_def"/>
+ <lit-tag v="def"/>
+ </equal>
++ </and>
+ </test>
+ <call-macro n="modcase">
+ <with-param pos="1"/>
================================================================
Index: packages/apertium-dict-es-ro/apertium-dict-es-ro-install.patch
diff -u /dev/null packages/apertium-dict-es-ro/apertium-dict-es-ro-install.patch:1.1
--- /dev/null Sun Jan 2 15:48:57 2011
+++ packages/apertium-dict-es-ro/apertium-dict-es-ro-install.patch Sun Jan 2 15:48:52 2011
@@ -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)
================================================================
Index: packages/apertium-dict-es-ro/apertium-dict-es-ro.spec
diff -u /dev/null packages/apertium-dict-es-ro/apertium-dict-es-ro.spec:1.1
--- /dev/null Sun Jan 2 15:48:57 2011
+++ packages/apertium-dict-es-ro/apertium-dict-es-ro.spec Sun Jan 2 15:48:52 2011
@@ -0,0 +1,78 @@
+# $Revision$, $Date$
+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
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/01/02 14:48:52 qboosh
+- new
================================================================
More information about the pld-cvs-commit
mailing list