!19 detach the sub package emacs-gettext from gettex-devel

From: @yang_zhuang_zhuang
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
This commit is contained in:
openeuler-ci-bot 2021-05-17 09:10:39 +08:00 committed by Gitee
commit 203c8a4840

View File

@ -6,7 +6,7 @@
Name: gettext Name: gettext
Version: 0.21 Version: 0.21
Release: 3 Release: 4
License: GPLv3+ and LGPLv2+ License: GPLv3+ and LGPLv2+
Summary: GNU gettext utilities are a set of tools that provides a framework to help other GNU packages produce multi-lingual messages. Summary: GNU gettext utilities are a set of tools that provides a framework to help other GNU packages produce multi-lingual messages.
URL: https://www.gnu.org/software/gettext/ URL: https://www.gnu.org/software/gettext/
@ -56,12 +56,6 @@ Obsoletes: gettext-autopoint < 0.18.1.1-3
Provides: gettext-autopoint = %{version}-%{release} Provides: gettext-autopoint = %{version}-%{release}
Obsoletes: %{name}-common-devel Obsoletes: %{name}-common-devel
Provides: %{name}-common-devel Provides: %{name}-common-devel
Provides: emacs-po-mode
Requires: emacs(bin) >= %{_emacs_version}
Provides: emacs-%{name}-el = %{version}-%{release}
Provides: emacs-%{name}
Obsoletes: emacs-%{name} < %{version}-%{release}
Obsoletes: emacs-%{name}-el < %{version}-%{release}
Obsoletes: msghack Obsoletes: msghack
Provides: msghack Provides: msghack
@ -71,6 +65,19 @@ po files, if you need to compile gettext related application/library or
edit/alter po files, you should install this package. edit/alter po files, you should install this package.
want to add gettext support for your project. want to add gettext support for your project.
%package -n emacs-%{name}
Summary: Support for editing po files within GNU Emacs
Group: Application/Editors
BuildArch: noarch
# help users find po-mode.el
Provides: emacs-po-mode
Requires: emacs(bin) >= %{_emacs_version}
Provides: emacs-%{name}-el = %{version}-%{release}
Obsoletes: emacs-%{name}-el < %{version}-%{release}
%description -n emacs-%{name}
This package provides a major mode for editing po files within GUN Emacs
%package help %package help
Summary: help info for %{name} Summary: help info for %{name}
@ -219,11 +226,13 @@ make check LIBUNISTRING=-lunistring
%{_libdir}/%{name}/gnu.gettext.* %{_libdir}/%{name}/gnu.gettext.*
%endif %endif
%{_datadir}/%{name}/archive.*.tar.xz %{_datadir}/%{name}/archive.*.tar.xz
%license COPYING
%files -n emacs-%{name}
%dir %{_emacs_sitelispdir}/%{name} %dir %{_emacs_sitelispdir}/%{name}
%{_emacs_sitelispdir}/%{name}/*.elc %{_emacs_sitelispdir}/%{name}/*.elc
%{_emacs_sitelispdir}/%{name}/*.el %{_emacs_sitelispdir}/%{name}/*.el
%{_emacs_sitestartdir}/*.el %{_emacs_sitestartdir}/*.el
%license COPYING
%files help %files help
%{_infodir}/gettext* %{_infodir}/gettext*
@ -233,6 +242,12 @@ make check LIBUNISTRING=-lunistring
%exclude %{_mandir}/man1/autopoint.1* %exclude %{_mandir}/man1/autopoint.1*
%changelog %changelog
* Fri May 14 2021 yangzhuangzhuang<yangzhuangzhuang1@Huawei.com> - 0.21-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:detach the sub package emacs-gettext from gettex-devel
* Fri Apr 30 2021 yangzhuangzhuang<yangzhuangzhuang1@Huawei.com> - 0.21-3 * Fri Apr 30 2021 yangzhuangzhuang<yangzhuangzhuang1@Huawei.com> - 0.21-3
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA