separate out gettext-runtime from the main package into a subpackage
This commit is contained in:
parent
7036fc870c
commit
59393a0772
98
gettext.spec
98
gettext.spec
@ -2,17 +2,11 @@
|
|||||||
%bcond_with java
|
%bcond_with java
|
||||||
%global snapshot 20220203
|
%global snapshot 20220203
|
||||||
|
|
||||||
Summary: GNU libraries and utilities for producing multi-lingual messages
|
Summary: GNU Gettext tools and documentation for developers and translators
|
||||||
Name: gettext
|
Name: gettext
|
||||||
Version: 0.21
|
Version: 0.21
|
||||||
Release: 15%{?dist}.0.%{snapshot}
|
Release: 16%{?dist}.0.%{snapshot}
|
||||||
|
|
||||||
# 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:
|
# The following are licensed under GFDL:
|
||||||
# - gettext-tools/doc/FAQ.html
|
# - gettext-tools/doc/FAQ.html
|
||||||
# - gettext-tools/doc/tutorial.html
|
# - gettext-tools/doc/tutorial.html
|
||||||
@ -77,23 +71,34 @@ BuildRequires: glibc-langpack-ja
|
|||||||
BuildRequires: glibc-langpack-tr
|
BuildRequires: glibc-langpack-tr
|
||||||
BuildRequires: glibc-langpack-zh
|
BuildRequires: glibc-langpack-zh
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
Requires: %{name}-runtime = %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Gettext 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 runtime
|
||||||
|
Summary: GNU runtime libraries and programs for producing multi-lingual messages
|
||||||
|
# The following are licensed under LGPLv2+:
|
||||||
|
# - libintl and its headers
|
||||||
|
# - libasprintf and its headers
|
||||||
|
# - libintl.jar
|
||||||
|
# - GNU.Gettext.dll
|
||||||
|
# - gettext.sh
|
||||||
|
License: GPLv3+ and LGPLv2+
|
||||||
# Depend on the exact version of the library sub package
|
# Depend on the exact version of the library sub package
|
||||||
Requires: %{name}-libs%{_isa} = %{version}-%{release}
|
Requires: %{name}-libs%{_isa} = %{version}-%{release}
|
||||||
Provides: bundled(gnulib)
|
Provides: bundled(gnulib)
|
||||||
Provides: bundled(libcroco) = 0.6.12
|
Provides: bundled(libcroco) = 0.6.12
|
||||||
Provides: gettext-runtime = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
%description runtime
|
||||||
The GNU gettext package provides a set of tools and documentation for
|
The GNU gettext-runtime package provides an easy to use runtime libraries and
|
||||||
producing multi-lingual messages in programs. Tools include a set of
|
programs for creating, using, and modifying natural language catalogs
|
||||||
conventions about how programs should be written to support message
|
and is a powerful and simple method for internationalizing programs.
|
||||||
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.
|
|
||||||
|
|
||||||
|
|
||||||
%package common-devel
|
%package common-devel
|
||||||
@ -269,7 +274,6 @@ rm ${RPM_BUILD_ROOT}%{_emacs_sitelispdir}/%{name}/start-po.elc
|
|||||||
|
|
||||||
%find_lang %{name}-runtime
|
%find_lang %{name}-runtime
|
||||||
%find_lang %{name}-tools
|
%find_lang %{name}-tools
|
||||||
cat %{name}-*.lang > %{name}.lang
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -283,16 +287,41 @@ make check LIBUNISTRING=-lunistring
|
|||||||
|
|
||||||
%ldconfig_scriptlets libs
|
%ldconfig_scriptlets libs
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files runtime -f %{name}-runtime.lang
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS gettext-runtime/BUGS
|
%doc AUTHORS gettext-runtime/BUGS
|
||||||
%doc gettext-tools/misc/DISCLAIM README
|
%doc COPYING NEWS THANKS README
|
||||||
%doc NEWS THANKS
|
|
||||||
%doc gettext-runtime/man/*.1.html
|
%doc gettext-runtime/man/*.1.html
|
||||||
%doc gettext-runtime/intl/COPYING*
|
%doc gettext-runtime/intl/COPYING*
|
||||||
%{_bindir}/envsubst
|
%{_bindir}/envsubst
|
||||||
%{_bindir}/gettext
|
%{_bindir}/gettext
|
||||||
%{_bindir}/gettext.sh
|
%{_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 -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}/msgattrib
|
||||||
%{_bindir}/msgcat
|
%{_bindir}/msgcat
|
||||||
%{_bindir}/msgcmp
|
%{_bindir}/msgcmp
|
||||||
@ -307,31 +336,23 @@ make check LIBUNISTRING=-lunistring
|
|||||||
%{_bindir}/msgmerge
|
%{_bindir}/msgmerge
|
||||||
%{_bindir}/msgunfmt
|
%{_bindir}/msgunfmt
|
||||||
%{_bindir}/msguniq
|
%{_bindir}/msguniq
|
||||||
%{_bindir}/ngettext
|
|
||||||
%{_bindir}/recode-sr-latin
|
%{_bindir}/recode-sr-latin
|
||||||
%{_bindir}/xgettext
|
%{_bindir}/xgettext
|
||||||
%{_infodir}/gettext*
|
%{_infodir}/gettext*
|
||||||
%exclude %{_mandir}/man1/autopoint.1*
|
%exclude %{_mandir}/man1/autopoint.1*
|
||||||
%exclude %{_mandir}/man1/gettextize.1*
|
%exclude %{_mandir}/man1/gettextize.1*
|
||||||
%exclude %{_mandir}/man1/msghack.1*
|
%exclude %{_mandir}/man1/msghack.1*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/msg*
|
||||||
%{_libdir}/%{name}
|
%{_mandir}/man1/recode*.1*
|
||||||
%if %{with java}
|
%{_mandir}/man1/xgettext.1*
|
||||||
%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 common-devel
|
%files common-devel
|
||||||
%{_datadir}/%{name}/archive.*.tar.xz
|
%{_datadir}/%{name}/archive.*.tar.xz
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc gettext-runtime/man/*.3.html ChangeLog
|
%doc gettext-runtime/man/*.3.html ChangeLog
|
||||||
|
%doc gettext-tools/man/autopoint.1.html
|
||||||
|
%doc gettext-tools/man/gettextize.1.html
|
||||||
%{_bindir}/autopoint
|
%{_bindir}/autopoint
|
||||||
%{_bindir}/gettextize
|
%{_bindir}/gettextize
|
||||||
%{_datadir}/%{name}/projects/
|
%{_datadir}/%{name}/projects/
|
||||||
@ -375,6 +396,9 @@ make check LIBUNISTRING=-lunistring
|
|||||||
%{_mandir}/man1/msghack.1*
|
%{_mandir}/man1/msghack.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 8 2022 Sundeep Anand <suanand@redhat.com> - 0.21-16.0.20220203
|
||||||
|
- separate out gettext-runtime from the main package into a subpackage
|
||||||
|
|
||||||
* Tue Jun 7 2022 Sundeep Anand <suanand@redhat.com> - 0.21-15.0.20220203
|
* Tue Jun 7 2022 Sundeep Anand <suanand@redhat.com> - 0.21-15.0.20220203
|
||||||
- add Provides: gettext-runtime to gettext package for forward compatibility.
|
- add Provides: gettext-runtime to gettext package for forward compatibility.
|
||||||
- and removed Provides: gettext-tools
|
- and removed Provides: gettext-tools
|
||||||
|
Loading…
Reference in New Issue
Block a user