separate out gettext-tools from main package
This commit is contained in:
parent
26b1c1422c
commit
7f2474680f
96
gettext.spec
96
gettext.spec
|
@ -4,21 +4,14 @@
|
|||
Summary: GNU libraries and utilities for producing multi-lingual messages
|
||||
Name: gettext
|
||||
Version: 0.21
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
# The following are licensed under LGPLv2+:
|
||||
# - libintl and its headers
|
||||
# - libasprintf and its headers
|
||||
# - libintl.jar
|
||||
# - GNU.Gettext.dll
|
||||
# - gettext.sh
|
||||
# The following are licensed under GFDL:
|
||||
# - gettext-tools/doc/FAQ.html
|
||||
# - gettext-tools/doc/tutorial.html
|
||||
# - gettext info files
|
||||
# - libasprintf info files
|
||||
# - libtextstyle info files
|
||||
# Everything else is GPLv3+
|
||||
License: GPLv3+ and LGPLv2+ and GFDL
|
||||
License: GPLv3+ and LGPLv2+
|
||||
URL: http://www.gnu.org/software/gettext/
|
||||
Source: https://ftp.gnu.org/pub/gnu/gettext/%{name}-%{version}.tar.xz
|
||||
Source2: msghack.py
|
||||
|
@ -80,16 +73,28 @@ Provides: bundled(gnulib)
|
|||
Provides: bundled(libcroco) = 0.6.12
|
||||
|
||||
%description
|
||||
The GNU gettext package provides a set of tools and documentation for
|
||||
producing multi-lingual messages in programs. Tools include a set of
|
||||
conventions about how programs should be written to support message
|
||||
catalogs, a directory and file naming organization for the message
|
||||
catalogs, a runtime library which supports the retrieval of translated
|
||||
messages, and stand-alone programs for handling the translatable and
|
||||
the already translated strings. Gettext provides an easy to use
|
||||
library and tools for creating, using, and modifying natural language
|
||||
catalogs and is a powerful and simple method for internationalizing
|
||||
programs.
|
||||
The GNU gettext package provides an easy to use runtime libraries and
|
||||
programs for creating, using, and modifying natural language catalogs
|
||||
and is a powerful and simple method for internationalizing programs.
|
||||
|
||||
%package tools
|
||||
Summary: GNU Gettext tools and documentation for developers and translators
|
||||
# The following are licensed under GFDL:
|
||||
# - gettext-tools/doc/FAQ.html
|
||||
# - gettext-tools/doc/tutorial.html
|
||||
# - gettext info files
|
||||
# - libasprintf info files
|
||||
# - libtextstyle info files
|
||||
# Everything else is GPLv3+
|
||||
License: GPLv3+ and LGPLv2+ and GFDL
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description tools
|
||||
Gettext tools include a set of conventions about how programs should
|
||||
be written to support message catalogs, a directory and file naming
|
||||
organization for the message catalogs, a runtime library which supports
|
||||
the retrieval of translated messages, and stand-alone programs for handling
|
||||
the translatable and the already translated strings.
|
||||
|
||||
|
||||
%package common-devel
|
||||
|
@ -280,7 +285,6 @@ rm ${RPM_BUILD_ROOT}%{_emacs_sitelispdir}/%{name}/start-po.elc
|
|||
|
||||
%find_lang %{name}-runtime
|
||||
%find_lang %{name}-tools
|
||||
cat %{name}-*.lang > %{name}.lang
|
||||
|
||||
|
||||
%check
|
||||
|
@ -294,15 +298,40 @@ make check LIBUNISTRING=-lunistring
|
|||
|
||||
%ldconfig_scriptlets libs
|
||||
|
||||
%files -f %{name}.lang
|
||||
%files -f %{name}-runtime.lang
|
||||
%doc AUTHORS gettext-runtime/BUGS
|
||||
%doc COPYING gettext-tools/misc/DISCLAIM README
|
||||
%doc NEWS THANKS
|
||||
%doc COPYING NEWS THANKS README
|
||||
%doc gettext-runtime/man/*.1.html
|
||||
%doc gettext-runtime/intl/COPYING*
|
||||
%{_bindir}/envsubst
|
||||
%{_bindir}/gettext
|
||||
%{_bindir}/gettext.sh
|
||||
%{_bindir}/ngettext
|
||||
%exclude %{_mandir}/man1/autopoint.1*
|
||||
%exclude %{_mandir}/man1/gettextize.1*
|
||||
%exclude %{_mandir}/man1/msg*
|
||||
%exclude %{_mandir}/man1/recode-sr-latin.1*
|
||||
%exclude %{_mandir}/man1/xgettext.1*
|
||||
%{_mandir}/man1/*
|
||||
%{_libdir}/%{name}
|
||||
%if %{with java}
|
||||
%exclude %{_libdir}/%{name}/gnu.gettext.*
|
||||
%endif
|
||||
%dir %{_datadir}/%{name}
|
||||
%dir %{_datadir}/%{name}/its
|
||||
%{_datadir}/%{name}/ABOUT-NLS
|
||||
%{_datadir}/%{name}/po
|
||||
%{_datadir}/%{name}/styles
|
||||
%dir %{_datadir}/%{name}-%{version}
|
||||
%{_datadir}/%{name}-%{version}/its
|
||||
|
||||
%files tools -f %{name}-tools.lang
|
||||
%doc gettext-tools/misc/DISCLAIM README
|
||||
%doc gettext-tools/man/msg*.1.html
|
||||
%doc gettext-tools/man/xgettext.1.html
|
||||
%doc gettext-tools/man/recode*.1.html
|
||||
%doc gettext-tools/doc/FAQ.html
|
||||
%doc gettext-tools/doc/tutorial.html
|
||||
%{_bindir}/msgattrib
|
||||
%{_bindir}/msgcat
|
||||
%{_bindir}/msgcmp
|
||||
|
@ -317,31 +346,23 @@ make check LIBUNISTRING=-lunistring
|
|||
%{_bindir}/msgmerge
|
||||
%{_bindir}/msgunfmt
|
||||
%{_bindir}/msguniq
|
||||
%{_bindir}/ngettext
|
||||
%{_bindir}/recode-sr-latin
|
||||
%{_bindir}/xgettext
|
||||
%{_infodir}/gettext*
|
||||
%exclude %{_mandir}/man1/autopoint.1*
|
||||
%exclude %{_mandir}/man1/gettextize.1*
|
||||
%exclude %{_mandir}/man1/msghack.1*
|
||||
%{_mandir}/man1/*
|
||||
%{_libdir}/%{name}
|
||||
%if %{with java}
|
||||
%exclude %{_libdir}/%{name}/gnu.gettext.*
|
||||
%endif
|
||||
%dir %{_datadir}/%{name}
|
||||
%dir %{_datadir}/%{name}/its
|
||||
%{_datadir}/%{name}/ABOUT-NLS
|
||||
%{_datadir}/%{name}/po
|
||||
%{_datadir}/%{name}/styles
|
||||
%dir %{_datadir}/%{name}-%{version}
|
||||
%{_datadir}/%{name}-%{version}/its
|
||||
%{_mandir}/man1/msg*
|
||||
%{_mandir}/man1/recode*.1*
|
||||
%{_mandir}/man1/xgettext.1*
|
||||
|
||||
%files common-devel
|
||||
%{_datadir}/%{name}/archive.*.tar.xz
|
||||
|
||||
%files devel
|
||||
%doc gettext-runtime/man/*.3.html ChangeLog
|
||||
%doc gettext-tools/man/autopoint.1.html
|
||||
%doc gettext-tools/man/gettextize.1.html
|
||||
%{_bindir}/autopoint
|
||||
%{_bindir}/gettextize
|
||||
%{_datadir}/%{name}/projects/
|
||||
|
@ -395,6 +416,9 @@ make check LIBUNISTRING=-lunistring
|
|||
%{_mandir}/man1/msghack.1*
|
||||
|
||||
%changelog
|
||||
* Wed Sep 30 2020 Sundeep Anand <suanand@redhat.com> - 0.21-4
|
||||
- separate out gettext-tools from the main package into a subpackage
|
||||
|
||||
* Mon Sep 7 2020 Sundeep Anand <suanand@redhat.com> - 0.21-3
|
||||
- include patch to fix gnulib perror tests (rhbz#1867021)
|
||||
|
||||
|
|
Loading…
Reference in New Issue