packages: apertium-dict-mk-bg/apertium-dict-mk-bg-DESTDIR.patch (NEW), aper...

qboosh qboosh at pld-linux.org
Fri Dec 3 22:25:08 CET 2010


Author: qboosh                       Date: Fri Dec  3 21:25:08 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/apertium-dict-mk-bg:
   apertium-dict-mk-bg-DESTDIR.patch (NONE -> 1.1)  (NEW), apertium-dict-mk-bg.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/apertium-dict-mk-bg/apertium-dict-mk-bg-DESTDIR.patch
diff -u /dev/null packages/apertium-dict-mk-bg/apertium-dict-mk-bg-DESTDIR.patch:1.1
--- /dev/null	Fri Dec  3 22:25:08 2010
+++ packages/apertium-dict-mk-bg/apertium-dict-mk-bg-DESTDIR.patch	Fri Dec  3 22:25:03 2010
@@ -0,0 +1,14 @@
+--- apertium-mk-bg-0.2.0/Makefile.am.orig	2010-10-26 13:44:25.000000000 +0200
++++ apertium-mk-bg-0.2.0/Makefile.am	2010-12-03 20:00:03.738121936 +0100
+@@ -98,8 +98,8 @@
+ 		  
+ install-data-local:
+ 	apertium-gen-modes modes.xml apertium-$(PREFIX1)
+-	$(INSTALL_DATA) $(PREFIX1).mode $(apertium_mk_bgmodesdir)
+-	$(INSTALL_DATA) $(PREFIX2).mode $(apertium_mk_bgmodesdir)
+-	$(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX2).t1x $(apertium_mk_bgdir)
++	$(INSTALL_DATA) $(PREFIX1).mode $(DESTDIR)$(apertium_mk_bgmodesdir)
++	$(INSTALL_DATA) $(PREFIX2).mode $(DESTDIR)$(apertium_mk_bgmodesdir)
++	$(INSTALL_DATA) $(BASENAME).$(PREFIX1).t1x $(BASENAME).$(PREFIX2).t1x $(DESTDIR)$(apertium_mk_bgdir)
+ 
+ CLEANFILES = -r $(TARGETS_COMMON) 

================================================================
Index: packages/apertium-dict-mk-bg/apertium-dict-mk-bg.spec
diff -u /dev/null packages/apertium-dict-mk-bg/apertium-dict-mk-bg.spec:1.1
--- /dev/null	Fri Dec  3 22:25:08 2010
+++ packages/apertium-dict-mk-bg/apertium-dict-mk-bg.spec	Fri Dec  3 22:25:03 2010
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+Summary:	Macedonian-Bulgarian language pair for Apertium
+Summary(pl.UTF-8):	Para języków macedoński-bułgarski dla Apertium
+%define	lpair	mk-bg
+Name:		apertium-dict-%{lpair}
+Version:	0.2.0
+Release:	1
+License:	GPL v3
+Group:		Applications/Text
+Source0:	http://downloads.sourceforge.net/apertium/apertium-%{lpair}-%{version}.tar.gz
+# Source0-md5:	a0f12e989097c67eb3d3a96e06a0fa38
+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:	vislcg3 >= 0.9.7.5129
+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 Macedonian and Bulgarian, 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 macedońskim a bułgarskim, 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 ChangeLog NEWS README
+%{_datadir}/apertium/apertium-%{lpair}
+%{_datadir}/apertium/modes/bg-mk.mode
+%{_datadir}/apertium/modes/mk-bg.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/03 21:25:03  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list