Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
ecrontab
ecrontab.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ecrontab.spec of Package ecrontab
%define bname ecrontab Name: %bname Version: 0.6.1 Release: 3 Summary: Crontab for Erlang License: MPL-1.1 Group: Development/Tools/Other URL: https://github.com/feng19/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Patch1: %bname-0.5.0-doc.patch Provides: erlang-%bname = %version-%release BuildArch: noarch BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 # check BuildRequires: erlang-common_test-devel BuildRequires: erlang-gproc >= 0.8.0 %description Crontab for Erlang: - like crontab in linux - support year & second %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %name < 0.4.1-1 %description doc Crontab for Erlang. This package contains documentation of %bname. %prep %setup -q -n %bname-%version #patch0 -p1 %patch1 -p1 %if "%__isa_bits" == "32" sed -r -i 's/301([0-9])/203\1/g;s/302([0-9])/204\1/g' src/%{bname}.erl test/eunit/%{bname}_parse_tests.erl %endif mv test/* ./ rmdir test %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", [[io_lib:print(E), ".\n"] || E <- lists:keydelete(deps, 1, L)], [raw]), init:stop().' ERL_COMPILER_OPTIONS="[inline,verbose]" rebar -C %bname.rebar.config compile -v rebar -C %bname.rebar.config doc -v %install install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin install -p -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/include install -p -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%bname-%version/doc/ install -d -m 0755 %buildroot%_docdir/%name ln -sf %_otplibdir/%bname-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 README* %buildroot%_docdir/%name/ %check rm -f test ln -s eunit test ERL_COMPILER_OPTIONS="[inline,verbose,nowarn_export_all]" rebar -C %bname.rebar.config eunit -v || exit $? rm -f test ln -s ct test ERL_COMPILER_OPTIONS="[inline,verbose]" rebar -C %bname.rebar.config ct -v || exit $? rm -f test %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/doc %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Tue Aug 09 2022 Led <ledest@gmail.com> 0.6.1-3 - add ct to %%check * Tue Aug 09 2022 Led <ledest@gmail.com> 0.6.1-2 - fix tests on 32-bit linux * Tue Aug 09 2022 Led <ledest@gmail.com> 0.6.1-1 - 0.6.1 * Tue Aug 09 2022 Led <ledest@gmail.com> 0.5.0-1 - 0.5.0 - update patches: + ecrontab-0.5.0-doc.patch * Sat Aug 21 2021 Led <ledest@gmail.com> 0.4.1-1 - 0.4.1 - git 8fab7b6 - add doc subpackage * Sun Jun 26 2016 Led <ledest@gmail.com> 0.3.0-1 - 0.3.0 - update patches: + ecrontab-fix-doc.patch * Sun May 29 2016 Led <ledest@gmail.com> 0.2.0-2 - fix License * Sun May 29 2016 Led <ledest@gmail.com> 0.2.0-1 - initial build
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor