-
Notifications
You must be signed in to change notification settings - Fork 67
/
ots.spec
89 lines (70 loc) · 2.46 KB
/
ots.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
%define __libtoolize :
%define __spec_install_post /usr/lib/rpm/brp-compress
Name: ots
Summary: A text summarizer
Version: 0.5.0
Release: 1
License: GPL
Group: System Environment/Libraries
Source: ots-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: pkgconfig >= 0.8
Requires: glib2
BuildRequires: glib2-devel libxml2-devel popt-devel
%description
The open text summarizer is an open source tool for summarizing texts.
The program reads a text and decides which sentences are important and
which are not.
The program can either print the summarized text in text format or in
HTML form where the important sentences are highlighted in red.
The program is multi lingual and work with UTF-8 code;
The ots command line tool is an example and a debug tool for the libary.
You can bind to the library from your program.
%package devel
Summary: Libraries and include files for developing with libots.
Group: Development/Libraries
Requires: %{name} = %{version}
Requires: pkgconfig >= 0.8
Requires: glib2
Requires: glib2-devel libxml2-devel popt-devel
%description devel
This package provides the necessary development libraries and include
files to allow you to develop with libots.
%prep
%setup -q -n ots-%{version}
%build
%configure --disable-gtk-doc
sed -i 's/include $(top_srcdir)\/gtk-doc.make//g' doc/Makefile
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
# Clean out files that should not be part of the rpm.
# This is the recommended way of dealing with it for RH8
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%attr(0755,root,root)%{_bindir}/ots
%defattr(0644, root, root, 0755)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_libdir}/libots*
%{_datadir}/ots
%files devel
%defattr(0644, root, root, 0755)
%{_includedir}/libots-1/ots/*.h
%{_libdir}/pkgconfig/libots-1.pc
#%{_datadir}/doc/libots/html/*
%changelog
* Fri Mar 08 2013 Pavel Denisov <[email protected]>
- fix spec
* Thu Jun 05 2003 Rui Miguel Silva Seabra <[email protected]>
- fix spec
- disable gtk-doc (it's not building in RH 9,
maybe it's broken for some reason)
* Fri May 02 2003 Rui Miguel Silva Seabra <[email protected]>
- define a longer description from the README file
- explicitly set file permissions
* Wed Apr 30 2003 Dom Lachowicz <[email protected]>
- created this thing