Compare commits
No commits in common. "661f81bbe6ea7e4300b64ed86e241a23e00498e5" and "2142cc7962021b078220953235eae751c210d542" have entirely different histories.
661f81bbe6
...
2142cc7962
Binary file not shown.
@ -1,76 +0,0 @@
|
||||
Name: deepin-gettext-tools
|
||||
Version: 1.0.10
|
||||
Release: 1
|
||||
Summary: Deepin Gettext Tools
|
||||
License: GPLv3
|
||||
URL: https://github.com/linuxdeepin/deepin-gettext-tools
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(Exporter::Tiny)
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: perl(Config::Tiny)
|
||||
BuildRequires: perl(XML::LibXML)
|
||||
BuildRequires: perl(XML::LibXML::PrettyPrint)
|
||||
Requires: gettext
|
||||
Requires: qt5-linguist
|
||||
Requires: perl(Config::Tiny)
|
||||
Requires: perl(Exporter::Tiny)
|
||||
Requires: perl(XML::LibXML)
|
||||
Requires: 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 -q
|
||||
|
||||
# fix shebang
|
||||
find -iname "*.py" | xargs sed -i '1s|.*|#!%{__python3}|'
|
||||
sed -i '1s|.*|#!%{__perl}|' src/desktop_ts_convert.pl
|
||||
|
||||
sed -i 's|sudo cp|cp|' src/generate_mo.py
|
||||
sed -i '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
|
||||
/bin/perl src/desktop_ts_convert.pl --help
|
||||
/bin/python3 src/generate_mo.py --help
|
||||
/bin/python3 src/update_pot.py --help
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/deepin-desktop-ts-convert
|
||||
%{_bindir}/deepin-policy-ts-convert
|
||||
%{_bindir}/deepin-update-pot
|
||||
%{_bindir}/deepin-generate-mo
|
||||
|
||||
%changelog
|
||||
* Wed Jul 26 2023 leeffo <liweiganga@uniontech.com> - 1.0.10-1
|
||||
- upgrade to version 1.0.10
|
||||
|
||||
* Tue Jul 19 2022 konglidong <konglidong@uniontech.com> - 1.0.9-1
|
||||
- Update to 1.0.9
|
||||
|
||||
* Thu Sep 3 2020 weidong <weidong@uniontech.com> - 1.0.8-3
|
||||
- fix source url in spec
|
||||
|
||||
* Fri Aug 28 2020 chenbo pan <panchenbo@uniontech.com> - 1.0.8-2
|
||||
- fix check fail
|
||||
|
||||
* Mon Aug 17 2020 weidong <weidong@uniontech.com> - 1.0.8-1
|
||||
- Initial release for OpenEuler
|
||||
@ -1,4 +0,0 @@
|
||||
version_control: github
|
||||
src_repo: linuxdeepin/deepin-gettext-tools
|
||||
tag_prefix: ""
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user