Author: qboosh                       Date: Sun Jan  2 09:40:15 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/apertium-dict-oc-ca/apertium-dict-oc-ca-apertium32.patch
diff -u /dev/null 
packages/apertium-dict-oc-ca/apertium-dict-oc-ca-apertium32.patch:1.1
--- /dev/null   Sun Jan  2 10:40:15 2011
+++ packages/apertium-dict-oc-ca/apertium-dict-oc-ca-apertium32.patch   Sun Jan 
 2 10:40:10 2011
@@ -0,0 +1,24 @@
+--- apertium-oc-ca-1.0.5/configure.ac.orig     2008-07-21 13:02:56.000000000 
+0200
++++ apertium-oc-ca-1.0.5/configure.ac  2011-01-02 09:38:41.805899015 +0100
+@@ -23,8 +23,20 @@
+           APERTIUM_VER=20
+       ],
+       [
+-          PKG_CHECK_MODULES(APERTIUM, apertium-3.0 >= 3.0.0)
++          PKG_CHECK_MODULES(APERTIUM, apertium-3.0 >= 3.0.0,
++        [
+           APERTIUM_VER=30
++        ],
++        [
++              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-oc-ca/apertium-dict-oc-ca-DESTDIR.patch
diff -u /dev/null 
packages/apertium-dict-oc-ca/apertium-dict-oc-ca-DESTDIR.patch:1.1
--- /dev/null   Sun Jan  2 10:40:15 2011
+++ packages/apertium-dict-oc-ca/apertium-dict-oc-ca-DESTDIR.patch      Sun Jan 
 2 10:40:10 2011
@@ -0,0 +1,16 @@
+--- apertium-oc-ca-1.0.5/Makefile.am.orig      2008-07-21 13:02:56.000000000 
+0200
++++ apertium-oc-ca-1.0.5/Makefile.am   2011-01-02 09:39:33.785898177 +0100
+@@ -267,9 +267,9 @@
+ 
+ install-data-local:
+       apertium-gen-modes modes.xml apertium-$(PREFIX1)
+-      $(INSTALL_DATA) oc-ca.mode $(apertium_oc_camodesdir)
+-      $(INSTALL_DATA) ca-oc.mode $(apertium_oc_camodesdir)
+-      $(INSTALL_DATA) oc_aran-ca.mode $(apertium_oc_camodesdir)
+-      $(INSTALL_DATA) ca-oc_aran.mode $(apertium_oc_camodesdir)
++      $(INSTALL_DATA) oc-ca.mode $(DESTDIR)$(apertium_oc_camodesdir)
++      $(INSTALL_DATA) ca-oc.mode $(DESTDIR)$(apertium_oc_camodesdir)
++      $(INSTALL_DATA) oc_aran-ca.mode $(DESTDIR)$(apertium_oc_camodesdir)
++      $(INSTALL_DATA) ca-oc_aran.mode $(DESTDIR)$(apertium_oc_camodesdir)
+       
+ CLEANFILES = -r $(TARGETS)

================================================================
Index: packages/apertium-dict-oc-ca/apertium-dict-oc-ca-fix.patch
diff -u /dev/null packages/apertium-dict-oc-ca/apertium-dict-oc-ca-fix.patch:1.1
--- /dev/null   Sun Jan  2 10:40:15 2011
+++ packages/apertium-dict-oc-ca/apertium-dict-oc-ca-fix.patch  Sun Jan  2 
10:40:10 2011
@@ -0,0 +1,52 @@
+--- apertium-oc-ca-1.0.5/apertium-oc-ca.oc-ca.t1x.orig 2008-07-21 
13:02:56.000000000 +0200
++++ apertium-oc-ca-1.0.5/apertium-oc-ca.oc-ca.t1x      2011-01-02 
10:00:40.661909072 +0100
+@@ -1283,6 +1283,7 @@
+                       <choose><!-- aquests no són ref-->
+                               <when>
+                                       <test>
++                                          <and>
+                                               <equal caseless="yes">
+                                                       <clip pos="2" side="sl" 
part="pers"/>
+                                                       <lit-tag v="p3"/>
+@@ -1291,6 +1292,7 @@
+                                                       <clip pos="2" side="sl" 
part="nbr"/>
+                                                       <lit-tag v="sg"/>
+                                               </equal>
++                                          </and>
+                                       </test>
+                                       <choose>
+                                               <when>
+--- apertium-oc-ca-1.0.5/apertium-oc-ca.ca-oc.t1x.orig 2008-07-21 
13:02:56.000000000 +0200
++++ apertium-oc-ca-1.0.5/apertium-oc-ca.ca-oc.t1x      2011-01-02 
10:21:06.057902367 +0100
+@@ -988,6 +988,7 @@
+                       <choose><!-- aquests no són ref-->
+                               <when>
+                                       <test>
++                                          <and>
+                                               <equal caseless="yes">
+                                                       <clip pos="2" side="sl" 
part="pers"/>
+                                                       <lit-tag v="p3"/>
+@@ -996,6 +997,7 @@
+                                                       <clip pos="2" side="sl" 
part="nbr"/>
+                                                       <lit-tag v="sg"/>
+                                               </equal>
++                                          </and>
+                                       </test>
+                                       <choose>
+                                               <when><!-- m'ha passat-> m'a 
arribat-->
+@@ -1203,6 +1205,7 @@
+                       <choose><!-- aquests no són ref-->
+                               <when>
+                                       <test>
++                                          <and>
+                                               <equal caseless="yes">
+                                                       <clip pos="2" side="sl" 
part="pers"/>
+                                                       <lit-tag v="p3"/>
+@@ -1211,6 +1214,7 @@
+                                                       <clip pos="2" side="sl" 
part="nbr"/>
+                                                       <lit-tag v="sg"/>
+                                               </equal>
++                                          </and>
+                                       </test>
+                                       <choose>
+                                               <when><!-- m'ha passat-> m'a 
arribat-->

================================================================
Index: packages/apertium-dict-oc-ca/apertium-dict-oc-ca.spec
diff -u /dev/null packages/apertium-dict-oc-ca/apertium-dict-oc-ca.spec:1.1
--- /dev/null   Sun Jan  2 10:40:15 2011
+++ packages/apertium-dict-oc-ca/apertium-dict-oc-ca.spec       Sun Jan  2 
10:40:10 2011
@@ -0,0 +1,79 @@
+# $Revision$, $Date$
+Summary:       Occitan-Catalan language pair for Apertium
+Summary(pl.UTF-8):     Para języków okcytański-kataloński dla Apertium
+%define        lpair   oc-ca
+Name:          apertium-dict-%{lpair}
+Version:       1.0.5
+Release:       1
+License:       GPL v2+
+Group:         Applications/Text
+Source0:       
http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz
+# Source0-md5: 902a96a35ae43d3f9437ae92f812459e
+Patch0:                %{name}-DESTDIR.patch
+Patch1:                %{name}-apertium32.patch
+Patch2:                %{name}-fix.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 Occitan 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 okcytańskim 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
+%patch2 -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/ca-oc.mode
+%{_datadir}/apertium/modes/ca-oc_aran.mode
+%{_datadir}/apertium/modes/oc-ca.mode
+%{_datadir}/apertium/modes/oc_aran-ca.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  2011/01/02 09:40:10  qboosh
+- new
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to