]> git.pld-linux.org Git - packages/libexttextcat.git/blob - libexttextcat.spec
- updated to 3.4.1
[packages/libexttextcat.git] / libexttextcat.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make check"
4 %bcond_without  static_libs     # static libraries
5 #
6 Summary:        Text categorization library
7 Summary(pl.UTF-8):      Biblioteka kategoryzacji tekstu
8 Name:           libexttextcat
9 Version:        3.4.1
10 Release:        1
11 License:        BSD
12 Group:          Libraries
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)
19
20 %description
21 libexttextcat is an N-Gram-Based Text Categorization library primarily
22 intended for language guessing.
23
24 %description -l pl.UTF-8
25 libexttextcat jest bazowaną na N-GRAM biblioteką kategoryzacji tekstu
26 przeznaczona głównie do odgadywania języka.
27
28 %package devel
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
35
36 %description devel
37 This package contains the header files for developing applications
38 that use %{name}.
39
40 %description devel -l pl.UTF-8
41 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
42 %{name}.
43
44 %package static
45 Summary:        Static libexttextcat library
46 Summary(pl.UTF-8):      Statyczna biblioteka libexttextcat
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static libexttextcat library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka libexttextcat.
55
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}
61
62 %description -n vala-libexttextcat
63 libexttextcat API for Vala language.
64
65 %description -n vala-libexttextcat -l pl.UTF-8
66 API libexttextcat dla języka Vala.
67
68 %package tools
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}
73
74 %description tools
75 This package contains the createfp program that allows you to easily
76 create your own document fingerprints.
77
78 %description tools -l pl.UTF-8
79 Ten pakiet zawiera program createfp pozwalający łatwo tworzyć odciski
80 (fingerprints) dokumentów.
81
82 %prep
83 %setup -q
84
85 %build
86 %configure \
87         --disable-silent-rules \
88         %{!?with_static_libs:--disable-static} \
89         --disable-werror
90
91 %{__make}
92 %{?with_tests:%{__make} check}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 # obsoleted by pkg-config
101 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %files
110 %defattr(644,root,root,755)
111 %doc LICENSE README*
112 %attr(755,root,root) %{_libdir}/libexttextcat-2.0.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libexttextcat-2.0.so.0
114 %{_datadir}/%{name}
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libexttextcat-2.0.so
119 %{_includedir}/%{name}
120 %{_pkgconfigdir}/%{name}.pc
121
122 %if %{with static_libs}
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/libexttextcat-2.0.a
126 %endif
127
128 %files -n vala-libexttextcat
129 %defattr(644,root,root,755)
130 %{_datadir}/vala/vapi/libexttextcat.vapi
131
132 %files tools
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/createfp
This page took 0.091608 seconds and 3 git commands to generate.