aboutsummaryrefslogtreecommitdiff
path: root/locale-en_BS.spec
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-03-05 10:41:05 -0500
committerB. Stack <bgstack15@gmail.com>2022-03-05 10:41:05 -0500
commit20e924bef86be2fcab1a938efc8d17751d95ec84 (patch)
tree720c38403c494cc7e541e71a6f5167bbb532ddee /locale-en_BS.spec
downloadlocale-en_BS-20e924bef86be2fcab1a938efc8d17751d95ec84.tar.gz
locale-en_BS-20e924bef86be2fcab1a938efc8d17751d95ec84.tar.bz2
locale-en_BS-20e924bef86be2fcab1a938efc8d17751d95ec84.zip
initial commit
Diffstat (limited to 'locale-en_BS.spec')
-rw-r--r--locale-en_BS.spec52
1 files changed, 52 insertions, 0 deletions
diff --git a/locale-en_BS.spec b/locale-en_BS.spec
new file mode 100644
index 0000000..398bb77
--- /dev/null
+++ b/locale-en_BS.spec
@@ -0,0 +1,52 @@
+# Startdate: 2022-03-05 09:55
+# Reference:
+# 7w.spec
+# local-en_RU.spec
+%global _locale en_BS
+%global use_master 1
+%global _localesdir %{_datadir}/i18n/locales
+%global _localedef %{_bindir}/localedef
+
+%global vername master
+%if 0%{?use_master}
+%global vername %{version}
+%endif
+
+Name: locale-%{_locale}
+Version: 0.0.1
+Release: 1
+Summary: English locale for Stackrpms
+License: GPLv3+
+URL: https://bgstack15.ddns.net/
+Source0: %{_locale}
+Packager: B. Stack <bgstack15@gmail.com>
+Requires(post): %{_localedef}
+Requires(post): %{_localesdir}
+Requires(preun): %{_localedef}
+Requires(preun): %{_localesdir}
+BuildArch: noarch
+
+%description
+This is a glibc locale for Stackrpms internal use. It modifies the time
+formats to make more sense than en_US.
+
+%install
+%{__install} -d %{buildroot}%{_localesdir} -m0755
+%{__install} -t %{buildroot}%{_localesdir} -m0644 %{SOURCE0}
+
+%post
+%{_localedef} --quiet --force --inputfile %{_localesdir}/%{_locale} --charmap UTF-8 %{_locale}.utf8
+
+%preun
+if test "${1}" = "0" ;
+then
+ %{_localedef} --quiet --delete-from-archive %{_locale}.utf8
+fi
+
+%files
+%defattr(-,root,root,0)
+%{_localesdir}/%{_locale}
+
+%changelog
+* Sat Mar 05 2022 B. Stack <bgstack15@gmail.com> - 0.0.1-1
+- Initial package
bgstack15