3 %bcond_without tests # do not perform "make check"
4 %bcond_without static_libs # static libraries
6 Summary: Text categorization library
7 Summary(pl.UTF-8): Biblioteka kategoryzacji tekstu
13 Source0: http://dev-www.libreoffice.org/src/libexttextcat/%{name}-%{version}.tar.xz
14 # Source0-md5: 5b025eaac583aeda5e70793c2d7192ab
15 URL: http://www.freedesktop.org/wiki/Software/libexttextcat
16 Provides: libtextcat = %{version}-%{release}
17 Obsoletes: libtextcat < 3.2.0-1
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 libexttextcat is an N-Gram-Based Text Categorization library primarily
22 intended for language guessing.
24 %description -l pl.UTF-8
25 libexttextcat jest bazowaną na N-GRAM biblioteką kategoryzacji tekstu
26 przeznaczona głównie do odgadywania języka.
29 Summary: Development files for %{name}
30 Summary(pl.UTF-8): Pliki nagłówkowe dla %{name}
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
33 Provides: libtextcat-devel = %{version}-%{release}
34 Obsoletes: libtextcat-devel < 3.2.0-1
37 This package contains the header files for developing applications
40 %description devel -l pl.UTF-8
41 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
45 Summary: Static libexttextcat library
46 Summary(pl.UTF-8): Statyczna biblioteka libexttextcat
47 Group: Development/Libraries
48 Requires: %{name}-devel = %{version}-%{release}
51 Static libexttextcat library.
53 %description static -l pl.UTF-8
54 Statyczna biblioteka libexttextcat.
56 %package -n vala-libexttextcat
57 Summary: libexttextcat API for Vala language
58 Summary(pl.UTF-8): API libexttextcat dla języka Vala
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
62 %description -n vala-libexttextcat
63 libexttextcat API for Vala language.
65 %description -n vala-libexttextcat -l pl.UTF-8
66 API libexttextcat dla języka Vala.
69 Summary: Tool for creating custom document fingerprints
70 Summary(pl.UTF-8): Narzędzia do tworzenia własnych odcisków dokumentów
71 Group: Applications/Publishing
72 Requires: %{name} = %{version}-%{release}
75 This package contains the createfp program that allows you to easily
76 create your own document fingerprints.
78 %description tools -l pl.UTF-8
79 Ten pakiet zawiera program createfp pozwalający łatwo tworzyć odciski
80 (fingerprints) dokumentów.
87 --disable-silent-rules \
88 %{!?with_static_libs:--disable-static} \
92 %{?with_tests:%{__make} check}
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT
100 # obsoleted by pkg-config
101 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libexttextcat-2.0.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libexttextcat-2.0.so.0
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libexttextcat-2.0.so
119 %{_includedir}/%{name}
120 %{_pkgconfigdir}/%{name}.pc
122 %if %{with static_libs}
124 %defattr(644,root,root,755)
125 %{_libdir}/libexttextcat-2.0.a
128 %files -n vala-libexttextcat
129 %defattr(644,root,root,755)
130 %{_datadir}/vala/vapi/libexttextcat.vapi
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/createfp