]> git.pld-linux.org Git - packages/ots.git/blob - ots.spec
4ef7ef0a9e29284df9fc72280fd7a02831e8242f
[packages/ots.git] / ots.spec
1 Summary:        Open Text Summarizer
2 Summary(pl.UTF-8):      Otwarte narzędzie do streszczania tekstu
3 Name:           ots
4 Version:        0.5.0
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/libots/%{name}-%{version}.tar.gz
9 # Source0-md5:  1e140a4bf9d720b4339a5c2bdf4976e8
10 Patch0:         dic.patch
11 Patch1:         gtkdoc.patch
12 URL:            http://libots.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  glib2-devel >= 1:2.12.0
16 BuildRequires:  gtk-doc >= 1.6
17 BuildRequires:  libtool
18 BuildRequires:  libxml2-devel >= 1:2.6.26
19 BuildRequires:  pkgconfig
20 BuildRequires:  popt-devel >= 1.5
21 Requires:       glib2 >= 1:2.12.0
22 Requires:       libxml2 >= 1:2.6.26
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
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.
40
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
44 angielski i hebrajski.
45
46 %package devel
47 Summary:        Header files for ots library
48 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ots
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51 Requires:       glib2-devel >= 1:2.12.0
52 Requires:       gtk-doc-common
53 Requires:       libxml2-devel >= 1:2.6.26
54
55 %description devel
56 Header files for ots library.
57
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe biblioteki ots.
60
61 %package static
62 Summary:        Static ots library
63 Summary(pl.UTF-8):      Statyczna biblioteka ots
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66
67 %description static
68 Static ots library.
69
70 %description static -l pl.UTF-8
71 Statyczna biblioteka ots.
72
73 %prep
74 %setup -q
75 %patch0 -p1
76 %patch1 -p1
77
78 %build
79 %{__libtoolize}
80 %{__aclocal}
81 %{__autoconf}
82 %{__autoheader}
83 %{__automake}
84 # documentation build fails
85 %configure \
86         --disable-gtk-doc \
87         --with-html-dir=%{_gtkdocdir}/libots
88
89 %{__make} -j1
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.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/lib*.so.0
109 %{_datadir}/%{name}
110 #%{_mandir}/man1/ots.1*
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
118 #%{_gtkdocdir}/libots
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/lib*.a
This page took 0.043674 seconds and 2 git commands to generate.