Author: qboosh                       Date: Sat Dec 18 21:25:34 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new package

---- Files affected:
packages/apertium-dict-eo-ca:
   apertium-dict-eo-ca-apertium32.patch (NONE -> 1.1)  (NEW), 
apertium-dict-eo-ca-DESTDIR.patch (NONE -> 1.1)  (NEW), 
apertium-dict-eo-ca.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/apertium-dict-eo-ca/apertium-dict-eo-ca-apertium32.patch
diff -u /dev/null 
packages/apertium-dict-eo-ca/apertium-dict-eo-ca-apertium32.patch:1.1
--- /dev/null   Sat Dec 18 22:25:34 2010
+++ packages/apertium-dict-eo-ca/apertium-dict-eo-ca-apertium32.patch   Sat Dec 
18 22:25:28 2010
@@ -0,0 +1,18 @@
+--- apertium-eo-ca-0.9.1/configure.ac.orig     2009-07-04 17:19:42.000000000 
+0200
++++ apertium-eo-ca-0.9.1/configure.ac  2010-12-18 12:22:01.430124450 +0100
+@@ -19,8 +19,14 @@
+     APERTIUM_VER=30
+   ],
+   [
+-    PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0)
++    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)
+ ])

================================================================
Index: packages/apertium-dict-eo-ca/apertium-dict-eo-ca-DESTDIR.patch
diff -u /dev/null 
packages/apertium-dict-eo-ca/apertium-dict-eo-ca-DESTDIR.patch:1.1
--- /dev/null   Sat Dec 18 22:25:34 2010
+++ packages/apertium-dict-eo-ca/apertium-dict-eo-ca-DESTDIR.patch      Sat Dec 
18 22:25:28 2010
@@ -0,0 +1,19 @@
+--- apertium-eo-ca-0.9.1/Makefile.am.orig      2009-07-04 17:23:58.000000000 
+0200
++++ apertium-eo-ca-0.9.1/Makefile.am   2010-12-18 12:23:56.818123612 +0100
+@@ -122,11 +122,11 @@
+ 
+ install-data-local:
+       apertium-gen-modes modes.xml apertium-$(PREFIX1)
+-      $(INSTALL_DATA) $(PREFIX1).mode $(apertium_eo_camodesdir)
+-      $(INSTALL_DATA) $(PREFIX2).mode $(apertium_eo_camodesdir)
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x 
$(apertium_eo_cadir)
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x 
$(BASENAME).$(PREFIX1).t1x.translit $(apertium_eo_cadir)
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t2x.translit 
$(BASENAME).$(PREFIX1).t3x.translit $(apertium_eo_cadir)
++      $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_eo_camodesdir)
++      $(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_eo_camodesdir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x 
$(DESTDIR)$(apertium_eo_cadir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x 
$(BASENAME).$(PREFIX1).t1x.translit $(DESTDIR)$(apertium_eo_cadir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t2x.translit 
$(BASENAME).$(PREFIX1).t3x.translit $(DESTDIR)$(apertium_eo_cadir)
+ 
+ 
+ CLEANFILES = -rf $(TARGETS) *.translit modes 

================================================================
Index: packages/apertium-dict-eo-ca/apertium-dict-eo-ca.spec
diff -u /dev/null packages/apertium-dict-eo-ca/apertium-dict-eo-ca.spec:1.1
--- /dev/null   Sat Dec 18 22:25:34 2010
+++ packages/apertium-dict-eo-ca/apertium-dict-eo-ca.spec       Sat Dec 18 
22:25:28 2010
@@ -0,0 +1,75 @@
+# $Revision$, $Date$
+Summary:       Esperanto-Catalan language pair for Apertium
+Summary(pl.UTF-8):     Para języków esperanto-kataloński dla Apertium
+%define        lpair   eo-ca
+Name:          apertium-dict-%{lpair}
+Version:       0.9.1
+Release:       1
+License:       GPL v2+
+Group:         Applications/Text
+Source0:       
http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz
+# Source0-md5: 75b027c23e031bfdb645fbd120e82d72
+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 Catalan, 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 kataloń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-ca-eo/*.mode
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README
+%{_datadir}/apertium/apertium-ca-eo
+%{_datadir}/apertium/modes/ca-eo.mode
+%{_datadir}/apertium/modes/ca-eo-translit.mode
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/12/18 21:25:28  qboosh
+- new package
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to