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
|
||||
%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
|
||||
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:
|
||||
# - gettext-tools/doc/FAQ.html
|
||||
# - gettext-tools/doc/tutorial.html
|
||||
@ -77,23 +71,34 @@ BuildRequires: glibc-langpack-ja
|
||||
BuildRequires: glibc-langpack-tr
|
||||
BuildRequires: glibc-langpack-zh
|
||||
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
|
||||
Requires: %{name}-libs%{_isa} = %{version}-%{release}
|
||||
Provides: bundled(gnulib)
|
||||
Provides: bundled(libcroco) = 0.6.12
|
||||
Provides: gettext-runtime = %{version}-%{release}
|
||||
|
||||
%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.
|
||||
%description runtime
|
||||
The GNU gettext-runtime 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 common-devel
|
||||
@ -269,7 +274,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
|
||||
@ -283,16 +287,41 @@ make check LIBUNISTRING=-lunistring
|
||||
|
||||
%ldconfig_scriptlets libs
|
||||
|
||||
%files -f %{name}.lang
|
||||
%files runtime -f %{name}-runtime.lang
|
||||
%license COPYING
|
||||
%doc AUTHORS gettext-runtime/BUGS
|
||||
%doc 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 -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
|
||||
@ -307,31 +336,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/
|
||||
@ -375,6 +396,9 @@ make check LIBUNISTRING=-lunistring
|
||||
%{_mandir}/man1/msghack.1*
|
||||
|
||||
%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
|
||||
- add Provides: gettext-runtime to gettext package for forward compatibility.
|
||||
- and removed Provides: gettext-tools
|
||||
|
Loading…
Reference in New Issue
Block a user