libexttextcat/libexttextcat.spec

96 lines
1.9 KiB
RPMSpec
Raw Normal View History

2012-01-26 05:10:16 +00:00
Name: libexttextcat
2012-05-25 12:26:04 +00:00
Version: 3.3.0
2012-01-26 05:10:16 +00:00
Release: 1%{?dist}
Summary: Text categorization library
Group: System Environment/Libraries
License: BSD
URL: http://www.freedesktop.org/wiki/Software/libexttextcat
Source: http://dev-www.libreoffice.org/src/libexttextcat/%{name}-%{version}.tar.xz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Obsoletes: libtextcat < 3.2.0
Provides: libtextcat = %{version}
%description
%{name} is an N-Gram-Based Text Categorization library primarily
intended for language guessing.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig
Obsoletes: libtextcat-devel < 3.2.0
Provides: libtextcat-devel = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package tools
Summary: Tool for creating custom document fingerprints
Group: Applications/Publishing
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tools
The %{name}-tools package contains the createfp program that allows
you to easily create your own document fingerprints.
%prep
%setup -q
%build
%configure --disable-static --disable-werror
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
rm -f %{buildroot}/%{_libdir}/*.la
%check
make check
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc LICENSE README*
2012-05-25 12:40:31 +00:00
%{_libdir}/%{name}*.so.*
2012-01-26 05:10:16 +00:00
%{_datadir}/%{name}
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}
2012-05-25 12:40:31 +00:00
%{_libdir}/%{name}*.so
2012-01-26 05:10:16 +00:00
%{_libdir}/pkgconfig/%{name}.pc
2012-05-25 12:40:31 +00:00
%{_datadir}/vala/vapi/libexttextcat.vapi
2012-01-26 05:10:16 +00:00
%files tools
%defattr(-,root,root,-)
%{_bindir}/createfp
%changelog
2012-05-25 12:26:04 +00:00
* Fri May 25 2012 Caolán McNamara <caolanm@redhat.com> 3.3.0-1
- latest version
2012-01-26 05:10:16 +00:00
* Tue Jan 24 2012 David Tardon <dtardon@redhat.com> 3.2.0-1
- initial import