packages: apertium-dict-en-gl/apertium-dict-en-gl-apertium32.patch (NEW), a...

qboosh qboosh at pld-linux.org
Fri Dec 31 12:17:02 CET 2010


Author: qboosh                       Date: Fri Dec 31 11:17:02 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new package

---- Files affected:
packages/apertium-dict-en-gl:
   apertium-dict-en-gl-apertium32.patch (NONE -> 1.1)  (NEW), apertium-dict-en-gl-DESTDIR.patch (NONE -> 1.1)  (NEW), apertium-dict-en-gl.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/apertium-dict-en-gl/apertium-dict-en-gl-apertium32.patch
diff -u /dev/null packages/apertium-dict-en-gl/apertium-dict-en-gl-apertium32.patch:1.1
--- /dev/null	Fri Dec 31 12:17:02 2010
+++ packages/apertium-dict-en-gl/apertium-dict-en-gl-apertium32.patch	Fri Dec 31 12:16:56 2010
@@ -0,0 +1,18 @@
+--- apertium-en-gl-0.5.1/configure.ac.orig	2008-11-19 08:41:42.000000000 +0100
++++ apertium-en-gl-0.5.1/configure.ac	2010-12-31 11:24:00.442121936 +0100
+@@ -27,8 +27,14 @@
+               APERTIUM_VER=30
+           ],
+           [
+-              PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0)
++              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
++	      ])
+           ])
+       ])
+   ])

================================================================
Index: packages/apertium-dict-en-gl/apertium-dict-en-gl-DESTDIR.patch
diff -u /dev/null packages/apertium-dict-en-gl/apertium-dict-en-gl-DESTDIR.patch:1.1
--- /dev/null	Fri Dec 31 12:17:02 2010
+++ packages/apertium-dict-en-gl/apertium-dict-en-gl-DESTDIR.patch	Fri Dec 31 12:16:56 2010
@@ -0,0 +1,19 @@
+--- apertium-en-gl-0.5.1/Makefile.am.orig	2008-11-19 08:57:38.000000000 +0100
++++ apertium-en-gl-0.5.1/Makefile.am	2010-12-31 11:24:48.966121097 +0100
+@@ -130,11 +130,11 @@
+ 
+ install-data-local:
+ 	apertium-gen-modes modes.xml apertium-$(PREFIX1)
+-	$(INSTALL_DATA) $(PREFIX1).mode $(apertium_en_modesdir)
+-	$(INSTALL_DATA) $(PREFIX2).mode $(apertium_en_modesdir)
+-	$(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(apertium_en_gldir)
+-	$(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX2).t1x $(apertium_en_gldir)
+-	$(INSTALL_DATA) $(BASENAME).$(PREFIX2).t2x $(BASENAME).$(PREFIX2).t3x $(apertium_en_gldir)
++	$(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_en_modesdir)
++	$(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_en_modesdir)
++	$(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX1).t2x $(DESTDIR)$(apertium_en_gldir)
++	$(INSTALL_DATA) $(BASENAME).$(PREFIX1).t3x $(BASENAME).$(PREFIX2).t1x $(DESTDIR)$(apertium_en_gldir)
++	$(INSTALL_DATA) $(BASENAME).$(PREFIX2).t2x $(BASENAME).$(PREFIX2).t3x $(DESTDIR)$(apertium_en_gldir)
+ 
+ CLEANFILES = -rf $(TARGETS) modes
+ 

================================================================
Index: packages/apertium-dict-en-gl/apertium-dict-en-gl.spec
diff -u /dev/null packages/apertium-dict-en-gl/apertium-dict-en-gl.spec:1.1
--- /dev/null	Fri Dec 31 12:17:02 2010
+++ packages/apertium-dict-en-gl/apertium-dict-en-gl.spec	Fri Dec 31 12:16:56 2010
@@ -0,0 +1,74 @@
+# $Revision$, $Date$
+Summary:	English-Galician language pair for Apertium
+Summary(pl.UTF-8):	Para języków angielski-galicyjski dla Apertium
+%define	lpair	en-gl
+Name:		apertium-dict-%{lpair}
+Version:	0.5.1
+Release:	1
+License:	GPL v2+
+Group:		Applications/Text
+Source0:	http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz
+# Source0-md5:	daaba4c47ed5cbfbdd9c9410044ffa31
+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 English and Galician, 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 angielskim a galicyjskim, 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}
+%{__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/en-gl.mode
+%{_datadir}/apertium/modes/gl-en.mode
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/12/31 11:16:56  qboosh
+- new package
================================================================


More information about the pld-cvs-commit mailing list