few cleanup tweaks slightly lessening some minor changes

list base files first before the runtime file list
This commit is contained in:
Jens Petersen 2022-07-21 11:39:25 +08:00
parent 59393a0772
commit 2dabab53d8
1 changed files with 48 additions and 43 deletions

View File

@ -2,11 +2,17 @@
%bcond_with java
%global snapshot 20220203
Summary: GNU Gettext tools and documentation for developers and translators
Summary: GNU tools and libraries for localized translated messages
Name: gettext
Version: 0.21
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
@ -71,29 +77,28 @@ BuildRequires: glibc-langpack-ja
BuildRequires: glibc-langpack-tr
BuildRequires: glibc-langpack-zh
BuildRequires: make
Provides: bundled(gnulib)
Provides: bundled(libcroco) = 0.6.12
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.
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.
%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
%description runtime
The GNU gettext-runtime package provides an easy to use runtime libraries and
@ -287,39 +292,12 @@ make check LIBUNISTRING=-lunistring
%ldconfig_scriptlets libs
%files runtime -f %{name}-runtime.lang
%license COPYING
%doc AUTHORS gettext-runtime/BUGS
%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 AUTHORS NEWS README THANKS
%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/man/xgettext.1.html
%doc gettext-tools/doc/FAQ.html
%doc gettext-tools/doc/tutorial.html
%{_bindir}/msgattrib
@ -346,6 +324,33 @@ make check LIBUNISTRING=-lunistring
%{_mandir}/man1/recode*.1*
%{_mandir}/man1/xgettext.1*
%files runtime -f %{name}-runtime.lang
%license COPYING
%doc gettext-runtime/BUGS
%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 common-devel
%{_datadir}/%{name}/archive.*.tar.xz