packages: lttoolbox/lttoolbox-opt.patch (NEW), lttoolbox/lttoolbox.spec (NE...

qboosh qboosh at pld-linux.org
Sat Nov 27 15:24:06 CET 2010


Author: qboosh                       Date: Sat Nov 27 14:24:06 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new
- opt patch to avoid using unwanted optimizer options

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

---- Diffs:

================================================================
Index: packages/lttoolbox/lttoolbox-opt.patch
diff -u /dev/null packages/lttoolbox/lttoolbox-opt.patch:1.1
--- /dev/null	Sat Nov 27 15:24:06 2010
+++ packages/lttoolbox/lttoolbox-opt.patch	Sat Nov 27 15:24:00 2010
@@ -0,0 +1,43 @@
+--- lttoolbox-3.2.0/configure.ac.orig	2010-03-14 16:14:34.000000000 +0100
++++ lttoolbox-3.2.0/configure.ac	2010-11-27 14:36:48.271100775 +0100
+@@ -51,40 +51,6 @@
+ 
+ # Checks for programs.
+ 
+-AC_MSG_CHECKING([Compilation architecture: PPC, i686, x86_64, Other])
+-if test x$(which arch) = x
+-then ARCH=$($(which uname) -m)
+-else ARCH=$($(which arch))
+-fi
+-
+-if test x$ARCH = xppc
+-then
+-  AC_MSG_RESULT([PowerPC])
+-  CFLAGS="-Wall -fomit-frame-pointer $CFLAGS"
+-  CXXFLAGS="-Wall -fomit-frame-pointer $CXXFLAGS"
+-else
+-  if test x$ARCH = xi686
+-  then
+-    AC_MSG_RESULT([i686])
+-    CFLAGS="-Wall -march=i686 -O3 -fomit-frame-pointer -funroll-loops $CFLAGS"
+-    CXXFLAGS="-Wall -march=i686 -O3 \
+-              -fomit-frame-pointer -funroll-loops $CXXFLAGS"
+-  
+-  else
+-    if test x$ARCH = xx86_64
+-    then
+-      AC_MSG_RESULT([x86_64])
+-      CFLAGS="-Wall -O3 -mtune=nocona -fomit-frame-pointer -funroll-loops $CFLAGS"
+-      CXXFLAGS="-Wall -O3 -mtune=nocona \
+-              -fomit-frame-pointer -funroll-loops $CXXFLAGS"
+-    else
+-      AC_MSG_RESULT([Other])
+-      CFLAGS="-Wall -O3 $CFLAGS"
+-      CXXFLAGS="-Wall -O3 $CXXFLAGS"
+-    fi
+-  fi
+-fi
+-
+ AC_CANONICAL_HOST
+ 
+ USE_ANSI=yes

================================================================
Index: packages/lttoolbox/lttoolbox.spec
diff -u /dev/null packages/lttoolbox/lttoolbox.spec:1.1
--- /dev/null	Sat Nov 27 15:24:06 2010
+++ packages/lttoolbox/lttoolbox.spec	Sat Nov 27 15:24:00 2010
@@ -0,0 +1,122 @@
+# $Revision$, $Date$
+Summary:	Augmented letter transducer tools for natural language processing
+Summary(pl.UTF-8):	Narzędzia do przetwarzania słów w językach naturalnych
+Name:		lttoolbox
+Version:	3.2.0
+Release:	1
+License:	GPL v2+
+Group:		Applications/Text
+Source0:	http://downloads.sourceforge.net/apertium/%{name}-%{version}.tar.gz
+# Source0-md5:	708e7de837ed363f7103035ef2849fe4
+Patch0:		%{name}-opt.patch
+URL:		http://wiki.apertium.org/wiki/Lttoolbox
+BuildRequires:	autoconf >= 2.52
+BuildRequires:	automake
+BuildRequires:	libstdc++-devel
+BuildRequires:	libtool >= 2:1.5
+BuildRequires:	libxml2-devel >= 1:2.6.17
+BuildRequires:	pkgconfig
+Requires:	libxml2 >= 1:2.6.17
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+lttoolbox is a toolbox for lexical processing, morphological analysis
+and generation of words. The analysis is the process of splitting a
+word (e.g. cats) into its lemma 'cat' and the grammatical information
+<n><pl>. The generation is the opposite process.
+
+%description -l pl.UTF-8
+lttoolbox to zestaw narzędzi do przetwarzania leksykalnego, analizy
+morfologicznej i tworzenia słów. Analiza to proces podziału słowa (np.
+"koty") na rdzeń "kot" i informację gramatyczną (rzeczownik liczby
+mnogiej). Tworzenie słów to proces odwrotny.
+
+%package devel
+Summary:	Header files for lttoolbox library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki lttoolbox
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libstdc++-devel
+Requires:	libxml2-devel >= 1:2.6.17
+
+%description devel
+Header files for lttoolbox library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki lttoolbox.
+
+%package static
+Summary:	Static lttoolbox library
+Summary(pl.UTF-8):	Statyczna biblioteka lttoolbox
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static lttoolbox library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka lttoolbox.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/lt-comp
+%attr(755,root,root) %{_bindir}/lt-expand
+%attr(755,root,root) %{_bindir}/lt-proc
+%attr(755,root,root) %{_bindir}/lt-tmxcomp
+%attr(755,root,root) %{_bindir}/lt-tmxproc
+%attr(755,root,root) %{_libdir}/liblttoolbox3-3.2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liblttoolbox3-3.2.so.0
+%{_datadir}/lttoolbox
+%{_mandir}/man1/lt-comp.1*
+%{_mandir}/man1/lt-expand.1*
+%{_mandir}/man1/lt-proc.1*
+%{_mandir}/man1/lt-tmxcomp.1*
+%{_mandir}/man1/lt-tmxproc.1*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/liblttoolbox3.so
+%{_libdir}/liblttoolbox3.la
+%{_includedir}/lttoolbox-3.2
+%{_pkgconfigdir}/lttoolbox-3.2.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/liblttoolbox3.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  2010/11/27 14:24:00  qboosh
+- new
+- opt patch to avoid using unwanted optimizer options
================================================================


More information about the pld-cvs-commit mailing list