Overview
Request 2355 (accepted)
Not noarch
- Created by vanmeeuwen over 6 years ago
- In state accepted
-
Package maintainer:
sicherha
erlang-cth_readable.spec
Changed
x
1
2
-%define bname cth_readable
3
-Name: erlang-%bname
4
-Version: 1.2.3
5
-Release: 1
6
-Summary: An Erlang/OTP library to be used for CT log outputs
7
-License: MIT
8
-Group: Development/Tools/Other
9
-URL: https://github.com/ferd/%bname
10
-Source: %bname-%version.tar.gz
11
-Provides: erlang-%bname = %version-%release
12
-BuildArch: noarch
13
-
14
-%if 0%{?suse_version}
15
-BuildRequires: rpm-macros-erlang rpm-build-erlang
16
-%else
17
-BuildRequires: erlang-rpm-macros
18
-%endif
19
-BuildRequires: erlang-rebar >= 2.6.1
20
-BuildRequires: erlang-common_test
21
+%global realname cth_readable
22
+%global upstream ferd
23
+
24
+# Technically we're noarch, but our install path is not.
25
+%global debug_package %{nil}
26
+
27
+Name: erlang-%{realname}
28
+Version: 1.2.3
29
+Release: 1%{?dist}
30
+Summary: Common test hooks for more readable erlang logs
31
+License: BSD
32
+URL: https://github.com/%{upstream}/%{realname}
33
+Source0: https://github.com/%{upstream}/%{realname}/archive/v%{version}/%{realname}-%{version}.tar.gz
34
+BuildRequires: erlang-cf
35
+BuildRequires: erlang-rebar
36
+Requires: erlang-rebar
37
38
%description
39
-An Erlang/OTP library to be used for CT log outputs you want to be readable
40
-around all that noise they contain.
41
-
42
+%{summary}.
43
44
%prep
45
-%setup -q -n %bname-%version
46
-
47
+%autosetup -n %{realname}-%{version}
48
49
%build
50
-erl -noshell -eval '
51
-{ok, L} = file:consult("rebar.config"),
52
-file:write_file("%bname.rebar.config",
53
- lists:map(fun(E) -> io_lib:format("~p.~n", [E]) end,
54
- [{erl_opts, [slim, inline, no_debug_info|lists:delete(debug_info, proplists:get_value(erl_opts, L, []))]}|lists:foldl(fun proplists:delete/2, L, [deps, erl_opts])])),
55
-halt().'
56
-for c in compile doc; do
57
- rebar -C %bname.rebar.config $c -v
58
-done
59
-
60
+%{erlang_compile}
61
62
%install
63
-install -d -m 0755 %buildroot%_erllibdir/%bname-%version/ebin
64
-install -p -m 0644 ebin/* %buildroot%_erllibdir/%bname-%version/ebin/
65
-install -d -m 0755 %buildroot%_erllibdir/%bname-%version/doc
66
-install -p -m 0644 doc/*.{css,html,png} %buildroot%_erllibdir/%bname-%version/doc/
67
-install -d -m 0755 %buildroot%_docdir/%name
68
-ln -sf %_erllibdir/%bname-%version/doc %buildroot%_docdir/%name/html
69
-install -p -m 0644 *.md %buildroot%_docdir/%name/
70
+%{erlang_install}
71
72
+%check
73
+%{erlang_test}
74
75
%files
76
-%defattr(-,root,root)
77
-%doc %_docdir/%name
78
-%_erllibdir/*
79
-
80
+%license LICENSE
81
+%doc README.md
82
+%{erlang_appdir}/
83
84
%changelog
85
-* Sun Jun 26 2016 Led <ledest@gmail.com> 1.2.3-1
86
-- 1.2.3
87
-
88
-* Sun Apr 10 2016 Led <ledest@gmail.com> 1.2.2-1
89
-- 1.2.2
90
-
91
-* Sun Jan 17 2016 Led <ledest@gmail.com> 1.2.0-2
92
-- fix app deps
93
-
94
-* Sun Jan 17 2016 Led <ledest@gmail.com> 1.2.0-1
95
-- initial build
96
+* Sat Jul 14 2018 Timothée Floure <fnux@fedoraproject.org> - 1.4.2-1
97
+- Let there be package
98
Refresh
Refresh
Login required, please
login
in order to comment
Request History
vanmeeuwen created request over 6 years ago
Not noarch
vanmeeuwen accepted review over 6 years ago
Accept
vanmeeuwen accepted review over 6 years ago
Accept
vanmeeuwen approved review over 6 years ago
Accept
vanmeeuwen accepted request over 6 years ago
Accept