packages: openfst/openfst-link.patch (NEW), openfst/openfst.spec (NEW) - new

qboosh qboosh at pld-linux.org
Sat Apr 23 10:22:11 CEST 2011


Author: qboosh                       Date: Sat Apr 23 08:22:11 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/openfst:
   openfst-link.patch (NONE -> 1.1)  (NEW), openfst.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/openfst/openfst-link.patch
diff -u /dev/null packages/openfst/openfst-link.patch:1.1
--- /dev/null	Sat Apr 23 10:22:11 2011
+++ packages/openfst/openfst-link.patch	Sat Apr 23 10:22:06 2011
@@ -0,0 +1,15 @@
+--- openfst-1.2.7/src/lib/Makefile.am.orig	2011-03-12 00:54:41.000000000 +0100
++++ openfst-1.2.7/src/lib/Makefile.am	2011-04-23 07:04:02.037016345 +0200
+@@ -4,3 +4,4 @@ lib_LTLIBRARIES = libfst.la
+ libfst_la_SOURCES = compat.cc flags.cc fst.cc properties.cc \
+ symbol-table.cc util.cc
+ libfst_la_LDFLAGS = -version-info 0:0:0
++libfst_la_LIBADD = -ldl
+--- openfst-1.2.7/src/script/Makefile.am.orig	2011-03-12 00:54:42.000000000 +0100
++++ openfst-1.2.7/src/script/Makefile.am	2011-04-23 07:04:34.287017545 +0200
+@@ -12,4 +12,5 @@ shortest-path.cc synchronize.cc text-io.
+ weight-class.cc
+ 
+ libfstscript_la_LDFLAGS = -version-info 0:0:0
++libfstscript_la_LIBADD = $(top_builddir)/src/lib/libfst.la -ldl
+ endif

================================================================
Index: packages/openfst/openfst.spec
diff -u /dev/null packages/openfst/openfst.spec:1.1
--- /dev/null	Sat Apr 23 10:22:11 2011
+++ packages/openfst/openfst.spec	Sat Apr 23 10:22:06 2011
@@ -0,0 +1,125 @@
+# $Revision$, $Date$
+Summary:	OpenFst - library for finite state transducers development
+Summary(pl.UTF-8):	OpenFst - biblioteka do programowania automatów skończonych z wyjściem
+Name:		openfst
+Version:	1.2.7
+Release:	1
+License:	Apache v2.0
+Group:		Libraries
+#Source0Download: http://www.openfst.org/twiki/bin/view/FST/FstDownload
+Source0:	http://www.openfst.org/twiki/pub/FST/FstDownload/%{name}-%{version}.tar.gz
+# Source0-md5:	97196a97d2a1ec88d612321e64dac2e4
+Patch0:		%{name}-link.patch
+URL:		http://www.openfst.org/
+BuildRequires:	autoconf >= 2.50
+BuildRequires:	automake
+BuildRequires:	libicu-devel >= 4.2
+BuildRequires:	libstdc++-devel >= 6:4.1
+BuildRequires:	libtool >= 2:1.5
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# modules dlopened from libfst refer to symbols from the library
+%define		skip_post_check_so	.*%{_libdir}/fst/.*\.so.*
+
+%description
+OpenFst is a library for constructing, combining, optimizing, and
+searching weighted finite-state transducers (FSTs).
+
+%description -l pl.UTF-8
+OpenFst to biblioteka do konstruowania, łączenia, optymalizacji i
+przeszukiwania automatów skończonych z wyjściem (FST) i wagami.
+
+%package devel
+Summary:	Header files for OpenFst library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki OpenFst
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libstdc++-devel >= 6:4.1
+
+%description devel
+Header files for OpenFst library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki OpenFst.
+
+%package static
+Summary:	Static OpenFst library
+Summary(pl.UTF-8):	Statyczna biblioteka OpenFst
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static OpenFst library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka OpenFst.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	--enable-compact-fsts \
+	--enable-const-fsts \
+	--enable-far \
+	--enable-lookahead-fsts \
+	--enable-pdt \
+	--enable-static \
+	--with-icu
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/fst/*.{la,a}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README
+%attr(755,root,root) %{_bindir}/far*
+%attr(755,root,root) %{_bindir}/fst*
+%attr(755,root,root) %{_bindir}/pdt*
+%attr(755,root,root) %{_libdir}/libfst.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfst.so.0
+%attr(755,root,root) %{_libdir}/libfstscript.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfstscript.so.0
+%dir %{_libdir}/fst
+%attr(755,root,root) %{_libdir}/fst/*.so*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libfst.so
+%attr(755,root,root) %{_libdir}/libfstscript.so
+%{_libdir}/libfst.la
+%{_libdir}/libfstscript.la
+%{_includedir}/fst
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libfst.a
+%{_libdir}/libfstscript.a
+
+%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  2011/04/23 08:22:06  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list