File mingw32-ots.spec of Package mingw32-ots

#
# spec file for package mingw32-ots
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw32-ots
Version:        0.5.0
Release:        0
Summary:        The open text summarizer is an open source tool for summarizing texts
License:        GPL-2.0-only
Group:          Productivity/Text
Url:            http://libots.sf.net
Source:         ots-%{version}.tar.gz
Patch0:         ots-0.5.0-mingw.patch
Patch1:         ots-0.5.0-libtool.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gnome-common
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-glib2-devel
BuildRequires:  mingw32-libgnurx-devel
BuildRequires:  mingw32-libxml2-devel
BuildRequires:  mingw32-popt-devel
%_mingw32_package_header_debug
BuildArch:      noarch

%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. OTS will
create a short summary or will highlight the main ideas in the text.

OTS is both a library and a command line tool. Word processors such as AbiWord
and KWord can link to the library and summarize documents while the command line tool
lets you summarize text on the console. The program can either print the summarized
text as text or HTML.  If in HTML, the important sentences are highlighted.
The program is multi lingual and works with UTF-8 encoding.

%package devel
Summary:        ots development files
Group:          Development/Libraries/C and C++

%description devel
Development files for ots.

%package -n mingw32-libots
Summary:        ots shared library
Group:          Development/Libraries/C and C++

%description -n mingw32-libots
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. OTS will
create a short summary or will highlight the main ideas in the text.

OTS is both a library and a command line tool. Word processors such as AbiWord
and KWord can link to the library and summarize documents while the command line tool
lets you summarize text on the console. The program can either print the summarized
text as text or HTML.  If in HTML, the important sentences are highlighted.
The program is multi lingual and works with UTF-8 encoding.

%_mingw32_debug_package

%prep
%setup -q -n ots-%{version}
%patch -P 0 -p1 -b .mingw
%patch -P 1 -p1

%build
NOCONFIGURE=indeed AUTOMAKE=automake gnome-autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	--enable-shared --disable-static

%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

%install
make DESTDIR=%{buildroot} install

%files
%defattr(644,root,root,755)
%{_mingw32_bindir}/ots.exe

%files devel
%defattr(644,root,root,755)
%{_mingw32_libdir}/libots-1.dll.a
%{_mingw32_libdir}/pkgconfig/libots-1.pc
%{_mingw32_includedir}/libots-1/ots/libots.h

%files -n mingw32-libots
%defattr(644,root,root,755)
%{_mingw32_bindir}/libots-1-0.dll
%{_mingw32_datadir}/ots/*.xml

%changelog
openSUSE Build Service is sponsored by