]> git.pld-linux.org Git - packages/ots.git/blob - ots.spec
b6b067d874fb72a59f78783d361c00eb0aa7ae8e
[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.4.2
5 Release:        3
6 License:        GPL
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/libots/%{name}-%{version}.tar.gz
9 # Source0-md5:  bb02a56a3bf2d5ebf9ffd064992d0ae4
10 Patch0:         %{name}-docs.patch
11 Patch1:         %{name}-gcc4.patch
12 URL:            http://libots.sourceforge.net/
13 BuildRequires:  glib2-devel >= 1:2.12.0
14 BuildRequires:  gtk-doc >= 1.6
15 BuildRequires:  libxml2-devel >= 1:2.6.26
16 BuildRequires:  pkgconfig
17 BuildRequires:  popt-devel >= 1.5
18 Requires:       glib2 >= 1:2.12.0
19 Requires:       libxml2 >= 1:2.6.26
20 Requires:       popt >= 1.5
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 The open text summarizer is an open source tool for summarizing texts.
25 The program reads a text and decides which sentences are important and
26 which are not.
27
28 The program can either print the summarized text in text format or in
29 HTML form where the important sentences are highlighted in red. The
30 program is multi lingual and work with UTF-8 code; at the moment only
31 English and Hebrew are supported.
32
33 %description -l pl.UTF-8
34 OTS (Open Text Summarizer) to wolnodostępne narzędzie do streszczania
35 tekstów. Program czyta tekst i decyduje, które zdania są ważne, a
36 które nie.
37
38 Program może wypisać streszczenie w formacie tekstowym lub w postaci
39 HTML, gdzie ważne zdania są oznaczone na czerwono. Program jest
40 wielojęzyczny i działa z kodem UTF-8; aktualnie obsługiwane są tylko
41 angielski i hebrajski.
42
43 %package devel
44 Summary:        Header files for ots library
45 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ots
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       glib2-devel >= 1:2.12.0
49 Requires:       gtk-doc-common
50 Requires:       libxml2-devel >= 1:2.6.26
51
52 %description devel
53 Header files for ots library.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki ots.
57
58 %package static
59 Summary:        Static ots library
60 Summary(pl.UTF-8):      Statyczna biblioteka ots
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63
64 %description static
65 Static ots library.
66
67 %description static -l pl.UTF-8
68 Statyczna biblioteka ots.
69
70 %prep
71 %setup -q
72 %patch0 -p1
73 %patch1 -p1
74
75 %build
76 cp -f /usr/share/automake/config.sub .
77 LDFLAGS="%{rpmldflags} -Wl,--as-needed"
78 %configure \
79         --enable-gtk-doc \
80         --with-html-dir=%{_gtkdocdir}/libots
81
82 # hack for proper linking - remove when in sources
83 %{__make} -j1 \
84         libots_1_la_LIBADD="\$(OTS_LIBS)"
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc AUTHORS ChangeLog NEWS README TODO
101 %attr(755,root,root) %{_bindir}/ots
102 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
103 %{_datadir}/%{name}
104 %{_mandir}/man1/ots.1*
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/lib*.so
109 %{_libdir}/lib*.la
110 %{_includedir}/libots*
111 %{_pkgconfigdir}/*.pc
112 %{_gtkdocdir}/libots
113
114 %files static
115 %defattr(644,root,root,755)
116 %{_libdir}/lib*.a
This page took 0.041507 seconds and 2 git commands to generate.