packages: foma/foma.spec (NEW) - new

qboosh qboosh at pld-linux.org
Fri Apr 22 18:54:56 CEST 2011


Author: qboosh                       Date: Fri Apr 22 16:54:56 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/foma:
   foma.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/foma/foma.spec
diff -u /dev/null packages/foma/foma.spec:1.1
--- /dev/null	Fri Apr 22 18:54:56 2011
+++ packages/foma/foma.spec	Fri Apr 22 18:54:50 2011
@@ -0,0 +1,109 @@
+# $Revision$, $Date$
+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
+
+%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/22 16:54:50  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list