Projects
Kolab:Winterfell
erlang-iso8601
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
erlang-iso8601.spec
Changed
@@ -18,6 +18,9 @@ URL: https://github.com/aseigo/erlang_iso8601 # wget --content-disposition https://github.com/aseigo/erlang_iso8601/tarball/master Source0: %{upstream}-erlang_%{realname}-%{git_tag}.tar.gz + +Patch0001: 0001-Erlang-R18-compatibility.patch + BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: erlang-rebar # Error:erlang(os:timestamp/0) - in R12B @@ -31,6 +34,8 @@ %prep %setup -q -n %{upstream}-erlang_%{realname}-%{git_tag} +%patch0001 -p1 + %build rebar compile -v
View file
0001-Erlang-R18-compatibility.patch
Added
@@ -0,0 +1,54 @@ +From 9f62dce3e7c32239719b29995704b1296ddf5cb2 Mon Sep 17 00:00:00 2001 +From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> +Date: Wed, 16 Mar 2016 16:25:58 +0100 +Subject: [PATCH] Erlang R18 compatibility + +--- + src/iso8601.erl | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/src/iso8601.erl b/src/iso8601.erl +index 42746c0..b814250 100644 +--- a/src/iso8601.erl ++++ b/src/iso8601.erl +@@ -11,13 +11,13 @@ + -define(MIDNIGHT, {0,0,0}). + -define(V, proplists:get_value). + +--type datetime() :: tuple(Date::calendar:date(), +- Time::calendar:time()). +--type datetime_plist() :: list(tuple(atom(), integer())). ++-type datetime() :: {Date::calendar:date(), ++ Time::calendar:time()}. ++-type datetime_plist() :: list({atom(), integer()}). + -type maybe(A) :: undefined | A. +--type timestamp() :: tuple(MegaSecs::integer(), +- Secs::integer(), +- MicroSecs::integer() | float()). ++-type timestamp() :: {MegaSecs::integer(), ++ Secs::integer(), ++ MicroSecs::integer() | float()}. + + %% API + +@@ -224,7 +224,7 @@ datetime(_, Plist) -> + datetime(Plist). + + -spec make_date (datetime_plist()) +- -> tuple(Date::calendar:date(), WeekOffsetH::non_neg_integer()). ++ -> {Date::calendar:date(), WeekOffsetH::non_neg_integer()}. + %% @doc Return a `tuple' containing a date and, if the date is in week format, + %% an offset in hours that can be applied to the date to adjust it to midnight + %% of the day specified. If month format is used, the offset will be zero. +@@ -237,7 +237,7 @@ make_date(Plist) -> + maybe(pos_integer()), + maybe(pos_integer()), + datetime_plist()) +- -> tuple(calendar:date(), non_neg_integer()). ++ -> {calendar:date(), non_neg_integer()}. + %% @doc Return a `tuple' containing a date and - if the date is in week format + %% (i.e., `Month' is undefined, `Week' is not) - an offset in hours that can be + %% applied to the date to adjust it to midnight of the day specified. If month +-- +2.5.0 +
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
.