From 26d834de8fc71c25daa59a2ed81f46ebf68bda41 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 17 Dec 2010 20:05:20 +0000 Subject: [PATCH 1/1] - new package Changed files: apertium-pn-recogniser.spec -> 1.1 --- apertium-pn-recogniser.spec | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 apertium-pn-recogniser.spec diff --git a/apertium-pn-recogniser.spec b/apertium-pn-recogniser.spec new file mode 100644 index 0000000..503cdc7 --- /dev/null +++ b/apertium-pn-recogniser.spec @@ -0,0 +1,64 @@ +Summary: Apertium pipeline module to detect proper nouns +Summary(pl.UTF-8): Moduł potoku Apertium do rozpoznawania rzeczowników własnych +Name: apertium-pn-recogniser +Version: 0.1.0 +Release: 1 +License: GPL v2+ +Group: Applications/Text +Source0: http://downloads.sourceforge.net/apertium/%{name}-%{version}.tar.gz +# Source0-md5: 48e23ad48e54b8f5a251a7175cc938b4 +URL: http://www.apertium.org/ +BuildRequires: apertium >= 3.1.0 +BuildRequires: autoconf >= 2.50 +BuildRequires: automake +BuildRequires: bash +BuildRequires: libstdc++-devel +BuildRequires: libtool >= 2:1.5 +BuildRequires: lttoolbox-devel >= 3.1.0 +Requires: apertium >= 3.1.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This program is a module for the Apertium pipeline which detects +proper nouns in the input and marks them as unknown words so that the +rest of the modules in the pipeline do not process them. This avoids +the common case of wrong translations of source-language proper nouns +which are also common nouns according to the dictionaries. The proper +noun recogniser is mainly based on the one already included in the +Freeling project (). + +%description -l pl.UTF-8 +Ten program jest modułem dla potoku Apertium wykrywającym na wejściu +rzeczowniki własnych i zaznaczający je jako nieznane słowa w ten +sposób, że reszta modułów w potoku nie będzie ich przetwarzała. +Zapobiega to błędnemu tłumaczeniu rzeczowników własnych z języka +źródłowego, w którym są także rzeczownikami pospolitymi, występującymi +w słownikach. Moduł rozpoznający rzeczowniki własne jest oparty +głównie na module włączonym do projektu Freeling +(). + +%prep +%setup -q + +%build +%{__aclocal} +%{__autoconf} +%{__automake} +%configure + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc AUTHORS README TODO.txt doc/decisiones-diseno.txt +%attr(755,root,root) %{_bindir}/apertium-pn-recogniser +%attr(755,root,root) %{_bindir}/apertium-pn-recogniser-final -- 2.43.0