File mingw64-libmythes.spec of Package mingw64-libmythes

#
# spec file for package mingw64-libmythes
#
# 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:           mingw64-libmythes
Version:        1.2.1
Release:        0
Summary:        A thesaurus library
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
Url:            http://hunspell.sourceforge.net/
Source0:        http://downloads.sourceforge.net/project/hunspell/MyThes/%{version}/mythes-%{version}.tar.gz
Patch0:         mythes-1.2.1-noundefined.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-hunspell-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
MyThes is a simple thesaurus that uses a structured text data file and an
index file with binary search to look up words and phrases and return
information on part of speech, meanings, and synonyms.

%package -n mingw64-libmythes-1_2-0
Summary:        A thesaurus library
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw64-libmythes-1_2-0
MyThes is a simple thesaurus that uses a structured text data file and an
index file with binary search to look up words and phrases and return
information on part of speech, meanings, and synonyms.

%package devel
Summary:        Files for developing with libmythes
Group:          Development/Libraries/C and C++

%description devel
This package contains import libraries and header files need for
development with libmythes.

%_mingw64_debug_package

%prep
%setup -q -n mythes-%{version}
%patch -P 0 -p1 -b .noundefined

%build
touch NEWS
libtoolize --force --copy --install
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} --disable-static --enable-shared
make %{?_smp_mflags} || %{_mingw64_make}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files -n mingw64-libmythes-1_2-0
%defattr(-,root,root,-)
%{_mingw64_bindir}/libmythes-1.2-0.dll

%files devel
%defattr(-,root,root,-)
%{_mingw64_bindir}/th_gen_idx.pl
%{_mingw64_includedir}/mythes.hxx
%{_mingw64_libdir}/libmythes-1.2.dll.a
%{_mingw64_libdir}/pkgconfig/mythes.pc

%changelog
openSUSE Build Service is sponsored by