]>
Commit | Line | Data |
---|---|---|
ca0df6ce | 1 | Summary: Open Text Summarizer |
cc6faad8 | 2 | Summary(pl.UTF-8): Otwarte narzędzie do streszczania tekstu |
ca0df6ce | 3 | Name: ots |
eea2b41d WF |
4 | Version: 0.5.0 |
5 | Release: 1 | |
ca0df6ce JB |
6 | License: GPL |
7 | Group: Libraries | |
eea2b41d WF |
8 | Source0: http://downloads.sourceforge.net/libots/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 1e140a4bf9d720b4339a5c2bdf4976e8 | |
10 | Patch0: dic.patch | |
11 | Patch1: gtkdoc.patch | |
ca0df6ce | 12 | URL: http://libots.sourceforge.net/ |
eea2b41d WF |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
17e7c478 | 15 | BuildRequires: glib2-devel >= 1:2.12.0 |
16 | BuildRequires: gtk-doc >= 1.6 | |
eea2b41d | 17 | BuildRequires: libtool |
17e7c478 | 18 | BuildRequires: libxml2-devel >= 1:2.6.26 |
ca0df6ce JB |
19 | BuildRequires: pkgconfig |
20 | BuildRequires: popt-devel >= 1.5 | |
17e7c478 | 21 | Requires: glib2 >= 1:2.12.0 |
22 | Requires: libxml2 >= 1:2.6.26 | |
ca0df6ce JB |
23 | Requires: popt >= 1.5 |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | The open text summarizer is an open source tool for summarizing texts. | |
28 | The program reads a text and decides which sentences are important and | |
29 | which are not. | |
30 | ||
31 | The program can either print the summarized text in text format or in | |
32 | HTML form where the important sentences are highlighted in red. The | |
33 | program is multi lingual and work with UTF-8 code; at the moment only | |
34 | English and Hebrew are supported. | |
35 | ||
246cb425 JR |
36 | %description -l pl.UTF-8 |
37 | OTS (Open Text Summarizer) to wolnodostępne narzędzie do streszczania | |
38 | tekstów. Program czyta tekst i decyduje, które zdania są ważne, a | |
39 | które nie. | |
ca0df6ce | 40 | |
246cb425 JR |
41 | Program może wypisać streszczenie w formacie tekstowym lub w postaci |
42 | HTML, gdzie ważne zdania są oznaczone na czerwono. Program jest | |
43 | wielojęzyczny i działa z kodem UTF-8; aktualnie obsługiwane są tylko | |
ca0df6ce JB |
44 | angielski i hebrajski. |
45 | ||
46 | %package devel | |
47 | Summary: Header files for ots library | |
cc6faad8 | 48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ots |
ca0df6ce | 49 | Group: Development/Libraries |
af056e00 | 50 | Requires: %{name} = %{version}-%{release} |
17e7c478 | 51 | Requires: glib2-devel >= 1:2.12.0 |
ca0df6ce | 52 | Requires: gtk-doc-common |
17e7c478 | 53 | Requires: libxml2-devel >= 1:2.6.26 |
ca0df6ce JB |
54 | |
55 | %description devel | |
56 | Header files for ots library. | |
57 | ||
246cb425 JR |
58 | %description devel -l pl.UTF-8 |
59 | Pliki nagłówkowe biblioteki ots. | |
ca0df6ce JB |
60 | |
61 | %package static | |
62 | Summary: Static ots library | |
cc6faad8 | 63 | Summary(pl.UTF-8): Statyczna biblioteka ots |
ca0df6ce | 64 | Group: Development/Libraries |
af056e00 | 65 | Requires: %{name}-devel = %{version}-%{release} |
ca0df6ce JB |
66 | |
67 | %description static | |
68 | Static ots library. | |
69 | ||
246cb425 | 70 | %description static -l pl.UTF-8 |
ca0df6ce JB |
71 | Statyczna biblioteka ots. |
72 | ||
73 | %prep | |
74 | %setup -q | |
af056e00 | 75 | %patch0 -p1 |
ef4836ee | 76 | %patch1 -p1 |
ca0df6ce JB |
77 | |
78 | %build | |
eea2b41d WF |
79 | %{__libtoolize} |
80 | %{__aclocal} | |
81 | %{__autoconf} | |
82 | %{__autoheader} | |
83 | %{__automake} | |
84 | # documentation build fails | |
ca0df6ce | 85 | %configure \ |
eea2b41d | 86 | --disable-gtk-doc \ |
ca0df6ce JB |
87 | --with-html-dir=%{_gtkdocdir}/libots |
88 | ||
eea2b41d | 89 | %{__make} |
ca0df6ce JB |
90 | |
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc AUTHORS ChangeLog NEWS README TODO | |
106 | %attr(755,root,root) %{_bindir}/ots | |
107 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
eea2b41d | 108 | %attr(755,root,root) %ghost %{_libdir}/lib*.so.0 |
ca0df6ce | 109 | %{_datadir}/%{name} |
eea2b41d | 110 | #%{_mandir}/man1/ots.1* |
ca0df6ce JB |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/lib*.so | |
115 | %{_libdir}/lib*.la | |
116 | %{_includedir}/libots* | |
117 | %{_pkgconfigdir}/*.pc | |
eea2b41d | 118 | #%{_gtkdocdir}/libots |
ca0df6ce JB |
119 | |
120 | %files static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/lib*.a |