]> git.pld-linux.org Git - packages/foma.git/commitdiff
- new auto/th/foma-0_9_14alpha-1
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 22 Apr 2011 16:54:50 +0000 (16:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    foma.spec -> 1.1

foma.spec [new file with mode: 0644]

diff --git a/foma.spec b/foma.spec
new file mode 100644 (file)
index 0000000..ba710b7
--- /dev/null
+++ b/foma.spec
@@ -0,0 +1,99 @@
+Summary:       Multi-purpose finite-state toolkit
+Summary(pl.UTF-8):     Toolkit do tworzenia automatów skończonych różnego zastosowania
+Name:          foma
+# "alpha" version suffix is project state, not particular version state
+# - so there is no need to use %subver
+Version:       0.9.14alpha
+Release:       1
+License:       GPL v2
+Group:         Development/Tools
+Source0:       http://dingo.sbs.arizona.edu/~mhulden/%{name}-%{version}.tar.gz
+# Source0-md5: 07169961fc48b728917f6e0af8f19787
+URL:           http://foma.sourceforge.net/
+BuildRequires: readline-devel
+BuildRequires: zlib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Foma is a multi-purpose finite-state toolkit designed for applications
+ranging from natural language processing and research in automata
+theory. It should be upwardly compatible with Xerox xfst and lexc,
+with the exception of binary file reading and writing.
+
+%description -l pl.UTF-8
+Foma to toolkit do tworzenia automatów skończonych o różnych
+zastosowaniu, począwszy od aplikacji przetwarzających języki naturalne
+do badań w dziedzinie teorii automatów. Powinien być kompatybilny w
+górę z narzędziami Xeroksa xfst i lexc, z wyjątkiem odczytu i zapisu
+plików binarnych.
+
+%package devel
+Summary:       Header files for Foma library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Foma
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for Foma library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Foma.
+
+%package static
+Summary:       Static Foma library
+Summary(pl.UTF-8):     Statyczna biblioteka Foma
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static Foma library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka Foma.
+
+%prep
+%setup -q -n %{name}
+
+%build
+%{__make} libfoma \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC" \
+       LDFLAGS="%{rpmldflags} -lreadline -lz"
+
+# workaround to avoid rebuilding library on install
+touch libfoma
+
+%{__make} foma \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -D_GNU_SOURCE -std=c99 -fvisibility=hidden" \
+       LDFLAGS="%{rpmldflags} -lreadline -lz"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+%{__make} install \
+       prefix=$RPM_BUILD_ROOT%{_prefix} \
+       libdir=$RPM_BUILD_ROOT%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG README*
+%attr(755,root,root) %{_bindir}/foma
+%attr(755,root,root) %{_libdir}/libfoma.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfoma.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libfoma.so
+%{_includedir}/fomalib*.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libfoma.a
This page took 0.11047 seconds and 4 git commands to generate.