File mingw64-gettext.spec of Package mingw64-gettext
#
# spec file for package mingw64-gettext
#
# 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/
#
%define dataversion 0.20.2
Name: mingw64-gettext
Version: 0.20.2
Release: 0
Summary: GNU libraries and utilities for producing multi-lingual messages
License: GPL-2.0-or-later and LGPL-2.1-or-later
Group: Development/Tools/Other
Url: http://www.gnu.org/software/gettext/
Source0: http://ftp.gnu.org/pub/gnu/gettext/gettext-%{version}.tar.xz
Source100: %{name}-rpmlintrc
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-runtime
BuildRequires: mingw64-win_iconv-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
GNU gettext library for internationalization of software. This package offers to programmers, translators, and even
users, a well integrated set of tools and documentation. GNU gettext is designed to minimize the impact of
internationalization on program sources, keeping this impact as small and hardly noticeable as possible.
%package runtime
Summary: GNU libraries and utilities for producing multi-lingual messages (runtime)
Group: Development/Tools/Other
%description runtime
GNU gettext library for internationalization of software. This package offers to programmers, translators, and even
users, a well integrated set of tools and documentation. GNU gettext is designed to minimize the impact of
internationalization on program sources, keeping this impact as small and hardly noticeable as possible.
%package -n mingw64-libintl8
Summary: GNU libraries and utilities for producing multi-lingual messages (libintl)
Group: System/Libraries
Obsoletes: mingw64-libintl
%description -n mingw64-libintl8
GNU gettext library for internationalization of software.
This package contains the dynamic library needed at runtime by programs using gettext.
%package -n mingw64-libintl-devel
Summary: GNU libraries and utilities for producing multi-lingual messages (libintl development files)
Group: Development/Libraries/C and C++
Requires: mingw64-libintl8 = %{version}
%description -n mingw64-libintl-devel
GNU gettext library for internationalization of software.
This package contains the development files needed to link against libintl.
%package tools
Summary: GNU libraries and utilities for producing multi-lingual messages (tools)
Group: Development/Tools/Other
Requires: %{name}-runtime >= %{version}
Requires: mingw64(lib:iconv)
%description tools
GNU gettext library for internationalization of software. This package offers to programmers, translators, and even
users, a well integrated set of tools and documentation. GNU gettext is designed to minimize the impact of
internationalization on program sources, keeping this impact as small and hardly noticeable as possible.
%package -n mingw64-libtextstyle0
Summary: Provides textstyling for console output
License: LGPL-2.1-or-later
Group: Development/Tools/Other
%description -n mingw64-libtextstyle0
GNU libtextstyle provides an easy way to add styling to programs that produce output to a console or terminal emulator window.
It does this in a way that allows the end user to customize the styling using the industry standard, namely Cascading Style Sheets (CSS).
%package -n mingw64-libtextstyle-devel
Summary: Devel package for libtextstyle
License: LGPL-2.1-or-later
Group: Development/Tools/Other
Requires: mingw64-libtextstyle0 = %{version}
%description -n mingw64-libtextstyle-devel
This package provides headers and static libraries for libtextstyle
%_mingw64_debug_package
%prep
%setup -q -n gettext-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>mingw64-config.cache
echo "gl_cv_func_memchr_works='yes'" >>mingw64-config.cache
echo "ac_cv_func_strnlen_working='yes'" >>mingw64-config.cache
%{_mingw64_configure} \
--disable-java --disable-native-java \
--disable-csharp \
--without-emacs \
--enable-threads=win32 \
--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_mingw64_datadir}/locale/locale.alias
rm -f %{buildroot}%{_mingw64_libdir}/charset.alias
rm -f %{buildroot}%{_mingw64_datadir}/info/dir
%find_lang gettext-runtime
%find_lang gettext-tools
%files -n mingw64-libintl8
%defattr(-,root,root)
%{_mingw64_bindir}/libintl-8.dll
%files -n mingw64-libintl-devel
%defattr(-,root,root)
%{_mingw64_includedir}/libintl.h
%{_mingw64_libdir}/libintl.dll.a
%files runtime -f gettext-runtime.lang
%defattr(-,root,root)
%{_mingw64_bindir}/envsubst.exe
%{_mingw64_bindir}/gettext.exe
%{_mingw64_bindir}/gettext.sh
%{_mingw64_bindir}/msgfmt.exe
%{_mingw64_bindir}/ngettext.exe
%{_mingw64_bindir}/libasprintf-0.dll
%{_mingw64_bindir}/libgettextlib-*-*.dll
%{_mingw64_bindir}/libgettextsrc-*-*.dll
%{_mingw64_mandir}/man1/envsubst.1*
%{_mingw64_mandir}/man1/gettext.1*
%{_mingw64_mandir}/man1/msgfmt.1*
%{_mingw64_mandir}/man1/ngettext.1*
%{_mingw64_mandir}/man3/bind_textdomain_codeset.3*
%{_mingw64_mandir}/man3/bindtextdomain.3*
%{_mingw64_mandir}/man3/dcgettext.3*
%{_mingw64_mandir}/man3/dcngettext.3*
%{_mingw64_mandir}/man3/dgettext.3*
%{_mingw64_mandir}/man3/dngettext.3*
%{_mingw64_mandir}/man3/gettext.3*
%{_mingw64_mandir}/man3/ngettext.3*
%{_mingw64_mandir}/man3/textdomain.3*
%files tools -f gettext-tools.lang
%defattr(-,root,root)
%{_mingw64_bindir}/autopoint
%{_mingw64_bindir}/gettextize
%{_mingw64_bindir}/libgettextpo-0.dll
%{_mingw64_bindir}/msg*.exe
%exclude %{_mingw64_bindir}/msgfmt.exe
%{_mingw64_bindir}/recode-sr-latin.exe
%{_mingw64_bindir}/xgettext.exe
%{_mingw64_includedir}/autosprintf.h
%{_mingw64_includedir}/gettext-po.h
%{_mingw64_libdir}/gettext
%{_mingw64_libdir}/libasprintf.dll.a
%{_mingw64_libdir}/libgettextlib.dll.a
%{_mingw64_libdir}/libgettextpo.dll.a
%{_mingw64_libdir}/libgettextsrc.dll.a
%{_mingw64_docdir}/gettext
%{_mingw64_docdir}/libasprintf/autosprintf_all.html
%{_mingw64_datadir}/gettext/
%{_mingw64_datadir}/aclocal/*m4
%{_mingw64_datadir}/info/autosprintf.info*
%{_mingw64_datadir}/info/gettext.info*
%{_mingw64_mandir}/man1/autopoint.1*
%{_mingw64_mandir}/man1/gettextize.1*
%{_mingw64_mandir}/man1/msg*1*
%exclude %{_mingw64_mandir}/man1/msgfmt.1*
%{_mingw64_mandir}/man1/recode-sr-latin.1*
%{_mingw64_mandir}/man1/xgettext.1*
%dir %{_mingw64_datadir}/gettext-%{dataversion}
%{_mingw64_datadir}/gettext-%{dataversion}/its
%files -n mingw64-libtextstyle0
%defattr(-,root,root)
%{_mingw64_bindir}/libtextstyle-0.dll
%files -n mingw64-libtextstyle-devel
%defattr(-,root,root)
%dir %_mingw64_includedir/textstyle
%_mingw64_includedir/textstyle.h
%_mingw64_includedir/textstyle/stdbool.h
%_mingw64_includedir/textstyle/version.h
%_mingw64_includedir/textstyle/woe32dll.h
%_mingw64_libdir/libtextstyle.dll.a
%doc %_mingw64_docdir/libtextstyle/libtextstyle*.html
%doc %_mingw64_infodir/libtextstyle.info.gz
%changelog