pacakge init
This commit is contained in:
parent
f1bf3a4f17
commit
a820980c3c
10
erlang-protobuffs-protoc-erl
Normal file
10
erlang-protobuffs-protoc-erl
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env escript
|
||||||
|
%% -*- erlang -*-
|
||||||
|
%%! -sasl errlog_type error -boot start_sasl -noshell
|
||||||
|
|
||||||
|
main ([File]) ->
|
||||||
|
protobuffs_compile:generate_source (File);
|
||||||
|
main (_) ->
|
||||||
|
io:format ("usage: ~s <protofile>~n",
|
||||||
|
[filename:basename (escript:script_name())]),
|
||||||
|
halt (1).
|
||||||
38
erlang-protobuffs.spec
Normal file
38
erlang-protobuffs.spec
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
%global realname protobuffs
|
||||||
|
%global upstream basho
|
||||||
|
Name: erlang-%{realname}
|
||||||
|
Version: 0.9.1
|
||||||
|
Release: 3
|
||||||
|
BuildArch: noarch
|
||||||
|
Summary: A set of Protocol Buffers tools and modules for Erlang applications
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: https://github.com/%{upstream}/erlang_%{realname}
|
||||||
|
VCS: scm:git:https://github.com/%{upstream}/erlang_%{realname}.git
|
||||||
|
Source0: https://github.com/%{upstream}/erlang_%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
|
||||||
|
Source1: erlang-protobuffs-protoc-erl
|
||||||
|
BuildRequires: erlang-meck erlang-rebar
|
||||||
|
%description
|
||||||
|
A set of Protocol Buffers tools and modules for Erlang applications.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n erlang_%{realname}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{erlang_compile}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{erlang_install}
|
||||||
|
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/protoc-erl
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{erlang_test}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc AUTHORS CONTRIBUTING.md README.md README_ORIG.md RELNOTES.md
|
||||||
|
%{_bindir}/protoc-erl
|
||||||
|
%{erlang_appdir}/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Sep 2 2020 yanan li <liyanan032@huawei.com> - 0.9.1-3
|
||||||
|
- Package init
|
||||||
5
erlang-protobuffs.yaml
Normal file
5
erlang-protobuffs.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/basho/erlang_protobuffs.git
|
||||||
|
version_control: github
|
||||||
|
src_repo: basho/erlang_protobuffs
|
||||||
|
tag_prefix: ""
|
||||||
|
seperator: "."
|
||||||
BIN
protobuffs-0.9.1.tar.gz
Normal file
BIN
protobuffs-0.9.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user