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: 262ff151698ddefc11b057ef8bb2b569
15 Patch0: %{name}-pc.patch
16 URL: http://www.freedesktop.org/wiki/Software/libexttextcat
17 Provides: libtextcat = %{version}-%{release}
18 Obsoletes: libtextcat < 3.2.0-1
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 libexttextcat is an N-Gram-Based Text Categorization library primarily
23 intended for language guessing.
25 %description -l pl.UTF-8
26 libexttextcat jest bazowaną na N-GRAM biblioteką kategoryzacji tekstu
27 przeznaczona głównie do odgadywania języka.
30 Summary: Development files for %{name}
31 Summary(pl.UTF-8): Pliki nagłówkowe dla %{name}
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
34 Provides: libtextcat-devel = %{version}-%{release}
35 Obsoletes: libtextcat-devel < 3.2.0-1
38 This package contains the header files for developing applications
41 %description devel -l pl.UTF-8
42 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
46 Summary: Static libexttextcat library
47 Summary(pl.UTF-8): Statyczna biblioteka libexttextcat
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 Static libexttextcat library.
54 %description static -l pl.UTF-8
55 Statyczna biblioteka libexttextcat.
57 %package -n vala-libexttextcat
58 Summary: libexttextcat API for Vala language
59 Summary(pl.UTF-8): API libexttextcat dla języka Vala
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
63 %description -n vala-libexttextcat
64 libexttextcat API for Vala language.
66 %description -n vala-libexttextcat -l pl.UTF-8
67 API libexttextcat dla języka Vala.
70 Summary: Tool for creating custom document fingerprints
71 Summary(pl.UTF-8): Narzędzia do tworzenia własnych odcisków dokumentów
72 Group: Applications/Publishing
73 Requires: %{name} = %{version}-%{release}
76 This package contains the createfp program that allows you to easily
77 create your own document fingerprints.
79 %description tools -l pl.UTF-8
80 Ten pakiet zawiera program createfp pozwalający łatwo tworzyć odciski
81 (fingerprints) dokumentów.
89 --disable-silent-rules \
90 %{!?with_static_libs:--disable-static} \
94 %{?with_tests:%{__make} check}
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
102 # obsoleted by pkg-config
103 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
106 rm -rf $RPM_BUILD_ROOT
108 %post -p/sbin/ldconfig
109 %postun -p /sbin/ldconfig
112 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libexttextcat-1.0.so.*.*.*
115 %attr(755,root,root) %ghost %{_libdir}/libexttextcat-1.0.so.0
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libexttextcat-1.0.so
121 %{_includedir}/%{name}
122 %{_pkgconfigdir}/%{name}.pc
124 %if %{with static_libs}
126 %defattr(644,root,root,755)
127 %{_libdir}/libexttextcat-1.0.a
130 %files -n vala-libexttextcat
131 %defattr(644,root,root,755)
132 %{_datadir}/vala/vapi/libexttextcat.vapi
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/createfp