Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
783d51f80a
!13 sync by openEuler-22.03-LTS-SP3
From: @ut-layne-yang 
Reviewed-by: @xzyangha 
Signed-off-by: @xzyangha
2024-06-19 06:51:40 +00:00
liuzhilin
2979a8103d update deepin-gettext-tools package 2024-06-19 11:20:07 +08:00
openeuler-ci-bot
4f96bf97be
!7 update to upstream 1.0.9
From: @xzyangha 
Reviewed-by: @weidongkl 
Signed-off-by: @weidongkl
2022-10-28 02:28:59 +00:00
yangxianzhao
4583b397d7 update to upstream 1.0.9 2022-10-25 10:06:38 +08:00
openeuler-ci-bot
2ff442292b !3 fix source url in spec
Merge pull request !3 from weidongkl/master
2020-09-04 13:53:25 +08:00
weidong
ebf72a2e59 fix source url in spec 2020-09-03 15:23:37 +08:00
weidong
42da889856 fix source url in spec 2020-09-03 12:41:51 +08:00
openeuler-ci-bot
d4609effd2 !2 fix check error
Merge pull request !2 from panchenbo/master
2020-08-28 11:01:09 +08:00
panchenbo
c4f01288f8 fix check fail 2020-08-28 10:25:01 +08:00
openeuler-ci-bot
3c12faafb5 !1 init package
Merge pull request !1 from weidongkl/master
2020-08-20 09:45:47 +08:00
weidong
d42988aac7 init package 2020-08-19 14:37:55 +08:00
5 changed files with 80 additions and 73 deletions

View File

@ -1,36 +0,0 @@
# deepin-gettext-tools
#### Description
Deepin Gettext Tools
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,37 +0,0 @@
# deepin-gettext-tools
#### 介绍
Deepin Gettext Tools
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

Binary file not shown.

76
deepin-gettext-tools.spec Normal file
View File

@ -0,0 +1,76 @@
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

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: linuxdeepin/deepin-gettext-tools
tag_prefix: ""
seperator: "."