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