!2 同步system-config-language代码
From: @pei-jiankang Reviewed-by: @dou33 Signed-off-by: @dou33
This commit is contained in:
commit
3e83384460
BIN
system-config-language-3.5.0.tar.xz
Normal file
BIN
system-config-language-3.5.0.tar.xz
Normal file
Binary file not shown.
63
system-config-language.spec
Normal file
63
system-config-language.spec
Normal file
@ -0,0 +1,63 @@
|
||||
Summary: A graphical interface for modifying the system language
|
||||
Name: system-config-language
|
||||
Version: 3.5.0
|
||||
Release: 1
|
||||
URL: https://pagure.io/system-config-language
|
||||
Source0: https://pagure.io/releases/%{name}/%{name}-%{version}.tar.xz
|
||||
License: GPLv2+
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gettext
|
||||
|
||||
# Requires both python lib and 'dnf' command directly, so express both
|
||||
Requires: dnf
|
||||
Requires: python3-dnf
|
||||
Requires: polkit
|
||||
Requires: hicolor-icon-theme
|
||||
Requires: python3-gobject
|
||||
|
||||
# Need this for text execution
|
||||
Requires: python3-newt
|
||||
|
||||
%description
|
||||
system-config-language is a graphical user interface that
|
||||
allows the user to change the default language of the system.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
sed -i '83ikk_KZ.UTF-8 utf8 latarcyrheb-sun16 Kazakh' src/locale-list
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
||||
|
||||
desktop-file-install --vendor system --delete-original \
|
||||
--dir %{buildroot}%{_datadir}/applications \
|
||||
--add-category System \
|
||||
--add-category Settings \
|
||||
--add-category X-Red-Hat-Base \
|
||||
%{buildroot}%{_datadir}/applications/system-config-language.desktop
|
||||
|
||||
%find_lang %name
|
||||
|
||||
%files -f %{name}.lang
|
||||
%license COPYING
|
||||
%doc NEWS ChangeLog
|
||||
%{_bindir}/system-config-language
|
||||
%{_datadir}/system-config-language
|
||||
%{_datadir}/applications/system-config-language.desktop
|
||||
%{_datadir}/icons/hicolor/48x48/apps/system-config-language.png
|
||||
%{_mandir}/man1/system-config-language.1.gz
|
||||
%{_datadir}/appdata/%{name}.appdata.xml
|
||||
%{_datadir}/polkit-1/actions/org.fedoraproject.config.language.policy
|
||||
|
||||
%changelog
|
||||
* Mon Aug 23 2021 tanyulong <tanyulong@kylinos.cn> - 3.5.0-1
|
||||
- init system-config-language
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user