Tomáš Chvátal 2017-04-26 11:07:08 +00:00 committed by Git OBS Bridge
parent ecc4ef9ebd
commit db0a6f2f4d

View File

@ -19,8 +19,8 @@
%define libname libfoma0
Name: foma
Version: 0.9.18
Release: %{mkrel}
Summary: finite-state compiler and C library
Release: 0
Summary: Finite-state compiler and C library
License: Apache-2.0
Group: Productivity/Text/Utilities
Url: https://foma.googlecode.com/
@ -38,7 +38,7 @@ morphological analyzers. Although NLP applications are probably the main
use of foma, it is sufficiently generic to use for a large number of purposes.
%package -n %{libname}
Summary: finite-state C library
Summary: Finite-state C library
Group: System/Libraries
%description -n %{libname}
@ -50,13 +50,12 @@ quotients, first-order regular logic, transducers from replacement
rules, etc.
%package devel
Summary: finite-state C library development files and headers
Summary: Finite-state C library development files and headers
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
Requires: %{libname} = %{version}
%description devel
Development files and headers for %{name}.
Finite-state C library development files and headers for %{name}.
%prep
%setup -q
@ -64,7 +63,7 @@ Development files and headers for %{name}.
%build
make %{?_smp_mflags} \
CFLAGS="%{optflags} -D_GNU_SOURCE -std=c99 -fPIC" \
LDFLAGS="%{ldflags} -lreadline -lz -ltermcap"
LDFLAGS="-lreadline -lz"
%install
%make_install \
@ -72,13 +71,16 @@ make %{?_smp_mflags} \
libdir=%{buildroot}%{_libdir}
rm -rf %{buildroot}%{_libdir}/*.a
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/cgflookup
%{_bindir}/flookup
%{_bindir}/foma
%files -n %{devname}
%files devel
%defattr(-,root,root)
%{_includedir}/fomalib.h
%{_includedir}/fomalibconf.h
@ -86,7 +88,6 @@ rm -rf %{buildroot}%{_libdir}/*.a
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libfoma.so.%{major}
%{_libdir}/libfoma.so.%{version}
%{_libdir}/libfoma.so.*
%changelog