39 lines
1.0 KiB
RPMSpec
39 lines
1.0 KiB
RPMSpec
%global realname protobuffs
|
|
%global upstream basho
|
|
Name: erlang-%{realname}
|
|
Version: 0.9.1
|
|
Release: 1
|
|
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-1
|
|
- Package init
|