From 7000d88dbbbeddb30f68db282fd52c914f815c12 Mon Sep 17 00:00:00 2001 From: yang_zhuang_zhuang <1162011203@qq.com> Date: Fri, 14 May 2021 10:34:18 +0800 Subject: [PATCH] detach the sub package emacs-gettext from gettex-devel Signed-off-by: yang_zhuang_zhuang <1162011203@qq.com> --- gettext.spec | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/gettext.spec b/gettext.spec index c9183f8..6811a43 100644 --- a/gettext.spec +++ b/gettext.spec @@ -6,7 +6,7 @@ Name: gettext Version: 0.21 -Release: 3 +Release: 4 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. URL: https://www.gnu.org/software/gettext/ @@ -56,12 +56,6 @@ Obsoletes: gettext-autopoint < 0.18.1.1-3 Provides: gettext-autopoint = %{version}-%{release} Obsoletes: %{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 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. 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 Summary: help info for %{name} @@ -219,11 +226,13 @@ make check LIBUNISTRING=-lunistring %{_libdir}/%{name}/gnu.gettext.* %endif %{_datadir}/%{name}/archive.*.tar.xz +%license COPYING + +%files -n emacs-%{name} %dir %{_emacs_sitelispdir}/%{name} %{_emacs_sitelispdir}/%{name}/*.elc %{_emacs_sitelispdir}/%{name}/*.el %{_emacs_sitestartdir}/*.el -%license COPYING %files help %{_infodir}/gettext* @@ -233,6 +242,12 @@ make check LIBUNISTRING=-lunistring %exclude %{_mandir}/man1/autopoint.1* %changelog +* Fri May 14 2021 yangzhuangzhuang - 0.21-4 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:detach the sub package emacs-gettext from gettex-devel + * Fri Apr 30 2021 yangzhuangzhuang - 0.21-3 - Type:bugfix - ID:NA