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