]> git.pld-linux.org Git - packages/apertium-dict-oc-es.git/commitdiff
- new package
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 31 Dec 2010 15:53:26 +0000 (15:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apertium-dict-oc-es-DESTDIR.patch -> 1.1
    apertium-dict-oc-es-apertium32.patch -> 1.1
    apertium-dict-oc-es-fix.patch -> 1.1
    apertium-dict-oc-es.spec -> 1.1

apertium-dict-oc-es-DESTDIR.patch [new file with mode: 0644]
apertium-dict-oc-es-apertium32.patch [new file with mode: 0644]
apertium-dict-oc-es-fix.patch [new file with mode: 0644]
apertium-dict-oc-es.spec [new file with mode: 0644]

diff --git a/apertium-dict-oc-es-DESTDIR.patch b/apertium-dict-oc-es-DESTDIR.patch
new file mode 100644 (file)
index 0000000..9db17c9
--- /dev/null
@@ -0,0 +1,16 @@
+--- apertium-oc-es-1.0.5/Makefile.am.orig      2008-07-21 14:53:50.000000000 +0200
++++ apertium-oc-es-1.0.5/Makefile.am   2010-12-31 13:18:14.942122774 +0100
+@@ -267,9 +267,9 @@
+ install-data-local:
+       apertium-gen-modes modes.xml apertium-$(PREFIX1)
+-      $(INSTALL_DATA) oc-es.mode $(apertium_oc_esmodesdir)
+-      $(INSTALL_DATA) es-oc.mode $(apertium_oc_esmodesdir)
+-      $(INSTALL_DATA) oc_aran-es.mode $(apertium_oc_esmodesdir)
+-      $(INSTALL_DATA) es-oc_aran.mode $(apertium_oc_esmodesdir)
++      $(INSTALL_DATA) oc-es.mode $(DESTDIR)$(apertium_oc_esmodesdir)
++      $(INSTALL_DATA) es-oc.mode $(DESTDIR)$(apertium_oc_esmodesdir)
++      $(INSTALL_DATA) oc_aran-es.mode $(DESTDIR)$(apertium_oc_esmodesdir)
++      $(INSTALL_DATA) es-oc_aran.mode $(DESTDIR)$(apertium_oc_esmodesdir)
+       
+ CLEANFILES = -r $(TARGETS)
diff --git a/apertium-dict-oc-es-apertium32.patch b/apertium-dict-oc-es-apertium32.patch
new file mode 100644 (file)
index 0000000..91fc099
--- /dev/null
@@ -0,0 +1,24 @@
+--- apertium-oc-es-1.0.5/configure.ac.orig     2008-07-21 14:53:50.000000000 +0200
++++ apertium-oc-es-1.0.5/configure.ac  2010-12-31 13:17:02.542116069 +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)
diff --git a/apertium-dict-oc-es-fix.patch b/apertium-dict-oc-es-fix.patch
new file mode 100644 (file)
index 0000000..331733f
--- /dev/null
@@ -0,0 +1,18 @@
+--- apertium-oc-es-1.0.5/apertium-oc-es.oc-es.t1x.orig 2010-12-31 15:15:07.958117745 +0100
++++ apertium-oc-es-1.0.5/apertium-oc-es.oc-es.t1x      2010-12-31 15:14:35.166117745 +0100
+@@ -1190,6 +1190,7 @@
+       <choose><!-- aquests no són ref-->
+       <when>
+         <test>
++         <and>
+           <equal caseless="yes">
+             <clip pos="2" side="sl" part="pers"/>
+             <lit-tag v="p3"/>
+@@ -1198,6 +1199,7 @@
+             <clip pos="2" side="sl" part="nbr"/>
+             <lit-tag v="sg"/>
+           </equal>
++         </and>
+         </test>
+         <choose>
+           <when>
diff --git a/apertium-dict-oc-es.spec b/apertium-dict-oc-es.spec
new file mode 100644 (file)
index 0000000..5bf0b9a
--- /dev/null
@@ -0,0 +1,69 @@
+Summary:       Occitan-Spanish language pair for Apertium
+Summary(pl.UTF-8):     Para języków okcytański-hiszpański dla Apertium
+%define        lpair   oc-es
+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: c3d7f9d2c5b0ee050e7219ea590c019e
+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 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 okcytańskim 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
+%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/es-oc.mode
+%{_datadir}/apertium/modes/es-oc_aran.mode
+%{_datadir}/apertium/modes/oc-es.mode
+%{_datadir}/apertium/modes/oc_aran-es.mode
This page took 0.122661 seconds and 4 git commands to generate.