blob: 2da09789f4f3b33c12d3b72b5bf6b1a671810d7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
%global realname certifi
%global upstream certifi
%global upstream_reponame erlang-certifi
# Technically we're noarch, but our install path is not.
%global debug_package %{nil}
Name: erlang-%{realname}
Version: 2.3.1
Release: 1%{?dist}
Summary: Dummy certifi (certificate bundle) package for erlang
License: BSD
URL: https://github.com/%{upstream}/%{upstream_reponame}
Source0: https://github.com/%{upstream}/%{upstream_reponame}/archive/%{version}/%{upstream_reponame}-%{version}.tar.gz
Patch0: erlang-certifi-enforce_fedora_ca_bundle.patch
BuildRequires: erlang-rebar sed erlang-parse_trans
Requires: erlang-rebar
%description
Upstream certifi provides a custom CA bundle to erlang. Since custom CA bundles
cannot be packaged in Fedora, this 'dummy' package patches certifi to point to
the default Fedora CA bundle.
%prep
%setup -q -n %{upstream_reponame}-%{version}
%patch0
# Fix dependency version issue
sed -i 's/{parse_trans, "3.2.0"}/{parse_trans, "3.3.0"}/' rebar.config
%build
%{erlang_compile}
%install
%{erlang_install}
%files
%license LICENSE
%doc README.md
%{erlang_appdir}/
%changelog
* Sun Jul 15 2018 Timothée Floure <fnux@fedoraproject.org> - 2.3.1-1
- Let there be package
|