]> git.pld-linux.org Git - packages/apertium-dict-ht-en.git/commitdiff
- new master
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 9 Dec 2010 17:34:37 +0000 (17:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apertium-dict-ht-en-DESTDIR.patch -> 1.1
    apertium-dict-ht-en.spec -> 1.1

apertium-dict-ht-en-DESTDIR.patch [new file with mode: 0644]
apertium-dict-ht-en.spec [new file with mode: 0644]

diff --git a/apertium-dict-ht-en-DESTDIR.patch b/apertium-dict-ht-en-DESTDIR.patch
new file mode 100644 (file)
index 0000000..db6a47b
--- /dev/null
@@ -0,0 +1,19 @@
+--- apertium-ht-en-0.1.0/Makefile.am.orig      2010-01-24 23:36:34.000000000 +0100
++++ apertium-ht-en-0.1.0/Makefile.am   2010-12-09 18:02:50.714120259 +0100
+@@ -78,11 +78,11 @@
+       apertium-gen-modes modes.xml apertium-$(PREFIX1)
+       rm -rf modes
+       mv modes.bak modes
+-      test -d $(apertium_ht_modesdir) || mkdir $(apertium_ht_modesdir)
+-      $(INSTALL_DATA) $(PREFIX1).mode $(apertium_ht_modesdir)
++      test -d $(DESTDIR)$(apertium_ht_modesdir) || mkdir $(DESTDIR)$(apertium_ht_modesdir)
++      $(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_ht_modesdir)
+       rm $(PREFIX1).mode 
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(apertium_ht_endir)
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t2x $(apertium_ht_endir)
+-      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(apertium_ht_endir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(DESTDIR)$(apertium_ht_endir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t2x $(DESTDIR)$(apertium_ht_endir)
++      $(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(DESTDIR)$(apertium_ht_endir)
+ CLEANFILES = -rf $(TARGETS_COMMON) modes
diff --git a/apertium-dict-ht-en.spec b/apertium-dict-ht-en.spec
new file mode 100644 (file)
index 0000000..1fc45df
--- /dev/null
@@ -0,0 +1,61 @@
+Summary:       Haitian-English language pair for Apertium
+Summary(pl.UTF-8):     Para języków haitański-angielski dla Apertium
+%define        lpair   ht-en
+Name:          apertium-dict-%{lpair}
+Version:       0.1.0
+Release:       1
+License:       GPL v3
+Group:         Applications/Text
+Source0:       http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz
+# Source0-md5: 73d6dbbb2c1ad50b8e6c5428f4fc7a9e
+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 Haitian and English, 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 haitańskim a angielskim, 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}
+%{__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
+%{_datadir}/apertium/apertium-%{lpair}
+%{_datadir}/apertium/modes/ht-en.mode
This page took 0.074501 seconds and 4 git commands to generate.