add files
This commit is contained in:
parent
a6fe36ac94
commit
3cd3d9c3b5
16
_service
Normal file
16
_service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="url">https://github.com/openSUSE/desktop-file-translations.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="versionformat">%cd.%h</param>
|
||||||
|
<param name="versionprefix">84.87</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
<param name="changesauthor">opensuse-packaging@opensuse.org</param>
|
||||||
|
<param name="revision">refs/heads/master</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="disabled"/>
|
||||||
|
</services>
|
||||||
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<servicedata>
|
||||||
|
<service name="tar_scm">
|
||||||
|
<param name="url">https://github.com/openSUSE/desktop-file-translations.git</param>
|
||||||
|
<param name="changesrevision">950506970af77267604e6888dea50800e2c31540</param></service></servicedata>
|
||||||
BIN
desktop-file-translations-84.87.20241104.9505069.tar.xz
Normal file
BIN
desktop-file-translations-84.87.20241104.9505069.tar.xz
Normal file
Binary file not shown.
1875
desktop-translations.changes
Normal file
1875
desktop-translations.changes
Normal file
File diff suppressed because it is too large
Load Diff
94
desktop-translations.spec
Normal file
94
desktop-translations.spec
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
#
|
||||||
|
# spec file for package desktop-translations
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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: desktop-translations
|
||||||
|
Version: 84.87.20241104.9505069
|
||||||
|
Release: 0
|
||||||
|
Summary: Desktop Files Translations
|
||||||
|
License: MIT
|
||||||
|
Group: System/GUI/Other
|
||||||
|
URL: https://github.com/openSUSE/desktop-file-translations
|
||||||
|
Source0: desktop-file-translations-%{version}.tar.xz
|
||||||
|
Supplements: bundle-lang-other
|
||||||
|
Supplements: gtk2
|
||||||
|
Supplements: gtk3
|
||||||
|
Supplements: kdelibs3
|
||||||
|
Supplements: libkde4
|
||||||
|
Supplements: plasma5-desktop
|
||||||
|
Supplements: yast2-control-center
|
||||||
|
Provides: locale(af;ar;bg;be;bn;bs;ca;cs;cy;da;de;el;en_GB;eo;es;et;fi;fr;gl;gu;he;hi;hr;hu;id;it;ja;ka;kab;km;ko;lo;lt;mk;mr;nb;nl;pa;pl;pt;ro;ru;si;sk;sl;sr;sr@Latn;sv;ta;tr;uk;vi;wa;xh;zh_CN;zh_TW;zu)
|
||||||
|
BuildRequires: gettext-runtime
|
||||||
|
BuildRequires: xz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package provides the translations for installed desktop files.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Desktop Files Translations po Files
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package provides the translations for installed desktop files as po files.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c %{name}
|
||||||
|
|
||||||
|
%build
|
||||||
|
mv desktop-file-translations-%{version}/* .
|
||||||
|
./50-tools/build-entries-po.sh
|
||||||
|
|
||||||
|
%install
|
||||||
|
pushd po
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/%{name}/desktop_translations
|
||||||
|
for lang in *; do
|
||||||
|
if test "$lang" = "nb_no"; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
if test -f $lang; then
|
||||||
|
rm $lang
|
||||||
|
else
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES
|
||||||
|
for f in ${lang}/*.po; do
|
||||||
|
msgfmt -o %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/desktop_translations.mo $f
|
||||||
|
msgunfmt --no-wrap %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/desktop_translations.mo | \
|
||||||
|
grep -v '^"[A-Z][^ ]*: ' | grep '[^\][\]n"' && exit 1
|
||||||
|
cp -a $f %{buildroot}%{_datadir}/%{name}/desktop_translations/${lang}.po
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/%{name}/polkitaction
|
||||||
|
for lang in *; do
|
||||||
|
if [ -e "${lang}/polkitaction.po" ]; then
|
||||||
|
msgfmt -o "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/polkit-action-distro-translations.mo" "${lang}/polkitaction.po"
|
||||||
|
cp -a "${lang}/polkitaction.po" %{buildroot}%{_datadir}/%{name}/polkitaction/${lang}.po
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
%find_lang %{name} --all-name
|
||||||
|
|
||||||
|
%files -f %{name}.lang
|
||||||
|
%defattr(-,root,root)
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
Loading…
Reference in New Issue
Block a user