|
|
cfa0a74 |
Name: deepin-gettext-tools
|
|
Ziqian SUN |
0c1ba4c |
Version: 1.0.8
|
|
|
88cda44 |
Release: 5%{?dist}
|
|
|
cfa0a74 |
Summary: Deepin Gettext Tools
|
|
|
cfa0a74 |
License: GPLv3
|
|
|
cfa0a74 |
URL: https://github.com/linuxdeepin/deepin-gettext-tools
|
|
|
cfa0a74 |
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
BuildArch: noarch
|
|
|
cfa0a74 |
BuildRequires: python3-devel
|
|
|
cfa0a74 |
BuildRequires: perl(Config::Tiny)
|
|
|
cfa0a74 |
BuildRequires: perl(Exporter::Tiny)
|
|
|
cfa0a74 |
BuildRequires: perl(XML::LibXML)
|
|
|
cfa0a74 |
BuildRequires: perl(XML::LibXML::PrettyPrint)
|
|
|
cfa0a74 |
Requires: gettext
|
|
|
cfa0a74 |
Requires: qt5-linguist
|
|
|
cfa0a74 |
Requires: perl(Config::Tiny)
|
|
|
cfa0a74 |
Requires: perl(Exporter::Tiny)
|
|
|
cfa0a74 |
Requires: perl(XML::LibXML)
|
|
|
cfa0a74 |
Requires: perl(XML::LibXML::PrettyPrint)
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
%description
|
|
|
cfa0a74 |
The tools of gettext function wrapper.
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
desktop-ts-convert - handling desktop file translations.
|
|
|
cfa0a74 |
policy-ts-convert - convert PolicyKit Policy file to the ts file.
|
|
|
cfa0a74 |
update-pot - scan msgid and generate pot file according to the ini file.
|
|
|
cfa0a74 |
generate-mo - scan po files and generate mo files according to the ini file.
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
%prep
|
|
|
cfa0a74 |
%setup -q
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
# fix shebang
|
|
|
cfa0a74 |
find -iname "*.py" | xargs sed -i '1s|.*|#!%{__python3}|'
|
|
|
5682b88 |
sed -i '1s|.*|#!%{__perl}|' src/desktop_ts_convert.pl
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
sed -i 's|sudo cp|cp|' src/generate_mo.py
|
|
|
cfa0a74 |
sed -i 's|lconvert|lconvert-qt5|; s|deepin-lupdate|lupdate-qt5|' src/update_pot.py
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
%build
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
%install
|
|
|
cfa0a74 |
install -d %{buildroot}%{_bindir}
|
|
|
5682b88 |
install -m755 src/desktop_ts_convert.pl %{buildroot}%{_bindir}/deepin-desktop-ts-convert
|
|
|
5682b88 |
install -m755 src/policy_ts_convert.py %{buildroot}%{_bindir}/deepin-policy-ts-convert
|
|
|
cfa0a74 |
install -m755 src/generate_mo.py %{buildroot}%{_bindir}/deepin-generate-mo
|
|
|
cfa0a74 |
install -m755 src/update_pot.py %{buildroot}%{_bindir}/deepin-update-pot
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
%check
|
|
|
5682b88 |
/bin/perl src/desktop_ts_convert.pl --help
|
|
|
cfa0a74 |
/bin/python3 src/generate_mo.py --help
|
|
|
cfa0a74 |
/bin/python3 src/update_pot.py --help
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
%files
|
|
|
cfa0a74 |
%doc README.md
|
|
|
cfa0a74 |
%license LICENSE
|
|
|
cfa0a74 |
%{_bindir}/deepin-desktop-ts-convert
|
|
|
cfa0a74 |
%{_bindir}/deepin-policy-ts-convert
|
|
|
cfa0a74 |
%{_bindir}/deepin-update-pot
|
|
|
cfa0a74 |
%{_bindir}/deepin-generate-mo
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
%changelog
|
|
|
88cda44 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-5
|
|
|
88cda44 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
88cda44 |
|
|
|
7b9a61e |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-4
|
|
|
7b9a61e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
7b9a61e |
|
|
|
26b056e |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-3
|
|
|
26b056e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
26b056e |
|
|
|
22a4f5a |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-2
|
|
|
22a4f5a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
22a4f5a |
|
|
Ziqian SUN |
0c1ba4c |
* Mon Aug 06 2018 Zamir SUN <zsun@fedoraproject.org> - 1.0.8-1
|
|
Ziqian SUN |
0c1ba4c |
- Update to 1.0.8
|
|
Ziqian SUN |
0c1ba4c |
|
|
|
eef704a |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-4
|
|
|
eef704a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
eef704a |
|
|
|
127c57f |
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 1.0.7-3
|
|
|
127c57f |
- Rebuilt for Python 3.7
|
|
|
127c57f |
|
|
|
52f74e4 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-2
|
|
|
52f74e4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
52f74e4 |
|
|
|
5682b88 |
* Fri Oct 27 2017 mosquito <sensor.wen@gmail.com> - 1.0.7-1
|
|
|
5682b88 |
- Update to 1.0.7
|
|
|
5682b88 |
|
|
|
5682b88 |
* Fri Jul 14 2017 mosquito <sensor.wen@gmail.com> - 1.0.6-1.git8f4a8ab
|
|
|
cfa0a74 |
- Update to 1.0.6
|
|
|
cfa0a74 |
|
|
|
5682b88 |
* Tue Jan 17 2017 mosquito <sensor.wen@gmail.com> - 1.0.4-1.git4303c4a
|
|
|
cfa0a74 |
- Rebuild
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
* Mon Jan 16 2017 Jaroslav <cz.guardian@gmail.com> Stepanek 1.0.4-1
|
|
|
cfa0a74 |
- Update to version 1.0.4
|
|
|
cfa0a74 |
|
|
|
cfa0a74 |
* Wed Oct 12 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 1.0.3-1
|
|
|
cfa0a74 |
- Initial package build
|