File mingw64-liblangtag.spec of Package mingw64-liblangtag
#
# spec file for package mingw64-liblangtag
#
# 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-liblangtag
Version: 0.5.1
Release: 0
Summary: C++ library for identification of the language from tags
License: LGPL-3.0-or-later or MPL-2.0
Group: System/Libraries
Url: http://tagoh.bitbucket.org/liblangtag/
Source: https://bitbucket.org/tagoh/liblangtag/downloads/liblangtag-%{version}.tar.bz2
Patch0: liblangtag-0.5.0-windows.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: glib2-devel
BuildRequires: gobject-introspection
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-libxml2-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
liblangtag is an interface library to access tags for identifying
languages.
Features:
* several subtag registry database supports:
- language
- extlang
- script
- region
- variant
- extension
- grandfathered
- redundant
* handling of the language tags
- parser
- matching
- canonicalizing
%package devel
Summary: Files for Developing with liblangtag
Group: Development/Libraries
%description devel
liblangtag is an interface library to access tags for identifying
languages.
Features:
* several subtag registry database supports:
- language
- extlang
- script
- region
- variant
- extension
- grandfathered
- redundant
* handling of the language tags
- parser
- matching
- canonicalizing
This package contains the liblangtag development files.
%_mingw64_debug_package
%prep
%setup -q -n liblangtag-%{version}
%patch -P 0 -p1
%build
libtoolize --force --copy --install
autoreconf -fi
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static \
--disable-modules
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root)
%{_mingw64_bindir}/liblangtag-1.dll
%{_mingw64_datadir}/liblangtag/common
%{_mingw64_datadir}/liblangtag/language-subtag-registry.xml
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/liblangtag/*
%{_mingw64_libdir}/liblangtag.dll.a
%{_mingw64_libdir}/pkgconfig/liblangtag.pc
%{_mingw64_datadir}/gtk-doc/html/liblangtag
%changelog