ALT repositories
Last updated at Fri, 24 Jul 2020 14:09:54 +0000 | SRPMs: 24451
en ru
SRPMs in branches
hide window
Group :: Graphical desktop/Other
Source RPM: deepin-gettext-tools
Raw spec file

Name: deepin-gettext-tools
Version: 1.0.8
Release: alt1
Summary: Deepin Gettext Tools
License: GPLv3
Group: Graphical desktop/Other
Url: https://github.com/linuxdeepin/deepin-gettext-tools
Packager: Leontiy Volodin <lvol at altlinux.org>

Source: %url/archive/%version/%name-%version.tar.gz

BuildArch: noarch
BuildRequires: python3-devel perl-Config-Tiny perl-Exporter-Tiny perl-XML-LibXML perl-XML-LibXML-PrettyPrint
Requires: gettext-tools qt5-linguist perl-Config-Tiny perl-Exporter-Tiny perl-XML-LibXML perl-XML-LibXML-PrettyPrint

%description
The tools of gettext function wrapper.

desktop-ts-convert - handling desktop file translations.
policy-ts-convert - convert PolicyKit Policy file to the ts file.
update-pot - scan msgid and generate pot file according to the ini file.
generate-mo - scan po files and generate mo files according to the ini file.

%prep
%setup

# fix shebang

find -iname "*.py" | xargs sed -i '1s|.*|#!%__python3|'
%__subst '1s|.*|#!%__perl|' src/desktop_ts_convert.pl

%__subst 's|sudo cp|cp|' src/generate_mo.py
%__subst 's|lconvert|lconvert-qt5|; s|deepin-lupdate|lupdate-qt5|' src/update_pot.py

%build
%install
install -d %buildroot%_bindir
install -m755 src/desktop_ts_convert.pl %buildroot%_bindir/deepin-desktop-ts-convert
install -m755 src/policy_ts_convert.py %buildroot%_bindir/deepin-policy-ts-convert
install -m755 src/generate_mo.py %buildroot%_bindir/deepin-generate-mo
install -m755 src/update_pot.py %buildroot%_bindir/deepin-update-pot

%check
%_bindir/perl src/desktop_ts_convert.pl --help
%_bindir/python3 src/generate_mo.py --help
%_bindir/python3 src/update_pot.py --help

%files
%doc README.md
%doc LICENSE
%_bindir/deepin-desktop-ts-convert
%_bindir/deepin-policy-ts-convert
%_bindir/deepin-update-pot
%_bindir/deepin-generate-mo

%changelog
* Wed Mar 04 2020 Leontiy Volodin <lvol at altlinux.org> 1.0.8-alt1
- Initial build for ALT Sisyphus (thanks fedora for this spec).
 
The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.