- new
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 20 Dec 2010 20:41:30 +0000 (20:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apertium-dict-fr-ca-DESTDIR.patch -> 1.1
    apertium-dict-fr-ca-apertium32.patch -> 1.1
    apertium-dict-fr-ca.spec -> 1.1

apertium-dict-fr-ca-DESTDIR.patch [new file with mode: 0644]
apertium-dict-fr-ca-apertium32.patch [new file with mode: 0644]
apertium-dict-fr-ca.spec [new file with mode: 0644]

diff --git a/apertium-dict-fr-ca-DESTDIR.patch b/apertium-dict-fr-ca-DESTDIR.patch
new file mode 100644 (file)
index 0000000..2c7b273
--- /dev/null
@@ -0,0 +1,14 @@
+--- apertium-fr-ca-1.0.2/Makefile.am.orig      2009-03-12 20:49:44.000000000 +0100
++++ apertium-fr-ca-1.0.2/Makefile.am   2010-12-20 17:58:37.094115231 +0100
+@@ -91,8 +91,8 @@
+ install-data-local:
+       apertium-gen-modes modes.xml apertium-$(PREFIX1)
+-      $(INSTALL_DATA) $(PREFIX1).mode $(apertium_fr_modesdir)
+-      $(INSTALL_DATA) $(PREFIX2).mode $(apertium_fr_modesdir)
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX2).t1x $(BASENAME).$(PREFIX1).t1x $(apertium_fr_cadir)
++      $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_fr_modesdir)
++      $(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_fr_modesdir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX2).t1x $(BASENAME).$(PREFIX1).t1x $(DESTDIR)$(apertium_fr_cadir)
+ CLEANFILES = -rf $(TARGETS) modes $(BASENAME).$(LANG1).dix *.mode
diff --git a/apertium-dict-fr-ca-apertium32.patch b/apertium-dict-fr-ca-apertium32.patch
new file mode 100644 (file)
index 0000000..734f524
--- /dev/null
@@ -0,0 +1,19 @@
+--- apertium-fr-ca-1.0.2/configure.ac.orig     2009-03-12 20:55:15.000000000 +0100
++++ apertium-fr-ca-1.0.2/configure.ac  2010-12-20 17:57:52.754119421 +0100
+@@ -27,8 +27,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
++            ])
+           ])
+       ])
+   ])
diff --git a/apertium-dict-fr-ca.spec b/apertium-dict-fr-ca.spec
new file mode 100644 (file)
index 0000000..a266ae6
--- /dev/null
@@ -0,0 +1,65 @@
+Summary:       French/Catalan language pair for Apertium
+Summary(pl.UTF-8):     Para języków francuski-kataloński dla Apertium
+%define        lpair   fr-ca
+Name:          apertium-dict-%{lpair}
+Version:       1.0.2
+Release:       1
+License:       GPL v2+
+Group:         Applications/Text
+Source0:       http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz
+# Source0-md5: f04cb595c342a623a5d17cd1f5bfa1f3
+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 French 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 francuskim 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-%{lpair}/*.mode
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README
+%{_datadir}/apertium/apertium-%{lpair}
+%{_datadir}/apertium/modes/ca-fr.mode
+%{_datadir}/apertium/modes/fr-ca.mode
This page took 0.051039 seconds and 4 git commands to generate.