Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 345b0e2d7d72773d8901c1d9d2d8b56c > files > 5

ots-0.5.0-9.mga3.src.rpm

%define api_version     1
%define lib_major       0
%define lib_name        %mklibname %{name} %{api_version} %{lib_major}
%define develname 	%mklibname ots -d

Name:		ots
Summary:	A text summarizer
Version:	0.5.0
Release:	%mkrel 9
License:	GPLv2+
Group:		System/Libraries
URL:		http://libots.sourceforge.net/
Source:		%{name}-%{version}.tar.gz
Patch0:		ots-0.5.0-fix-underlinking.patch
Patch1:		ots-0.5.0-fix-installation.patch
Patch2:		ots-0.5.0-automake-1.13.patch
BuildRequires:	pkgconfig >= 0.8
BuildRequires:	glib2-devel
BuildRequires:	libxml2-devel
BuildRequires:	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;  At the moment
only English Hebrew are supported.
 
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 -n %{lib_name}
Summary:	Libraries for ots
Group:		System/Libraries
Requires:	%{name} = %{version}-%{release}
Obsoletes:	%mklibname ots- 1 0

%description -n %{lib_name}
This package provides the libraries for using ots.


%package -n %{develname}
Summary:	Libraries and include files for developing with libots
Group:		Development/C
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%mklibname -d ots- 1 0

%description -n %{develname}
This package provides the necessary development libraries and include
files to allow you to develop with libots.


%prep
%setup -q -n ots-%{version}
%patch0 -p0
%patch1 -p0
%patch2 -p1 -b .automake-1_13

%build
touch gtk-doc.make
autoreconf -fi
%configure2_5x --disable-gtk-doc --disable-static
%make -j1

%install
%makeinstall_std

# clean out unused files
rm -rf %{buildroot}%{_datadir}/doc/libots/html/*
rm -f %{buildroot}%{_libdir}/*.la

%files
%attr(0755,root,root)%{_bindir}/%{name}
%defattr(0644, root, root, 0755)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%dir %{_datadir}/ots
%{_datadir}/ots/*

%files -n %{lib_name}
%defattr(0644, root, root, 0755)
%{_libdir}/*ots-1.so.*

%files -n %{develname}
%defattr(0644, root, root, 0755)
%{_libdir}/*ots-1.so
%dir %{_includedir}/libots-1
%dir %{_includedir}/libots-1/ots
%{_includedir}/libots-1/ots/*.h
%{_libdir}/pkgconfig/libots-1.pc


%changelog

* Sun Jan 13 2013 umeabot <umeabot> 0.5.0-9.mga3
+ Revision: 362263
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Jan 09 2013 cjw <cjw> 0.5.0-8.mga3
+ Revision: 343449
- patch2: fix build with automake 1.13

* Fri Nov 25 2011 fwang <fwang> 0.5.0-7.mga2
+ Revision: 171879
- drop .la file

* Fri Feb 25 2011 ennael <ennael> 0.5.0-6.mga1
+ Revision: 59344
- clean spec file
- imported package ots