From db0a6f2f4db0667a555096ad2bacfcc2586be07a084c42c53e39df60121590dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 26 Apr 2017 11:07:08 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/foma?expand=0&rev=2 --- foma.spec | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/foma.spec b/foma.spec index 7542f04..5b21e7c 100644 --- a/foma.spec +++ b/foma.spec @@ -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