1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
#
# Conditional build:
%bcond_without tests # do not perform "make check"
%bcond_without static_libs # static libraries
#
Summary: Text categorization library
Summary(pl.UTF-8): Biblioteka kategoryzacji tekstu
Name: libexttextcat
Version: 3.2.0
Release: 1
License: BSD
Group: Libraries
Source0: http://dev-www.libreoffice.org/src/libexttextcat/%{name}-%{version}.tar.xz
# Source0-md5: 941ec532832ffea01e121373a2733a96
URL: http://www.freedesktop.org/wiki/Software/libexttextcat
Provides: libtextcat = %{version}-%{release}
Obsoletes: libtextcat < 3.2.0-1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
libexttextcat is an N-Gram-Based Text Categorization library primarily
intended for language guessing.
%description -l pl.UTF-8
libexttextcat jest bazowaną na N-GRAM biblioteką kategoryzacji tekstu
przeznaczona głównie do odgadywania języka.
%package devel
Summary: Development files for %{name}
Summary(pl.UTF-8): Pliki nagłówkowe dla %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Provides: libtextcat-devel = %{version}-%{release}
Obsoletes: libtextcat-devel < 3.2.0-1
%description devel
This package contains the header files for developing applications
that use %{name}.
%description devel -l pl.UTF-8
Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
%{name}.
%package static
Summary: Static libexttextcat library
Summary(pl.UTF-8): Statyczna biblioteka libexttextcat
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static libexttextcat library.
%description static -l pl.UTF-8
Statyczna biblioteka libexttextcat.
%package tools
Summary: Tool for creating custom document fingerprints
Summary(pl.UTF-8): Narzędzia do tworzenia własnych odcisków dokumentów
Group: Applications/Publishing
Requires: %{name} = %{version}-%{release}
%description tools
This package contains the createfp program that allows you to easily
create your own document fingerprints.
%description tools -l pl.UTF-8
Ten pakiet zawiera program createfp pozwalający łatwo tworzyć odciski
(fingerprints) dokumentów.
%prep
%setup -q
%build
%configure \
%{!?with_static_libs:--disable-static} \
--disable-werror \
%{__make}
%{?with_tests:%{__make} check}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p/sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc LICENSE README*
%attr(755,root,root) %{_libdir}/libexttextcat.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libexttextcat.so.0
%{_datadir}/%{name}
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libexttextcat.so
%{_includedir}/%{name}
%{_pkgconfigdir}/%{name}.pc
%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libexttextcat.a
%endif
%files tools
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/createfp
|