2024-05-03 16:18:10 +02:00
|
|
|
#
|
|
|
|
# spec file for package live-langset-data
|
|
|
|
#
|
2024-06-12 22:34:40 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2024-05-03 16:18:10 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: live-langset-data
|
2024-06-12 22:34:40 +02:00
|
|
|
Version: 3.0
|
2024-05-03 16:18:10 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Scripts and data to allow locale switching in live media
|
2024-06-12 22:34:40 +02:00
|
|
|
License: GPL-3.0-or-later
|
2024-05-03 16:18:10 +02:00
|
|
|
Group: System/YaST
|
2024-06-12 22:34:40 +02:00
|
|
|
URL: https://build.opensuse.org/package/show/system:install:head/live-langset-data
|
2024-05-03 16:18:10 +02:00
|
|
|
Source1: langset.sh
|
|
|
|
Source2: langset.service
|
2024-06-12 22:34:40 +02:00
|
|
|
Source3: getcountrydata.py
|
|
|
|
Source4: gpl-3.0.txt
|
2024-05-03 16:18:10 +02:00
|
|
|
BuildRequires: coreutils
|
2024-06-12 22:34:40 +02:00
|
|
|
BuildRequires: python3-langtable
|
2024-05-03 16:18:10 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
# Support for /etc/sysconfig/language was dropped
|
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
BuildRequires: newer-distro
|
|
|
|
%endif
|
|
|
|
Requires: sed
|
|
|
|
Requires: systemd
|
|
|
|
BuildArch: noarch
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%description
|
2024-06-12 22:34:40 +02:00
|
|
|
This package contains scripts and data to allow setting the locale (+ console font, keyboard
|
|
|
|
layout and timezone) on live media.
|
2024-05-03 16:18:10 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -T -c
|
|
|
|
cp %{SOURCE4} .
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir output
|
2024-06-12 22:34:40 +02:00
|
|
|
cd output
|
|
|
|
python3 %{SOURCE3}
|
2024-05-03 16:18:10 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
pushd output
|
|
|
|
for i in *; do
|
2024-06-12 22:34:40 +02:00
|
|
|
install -Dm 644 $i %{buildroot}/%{_datadir}/langset/${i}
|
2024-05-03 16:18:10 +02:00
|
|
|
done
|
|
|
|
popd
|
|
|
|
install -Dm 755 %{SOURCE1} %{buildroot}%{_sbindir}/langset.sh
|
|
|
|
install -Dm 644 %{SOURCE2} %{buildroot}%{_unitdir}/langset.service
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre langset.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post langset.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun langset.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun langset.service
|
|
|
|
|
|
|
|
%files
|
2024-06-12 22:34:40 +02:00
|
|
|
%doc gpl-3.0.txt
|
2024-05-03 16:18:10 +02:00
|
|
|
%{_datadir}/langset
|
|
|
|
%{_sbindir}/langset.sh
|
|
|
|
%{_unitdir}/langset.service
|
|
|
|
|
|
|
|
%changelog
|