diff --git a/erlang-gettext.spec b/erlang-gettext.spec new file mode 100644 index 0000000..dbe91c5 --- /dev/null +++ b/erlang-gettext.spec @@ -0,0 +1,37 @@ +%global realname gettext +%global upstream etnt +%global git_tag 2bcba56069721afc7d8c58f84ce701958ec7a761 +%global short_tag %(c=%{git_tag}; echo ${c:0:7}) +Name: erlang-%{realname} +Version: 2.1.0 +Release: 1 +BuildArch: noarch +Summary: Erlang internationalization library +License: MIT +URL: https://github.com/%{upstream}/%{realname} +VCS: scm:git:https://github.com/%{upstream}/%{realname}.git +Source0: https://github.com/%{upstream}/%{realname}/archive/%{git_tag}/%{realname}-%{version}.tar.gz +BuildRequires: erlang-rebar +%description +Erlang internationalization library. + +%prep +%autosetup -p1 -n %{realname}-%{git_tag} + +%build +%{erlang_compile} + +%install +%{erlang_install} + +%check +%{erlang_test} + +%files +%license LICENSE +%doc README +%{erlang_appdir}/ + +%changelog +* Sat Aug 29 2020 wangyue - 2.1.0-1 +- package init diff --git a/erlang-gettext.yaml b/erlang-gettext.yaml new file mode 100644 index 0000000..c1396ef --- /dev/null +++ b/erlang-gettext.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/etnt/gettext +version_control: github +src_repo: etnt/gettext +tag_prefix: "^" +seperator: "" diff --git a/gettext-2.1.0.tar.gz b/gettext-2.1.0.tar.gz new file mode 100644 index 0000000..81fe845 Binary files /dev/null and b/gettext-2.1.0.tar.gz differ