]> git.pld-linux.org Git - packages/apertium-dict-es-ast.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 8 Dec 2010 16:11:21 +0000 (16:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apertium-dict-es-ast-DESTDIR.patch -> 1.1
    apertium-dict-es-ast.spec -> 1.1

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

diff --git a/apertium-dict-es-ast-DESTDIR.patch b/apertium-dict-es-ast-DESTDIR.patch
new file mode 100644 (file)
index 0000000..946726e
--- /dev/null
@@ -0,0 +1,17 @@
+--- apertium-es-ast-1.0.0/Makefile.am.orig     2010-02-06 03:01:51.000000000 +0100
++++ apertium-es-ast-1.0.0/Makefile.am  2010-12-08 16:01:34.794121097 +0100
+@@ -126,10 +126,10 @@
+                 
+ install-data-local:
+       apertium-gen-modes modes.xml apertium-$(PREFIX1)
+-      $(INSTALL_DATA) $(PREFIX1).mode $(apertium_es_modesdir)
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(apertium_es_astdir)
+-      $(INSTALL_DATA) $(BASENAME).post-$(PREFIX1).t1x $(apertium_es_astdir)
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX2).t1x $(apertium_es_astdir)
++      $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_es_modesdir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(DESTDIR)$(apertium_es_astdir)
++      $(INSTALL_DATA) $(BASENAME).post-$(PREFIX1).t1x $(DESTDIR)$(apertium_es_astdir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX2).t1x $(DESTDIR)$(apertium_es_astdir)
+ #     $(INSTALL_DATA) $(PREFIX1)-pn.mode $(apertium_es_modesdir)
+ #     $(INSTALL_DATA) $(PREFIX2)-pn.mode $(apertium_es_modesdir)
diff --git a/apertium-dict-es-ast.spec b/apertium-dict-es-ast.spec
new file mode 100644 (file)
index 0000000..b8dda83
--- /dev/null
@@ -0,0 +1,62 @@
+Summary:       Spanish-Asturian language pair for Apertium
+Summary(pl.UTF-8):     Para języków hiszpański-asturski dla Apertium
+%define        lpair   es-ast
+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: 20be6eae60bd16bae04c93e761724e1c
+Patch0:                %{name}-DESTDIR.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 Spanish and Asturian, 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 hiszpańskim a asturskim, a także analizy morfologicznej lub
+oznaczania części mowy w obu językach.
+
+%prep
+%setup -q -n apertium-%{lpair}-%{version}
+%patch0 -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-ast.mode
This page took 0.05331 seconds and 4 git commands to generate.