]> git.pld-linux.org Git - packages/SFST.git/commitdiff
- new auto/th/SFST-1_4_2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 22 Apr 2011 18:55:49 +0000 (18:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    SFST.spec -> 1.1

SFST.spec [new file with mode: 0644]

diff --git a/SFST.spec b/SFST.spec
new file mode 100644 (file)
index 0000000..09f4d4a
--- /dev/null
+++ b/SFST.spec
@@ -0,0 +1,105 @@
+Summary:       Stuttgart Finite State Transducer Tools
+Summary(pl.UTF-8):     Stuttgart Finite State Transducer Tools - narzędzia do automatów skończonych
+Name:          SFST
+Version:       1.4.2
+Release:       1
+License:       GPL v2+
+Group:         Development/Tools
+Source0:       ftp://ftp.ims.uni-stuttgart.de/pub/corpora/SFST/%{name}-%{version}.tar.gz
+# Source0-md5: 61fad719a52c1bb5558a255d5a30505a
+URL:           http://www.ims.uni-stuttgart.de/projekte/gramotron/SOFTWARE/SFST.html
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: libstdc++-devel
+BuildRequires: m4
+BuildRequires: ncurses-devel
+BuildRequires: readline-devel
+BuildRequires: sed >= 4.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SFST is a toolbox for the implementation of morphological analysers
+and other tools which are based on finite state transducer technology.
+
+The SFST tools comprise:
+- a compiler which translates transducer programs into minimised
+  transducers
+- interactive and batch-mode analysis programs
+- tools for comparing and printing transducers
+- an efficient C++ transducer library
+
+%description -l pl.UTF-8
+SFST to zestaw narzędzi do implementowania analizatorów
+morfologicznych i innych narzędzi opartych na automatach skończonych z
+wyjściem.
+
+Narzędzia SFST obejmują:
+- kompilator tłumaczący programy na zminimalizowane automaty skończone
+  z wyjściem
+- interaktywne i wsadowe programy do analizy
+- narzędzia do porównywania i wypisywania automatów
+- wydajną bibliotekę automatów skończonych z wyjściem dla C++
+
+%package devel
+Summary:       Header files for SFST library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki SFST
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for SFST library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki SFST.
+
+%prep
+%setup -q -n %{name}
+
+sed -i -e '/^  strip/d' src/Makefile
+
+%build
+%{__make} -C src libsfst.so \
+       CC="%{__cxx}" \
+       CXX="%{__cxx}" \
+       CFLAGS="%{rpmcxxflags} \$(WARNING) -DSGI__gnu_cxx -DREADLINE -fPIC" \
+       LDFLAGS="%{rpmldflags}"
+
+%{__make} -C src \
+       CC="%{__cxx}" \
+       CXX="%{__cxx}" \
+       CFLAGS="%{rpmcxxflags} \$(WARNING) -DSGI__gnu_cxx -DREADLINE" \
+       LDFLAGS="%{rpmldflags}" \
+       LREADLINE="-lreadline"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C src install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       PREFIX=%{_prefix}/
+
+%{__make} -C src maninstall \
+       DESTDIR=$RPM_BUILD_ROOT \
+       PREFIX=%{_datadir}/
+
+install -D src/libsfst.so $RPM_BUILD_ROOT%{_libdir}/libsfst.so
+
+%{__make} -C src hfiles \
+       PREFIX=$RPM_BUILD_ROOT%{_prefix}/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README doc/{SFST-Manual,SFST-Tutorial}.pdf
+%attr(755,root,root) %{_bindir}/fst-*
+%attr(755,root,root) %{_libdir}/libsfst.so
+%{_mandir}/man1/fst-*.1*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/sfst
This page took 0.08338 seconds and 4 git commands to generate.