Projects
Kolab:Winterfell
erlang-cth_readable
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 4
View file
erlang-cth_readable.spec
Changed
@@ -1,69 +1,40 @@ -%define bname cth_readable -Name: erlang-%bname -Version: 1.2.3 -Release: 1 -Summary: An Erlang/OTP library to be used for CT log outputs -License: MIT -Group: Development/Tools/Other -URL: https://github.com/ferd/%bname -Source: %bname-%version.tar.gz -Provides: erlang-%bname = %version-%release -BuildArch: noarch - -%if 0%{?suse_version} -BuildRequires: rpm-macros-erlang rpm-build-erlang -%else -BuildRequires: erlang-rpm-macros -%endif -BuildRequires: erlang-rebar >= 2.6.1 -BuildRequires: erlang-common_test +%global realname cth_readable +%global upstream ferd + +# Technically we're noarch, but our install path is not. +%global debug_package %{nil} + +Name: erlang-%{realname} +Version: 1.2.3 +Release: 1%{?dist} +Summary: Common test hooks for more readable erlang logs +License: BSD +URL: https://github.com/%{upstream}/%{realname} +Source0: https://github.com/%{upstream}/%{realname}/archive/v%{version}/%{realname}-%{version}.tar.gz +BuildRequires: erlang-cf +BuildRequires: erlang-rebar +Requires: erlang-rebar %description -An Erlang/OTP library to be used for CT log outputs you want to be readable -around all that noise they contain. - +%{summary}. %prep -%setup -q -n %bname-%version - +%autosetup -n %{realname}-%{version} %build -erl -noshell -eval ' -{ok, L} = file:consult("rebar.config"), -file:write_file("%bname.rebar.config", - lists:map(fun(E) -> io_lib:format("~p.~n", [E]) end, - [{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])])), -halt().' -for c in compile doc; do - rebar -C %bname.rebar.config $c -v -done - +%{erlang_compile} %install -install -d -m 0755 %buildroot%_erllibdir/%bname-%version/ebin -install -p -m 0644 ebin/* %buildroot%_erllibdir/%bname-%version/ebin/ -install -d -m 0755 %buildroot%_erllibdir/%bname-%version/doc -install -p -m 0644 doc/*.{css,html,png} %buildroot%_erllibdir/%bname-%version/doc/ -install -d -m 0755 %buildroot%_docdir/%name -ln -sf %_erllibdir/%bname-%version/doc %buildroot%_docdir/%name/html -install -p -m 0644 *.md %buildroot%_docdir/%name/ +%{erlang_install} +%check +%{erlang_test} %files -%defattr(-,root,root) -%doc %_docdir/%name -%_erllibdir/* - +%license LICENSE +%doc README.md +%{erlang_appdir}/ %changelog -* Sun Jun 26 2016 Led <ledest@gmail.com> 1.2.3-1 -- 1.2.3 - -* Sun Apr 10 2016 Led <ledest@gmail.com> 1.2.2-1 -- 1.2.2 - -* Sun Jan 17 2016 Led <ledest@gmail.com> 1.2.0-2 -- fix app deps - -* Sun Jan 17 2016 Led <ledest@gmail.com> 1.2.0-1 -- initial build +* Sat Jul 14 2018 Timothée Floure <fnux@fedoraproject.org> - 1.4.2-1 +- Let there be package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.