From 7d3e3cf75ccdb0e395c8a078d3c97e778996c05d Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 9 Dec 2010 18:48:42 +0000 Subject: [PATCH 1/1] - new Changed files: apertium-dict-eo-es-DESTDIR.patch -> 1.1 apertium-dict-eo-es-apertium32.patch -> 1.1 apertium-dict-eo-es.spec -> 1.1 --- apertium-dict-eo-es-DESTDIR.patch | 19 ++++++++ apertium-dict-eo-es-apertium32.patch | 19 ++++++++ apertium-dict-eo-es.spec | 65 ++++++++++++++++++++++++++++ 3 files changed, 103 insertions(+) create mode 100644 apertium-dict-eo-es-DESTDIR.patch create mode 100644 apertium-dict-eo-es-apertium32.patch create mode 100644 apertium-dict-eo-es.spec diff --git a/apertium-dict-eo-es-DESTDIR.patch b/apertium-dict-eo-es-DESTDIR.patch new file mode 100644 index 0000000..4b04888 --- /dev/null +++ b/apertium-dict-eo-es-DESTDIR.patch @@ -0,0 +1,19 @@ +--- apertium-eo-es-1.0.0/Makefile.am.orig 2009-11-18 19:58:26.000000000 +0100 ++++ apertium-eo-es-1.0.0/Makefile.am 2010-12-09 19:27:56.978114393 +0100 +@@ -121,11 +121,11 @@ + + install-data-local: + apertium-gen-modes modes.xml apertium-$(PREFIX1) +- $(INSTALL_DATA) $(PREFIX1).mode $(apertium_eo_esmodesdir) +- $(INSTALL_DATA) $(PREFIX2).mode $(apertium_eo_esmodesdir) +- $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(apertium_eo_esdir) +- $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX1).t1x.translit $(apertium_eo_esdir) +- $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t2x.translit $(BASENAME).$(PREFIX1).t3x.translit $(apertium_eo_esdir) ++ $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_eo_esmodesdir) ++ $(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_eo_esmodesdir) ++ $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(DESTDIR)$(apertium_eo_esdir) ++ $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX1).t1x.translit $(DESTDIR)$(apertium_eo_esdir) ++ $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t2x.translit $(BASENAME).$(PREFIX1).t3x.translit $(DESTDIR)$(apertium_eo_esdir) + + + CLEANFILES = -rf $(TARGETS) *.translit modes diff --git a/apertium-dict-eo-es-apertium32.patch b/apertium-dict-eo-es-apertium32.patch new file mode 100644 index 0000000..a2044c6 --- /dev/null +++ b/apertium-dict-eo-es-apertium32.patch @@ -0,0 +1,19 @@ +--- apertium-eo-es-1.0.0/configure.ac.orig 2009-11-18 19:58:54.000000000 +0100 ++++ apertium-eo-es-1.0.0/configure.ac 2010-12-09 19:33:27.006117745 +0100 +@@ -19,8 +19,14 @@ + APERTIUM_VER=30 + ], + [ +- PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0) +- APERTIUM_VER=31 ++ PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0, ++ [ ++ APERTIUM_VER=31 ++ ], ++ [ ++ PKG_CHECK_MODULES(APERTIUM, apertium-3.2 >= 3.2.0) ++ APERTIUM_VER=32 ++ ]) + ]) + AC_SUBST(APERTIUM_VER) + ]) diff --git a/apertium-dict-eo-es.spec b/apertium-dict-eo-es.spec new file mode 100644 index 0000000..d2a6c8b --- /dev/null +++ b/apertium-dict-eo-es.spec @@ -0,0 +1,65 @@ +Summary: Esperanto-Spanish language pair for Apertium +Summary(pl.UTF-8): Para języków esperanto-hiszpański dla Apertium +%define lpair eo-es +Name: apertium-dict-%{lpair} +Version: 1.0.0 +Release: 1 +License: GPL v2+ +Group: Applications/Text +Source0: http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz +# Source0-md5: 92db1e1e1cae12b93f300dbb1f1138c0 +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 Esperanto and Spanish, 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 esperanto a hiszpań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 + +%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-es-eo/*.mode + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog README +%{_datadir}/apertium/apertium-es-eo +%{_datadir}/apertium/modes/es-eo.mode +%{_datadir}/apertium/modes/es-eo-translit.mode -- 2.43.0