Hello community,

here is the log from the commit of package erlang-rebar for openSUSE:Factory 
checked in at 2015-10-30 13:42:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/erlang-rebar (Old)
 and      /work/SRC/openSUSE:Factory/.erlang-rebar.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "erlang-rebar"

Changes:
--------
New Changes file:

--- /dev/null   2015-10-14 00:04:03.524025256 +0200
+++ /work/SRC/openSUSE:Factory/.erlang-rebar.new/erlang-rebar-obs.changes       
2015-10-30 13:42:56.000000000 +0100
@@ -0,0 +1,126 @@
+-------------------------------------------------------------------
+Fri Oct 16 09:00:00 UTC 2015 - matwey.korni...@gmail.com
+
+- erlang-rebar-src and erlang-rebar-obs-src should also be
+  in conflict explicitly
+
+-------------------------------------------------------------------
+Thu Oct 15 08:29:58 UTC 2015 - matwey.korni...@gmail.com
+
+- Update to version 2.6.1+git20151013.5d73a8d:
+  + Add Windows continuous integration through AppVeyor
+
+-------------------------------------------------------------------
+Wed Oct 07 16:55:13 UTC 2015 - matwey.korni...@gmail.com
+
+- Update to version 2.6.1+git20150928.365ac64:
+  + Fix #544
+  + Fix #544 even more.
+  + Fix #544
+  + Add erl_first_files to other first_files
+  + Add test for eunit_first_files
+  + Add report and verbose options for LFE compile
+  + bump to 2.6.1
+
+-------------------------------------------------------------------
+Wed Sep 30 11:36:06 UTC 2015 - dmuel...@suse.com
+
+- use m4 for substitution of the base package name,
+  works around some defects in the source validator checks
+
+-------------------------------------------------------------------
+Fri Jul 24 18:21:51 UTC 2015 - seife+...@b1-systems.com
+
+- fix "bad %if condition" for non-SUSE distro builds
+
+-------------------------------------------------------------------
+Thu Jun 12 07:37:29 UTC 2014 - matwey.korni...@gmail.com
+
+- Version 2.3.1
+  - fix build for 17
+
+-------------------------------------------------------------------
+Wed Apr 16 16:42:28 UTC 2014 - matwey.korni...@gmail.com
+
+- Add erlang-rebar-obs package to use it in OBS only.
+  It does not require Internet.
+- prjconf should be something like that:
+  Substitute: erlang-rebar erlang-rebar-obs
+
+-------------------------------------------------------------------
+Wed Apr 16 12:56:47 UTC 2014 - matwey.korni...@gmail.com
+
+- Version 2.2.0
+
+-------------------------------------------------------------------
+Sat Mar  1 08:11:54 UTC 2014 - nkrin...@suse.com
+
+- Added rpmlintc file to allow build to succeed with a file with 
+  source code 
+
+-------------------------------------------------------------------
+Sun Feb  2 17:33:07 UTC 2014 - matwey.korni...@gmail.com
+
+- updated to latest master (2.1.0 release)
+
+-------------------------------------------------------------------
+Mon Sep 30 12:15:47 UTC 2013 - matwey.korni...@gmail.com
+
+- updated to latest master. some minor bugfixes
+
+-------------------------------------------------------------------
+Wed Jun 26 11:50:03 UTC 2013 - matwey.korni...@gmail.com
+
+- add bash autocompletion, rename -devel to -src
+
+-------------------------------------------------------------------
+Wed Jun 26 09:52:45 UTC 2013 - kru...@zib.de
+
+- remove cyclic dependency to erlang-retest
+  (a pre-build version is already bundled with rebar in ./inttest)
+- fix SLE build (hg version is incompatible thus some tests fail)
+
+-------------------------------------------------------------------
+Wed Jun 26 09:29:26 UTC 2013 - kru...@zib.de
+
+- fix package build (require erlang-retest package for %check)
+  This dependency is cyclic, as erlang-retest needs rebar to build
+  normally, here rebar is built and then retest (from git) which
+  is only needed for the tests we don't have access to git from
+  OBS though, try this way (or disable %check).
+
+-------------------------------------------------------------------
+Mon Jun 17 13:08:21 UTC 2013 - speili...@suse.com
+
+- Add %changelog section
+
+-------------------------------------------------------------------
+Fri Apr  5 12:08:29 UTC 2013 - speili...@suse.com
+
+- Fix %rebar and %rebar_compile macros to take further parameters
+
+-------------------------------------------------------------------
+Thu Apr  4 08:30:03 UTC 2013 - speili...@suse.com
+
+- Move rebar-specific macros from erlang package to erlang-rebar
+
+-------------------------------------------------------------------
+Thu Apr  4 07:16:04 UTC 2013 - speili...@suse.com
+
+- Added macros.erlang-rebar, which includes the following RPM macros:
+  + %erlang_rebar
+- Install ebam and priv files
+- Added devel package
+
+-------------------------------------------------------------------
+Wed Apr  3 13:50:36 UTC 2013 - speili...@suse.com
+
+- Rename to erlang-rebar
+- Use mode="disabled" source service and properly create a tarball
+- General cleanup for Factory
+
+-------------------------------------------------------------------
+Sat Oct 06 06:36:08 UTC 2012 - matwey.korni...@gmail.com
+
+- Cleaned up initial version
+
New Changes file:

erlang-rebar.changes: same change

New:
----
  0001-Find-all-deps-locally-first.patch
  0002-Read-vsn-from-file.patch
  _service
  _servicedata
  erlang-rebar-obs.changes
  erlang-rebar-obs.rpmlintrc
  erlang-rebar-obs.spec
  erlang-rebar.changes
  erlang-rebar.rpmlintrc
  erlang-rebar.spec
  erlc_dep_graph-timeout.patch
  macros.erlang-rebar
  no-rebar-deps.patch
  pre_checkin.sh
  rebar-2.6.1+git20151013.5d73a8d.tar.bz2
  spec.in
  tdeps_update-retest.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ erlang-rebar-obs.spec ++++++
#
# spec file for package erlang-rebar-obs
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define obs 1

Name:           erlang-rebar-obs
Version:        2.6.1+git20151013.5d73a8d
Release:        0
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
Summary:        A sophisticated build-tool for Erlang projects that follows OTP 
principles
License:        Apache-2.0
Group:          Development/Tools/Building
Url:            https://github.com/rebar/rebar
Source:         rebar-%{version}.tar.bz2
Source1:        macros.erlang-rebar
Source98:       %{name}.rpmlintrc
Source99:       spec.in
Patch1:         no-rebar-deps.patch
Patch2:         tdeps_update-retest.patch
Patch3:         0001-Find-all-deps-locally-first.patch
Patch4:         0002-Read-vsn-from-file.patch
Patch5:         erlc_dep_graph-timeout.patch
BuildRequires:  erlang >= R13B01
Requires:       erlang >= R13B01
Provides:       rebar = %{version}
Obsoletes:      rebar < %{version}
%if 0%{?obs}
Conflicts:      erlang-rebar
Requires:       this-is-only-for-build-envs
%else
Conflicts:      erlang-rebar-obs
# for 'make test'
BuildRequires:  erlang-reltool
BuildRequires:  erlang-retest
BuildRequires:  git
BuildRequires:  mercurial
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version}
%if 1%{?erlang_libdir:0}
%define erlang_libdir %{_libdir}/erlang/lib
%endif
%endif

%description
rebar is an Erlang build tool that makes it easy to compile and
test Erlang applications, port drivers and releases.

rebar is a self-contained Erlang script, so it's easy to distribute or even
embed directly in a project. Where possible, rebar uses standard Erlang/OTP
conventions for project structures, thus minimizing the amount of build
configuration work. rebar also provides dependency management, enabling
application writers to easily re-use common libraries from a variety of
locations (git, hg, etc).

%package src
Summary:        A sophisticated build-tool for Erlang projects that follows OTP 
principles
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}
Provides:       %{name}-devel = %{version}
Obsoletes:      %{name}-devel < %{version}
%if 0%{?obs}
Conflicts:      erlang-rebar-src
Requires:       this-is-only-for-build-envs
%else
Conflicts:      erlang-rebar-obs-src
%endif

%description src
rebar is an Erlang build tool that makes it easy to compile and
test Erlang applications, port drivers and releases.

%prep
%setup -q -n rebar-%{version}
%patch1 -p1
%patch2 -p1
%if 0%{?obs}
%patch3 -p1
%patch4 -p1
%endif
%patch5 -p1

%build
make
make deps

%install
install -Dm755 rebar %{buildroot}%{_bindir}/rebar
# Install RPM macros:
install -Dm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.erlang-rebar
for dir in include ebin priv src ; do
  install -d %{buildroot}%{erlang_libdir}/rebar-%{mod_ver}/${dir}
  cp -r ${dir}/* %{buildroot}%{erlang_libdir}/rebar-%{mod_ver}/${dir}/
done
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
ln -s %{erlang_libdir}/rebar-%{mod_ver}/priv/shell-completion/bash/rebar 
%{buildroot}%{_sysconfdir}/bash_completion.d/rebar.sh

%check
# test is broken inside OBS environment due to lack of FQDN
rm -rf inttest/ct3
rm -rf inttest/ct_cover
# test is broken due to library path resolution problem
rm -rf inttest/proto_gpb
# rebar is not compatible with hg 1.0.2 delivered by SLE <= 11
# these checks will thus fail -> delete them
%if 0%{?sles_version} > 0 && 0%{?sles_version} <= 11
rm -rf inttest/tdeps1
rm -rf inttest/tdeps2
%endif
%if 0%{?obs}
# do not run tests for erlang-rebar-obs
true
%else
make test
%endif

%files
%defattr(-,root,root)
%doc README.md THANKS LICENSE rebar.config.sample
%{_bindir}/rebar
%config %{_sysconfdir}/rpm/macros.erlang-rebar
%dir %{erlang_libdir}/rebar-%{mod_ver}
%{erlang_libdir}/rebar-%{mod_ver}/ebin
%{erlang_libdir}/rebar-%{mod_ver}/include
%{erlang_libdir}/rebar-%{mod_ver}/priv
%{_sysconfdir}/bash_completion.d/rebar.sh

%files src
%defattr(-,root,root)
%{erlang_libdir}/rebar-%{mod_ver}/src

%changelog
++++++ erlang-rebar.spec ++++++
#
# spec file for package erlang-rebar
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define obs 0

Name:           erlang-rebar
Version:        2.6.1+git20151013.5d73a8d
Release:        0
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
Summary:        A sophisticated build-tool for Erlang projects that follows OTP 
principles
License:        Apache-2.0
Group:          Development/Tools/Building
Url:            https://github.com/rebar/rebar
Source:         rebar-%{version}.tar.bz2
Source1:        macros.erlang-rebar
Source98:       %{name}.rpmlintrc
Source99:       spec.in
Patch1:         no-rebar-deps.patch
Patch2:         tdeps_update-retest.patch
Patch3:         0001-Find-all-deps-locally-first.patch
Patch4:         0002-Read-vsn-from-file.patch
Patch5:         erlc_dep_graph-timeout.patch
BuildRequires:  erlang >= R13B01
Requires:       erlang >= R13B01
Provides:       rebar = %{version}
Obsoletes:      rebar < %{version}
%if 0%{?obs}
Conflicts:      erlang-rebar
Requires:       this-is-only-for-build-envs
%else
Conflicts:      erlang-rebar-obs
# for 'make test'
BuildRequires:  erlang-reltool
BuildRequires:  erlang-retest
BuildRequires:  git
BuildRequires:  mercurial
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version}
%if 1%{?erlang_libdir:0}
%define erlang_libdir %{_libdir}/erlang/lib
%endif
%endif

%description
rebar is an Erlang build tool that makes it easy to compile and
test Erlang applications, port drivers and releases.

rebar is a self-contained Erlang script, so it's easy to distribute or even
embed directly in a project. Where possible, rebar uses standard Erlang/OTP
conventions for project structures, thus minimizing the amount of build
configuration work. rebar also provides dependency management, enabling
application writers to easily re-use common libraries from a variety of
locations (git, hg, etc).

%package src
Summary:        A sophisticated build-tool for Erlang projects that follows OTP 
principles
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}
Provides:       %{name}-devel = %{version}
Obsoletes:      %{name}-devel < %{version}
%if 0%{?obs}
Conflicts:      erlang-rebar-src
Requires:       this-is-only-for-build-envs
%else
Conflicts:      erlang-rebar-obs-src
%endif

%description src
rebar is an Erlang build tool that makes it easy to compile and
test Erlang applications, port drivers and releases.

%prep
%setup -q -n rebar-%{version}
%patch1 -p1
%patch2 -p1
%if 0%{?obs}
%patch3 -p1
%patch4 -p1
%endif
%patch5 -p1

%build
make
make deps

%install
install -Dm755 rebar %{buildroot}%{_bindir}/rebar
# Install RPM macros:
install -Dm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.erlang-rebar
for dir in include ebin priv src ; do
  install -d %{buildroot}%{erlang_libdir}/rebar-%{mod_ver}/${dir}
  cp -r ${dir}/* %{buildroot}%{erlang_libdir}/rebar-%{mod_ver}/${dir}/
done
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
ln -s %{erlang_libdir}/rebar-%{mod_ver}/priv/shell-completion/bash/rebar 
%{buildroot}%{_sysconfdir}/bash_completion.d/rebar.sh

%check
# test is broken inside OBS environment due to lack of FQDN
rm -rf inttest/ct3
rm -rf inttest/ct_cover
# test is broken due to library path resolution problem
rm -rf inttest/proto_gpb
# rebar is not compatible with hg 1.0.2 delivered by SLE <= 11
# these checks will thus fail -> delete them
%if 0%{?sles_version} > 0 && 0%{?sles_version} <= 11
rm -rf inttest/tdeps1
rm -rf inttest/tdeps2
%endif
%if 0%{?obs}
# do not run tests for erlang-rebar-obs
true
%else
make test
%endif

%files
%defattr(-,root,root)
%doc README.md THANKS LICENSE rebar.config.sample
%{_bindir}/rebar
%config %{_sysconfdir}/rpm/macros.erlang-rebar
%dir %{erlang_libdir}/rebar-%{mod_ver}
%{erlang_libdir}/rebar-%{mod_ver}/ebin
%{erlang_libdir}/rebar-%{mod_ver}/include
%{erlang_libdir}/rebar-%{mod_ver}/priv
%{_sysconfdir}/bash_completion.d/rebar.sh

%files src
%defattr(-,root,root)
%{erlang_libdir}/rebar-%{mod_ver}/src

%changelog
++++++ 0001-Find-all-deps-locally-first.patch ++++++
>From 19a4fb0ecb48a4cbc48626133f54da9cd17962ba Mon Sep 17 00:00:00 2001
From: "Matwey V. Kornilov" <matwey.korni...@gmail.com>
Date: Wed, 16 Apr 2014 20:22:56 +0400
Subject: [PATCH 1/2] Find all deps locally first.

In Open Build Service we don't have internet access, we have to find all the 
deps locally.
---
 src/rebar_deps.erl | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

Index: rebar-2.6.1+git20150928.365ac64/src/rebar_deps.erl
===================================================================
--- rebar-2.6.1+git20150928.365ac64.orig/src/rebar_deps.erl
+++ rebar-2.6.1+git20150928.365ac64/src/rebar_deps.erl
@@ -373,27 +373,20 @@ find_deps(_Config, _Mode, [Other | _Rest
     ?ABORT("Invalid dependency specification ~p in ~s\n",
            [Other, rebar_utils:get_cwd()]).
 
+%%
+%% In Open Build Service we don't have internet access,
+%% we have to find all the deps locally.
+%%
 find_dep(Config, Dep) ->
-    %% Find a dep based on its source,
-    %% e.g. {git, "https://github.com/mochi/mochiweb.git";, "HEAD"}
-    %% Deps with a source must be found (or fetched) locally.
-    %% Those without a source may be satisfied from lib dir (get_lib_dir).
     find_dep(Config, Dep, Dep#dep.source).
 
-find_dep(Config, Dep, undefined) ->
-    %% 'source' is undefined.  If Dep is not satisfied locally,
-    %% go ahead and find it amongst the lib_dir's.
+find_dep(Config, Dep, Source) ->
     case find_dep_in_dir(Config, Dep, get_deps_dir(Config, Dep#dep.app)) of
         {_Config1, {avail, _Dir}} = Avail ->
             Avail;
         {Config1, {missing, _}} ->
             find_dep_in_dir(Config1, Dep, get_lib_dir(Dep#dep.app))
-    end;
-find_dep(Config, Dep, _Source) ->
-    %% _Source is defined.  Regardless of what it is, we must find it
-    %% locally satisfied or fetch it from the original source
-    %% into the project's deps
-    find_dep_in_dir(Config, Dep, get_deps_dir(Config, Dep#dep.app)).
+    end.
 
 find_dep_in_dir(Config, _Dep, {false, Dir}) ->
     {Config, {missing, Dir}};
++++++ 0002-Read-vsn-from-file.patch ++++++
>From fdf0a67adaa06a36d8c0b619c7c265ba7dad5a88 Mon Sep 17 00:00:00 2001
From: "Matwey V. Kornilov" <matwey.korni...@gmail.com>
Date: Wed, 16 Apr 2014 20:25:30 +0400
Subject: [PATCH 2/2] Read vsn from file.

In Open Build Service we don't have git history, all we have is single one 
revision.
---
 src/rebar_utils.erl | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Index: rebar-2.6.1+git20150928.365ac64/src/rebar_utils.erl
===================================================================
--- rebar-2.6.1+git20150928.365ac64.orig/src/rebar_utils.erl
+++ rebar-2.6.1+git20150928.365ac64/src/rebar_utils.erl
@@ -628,12 +628,13 @@ vcs_vsn_1(Vcs, Dir) ->
             end
     end.
 
-vcs_vsn_cmd(git)    -> "git describe --always --tags";
-vcs_vsn_cmd(p4)     -> "echo #head";
-vcs_vsn_cmd(hg)     -> "hg identify -i";
-vcs_vsn_cmd(bzr)    -> "bzr revno";
-vcs_vsn_cmd(svn)    -> "svnversion";
-vcs_vsn_cmd(fossil) -> "fossil info";
+vcs_vsn_cmd(git)    -> vcs_vsn_cmd(obs); 
+vcs_vsn_cmd(p4)     -> vcs_vsn_cmd(obs);
+vcs_vsn_cmd(hg)     -> vcs_vsn_cmd(obs);
+vcs_vsn_cmd(bzr)    -> vcs_vsn_cmd(obs);
+vcs_vsn_cmd(svn)    -> vcs_vsn_cmd(obs);
+vcs_vsn_cmd(fossil) -> vcs_vsn_cmd(obs);
+vcs_vsn_cmd(obs)    -> "cat .rebar_vsn_obs";
 vcs_vsn_cmd({cmd, _Cmd}=Custom) -> Custom;
 vcs_vsn_cmd(Version) when is_list(Version) -> {plain, Version};
 vcs_vsn_cmd(_) -> unknown.
++++++ _service ++++++
<services>
  <service name="tar_scm" mode="disabled">
    <param name="url">git://github.com/rebar/rebar.git</param>
    <param name="scm">git</param>
    <param name="versionformat">@PARENT_TAG@+git%cd.%h</param>
    <param name="changesgenerate">enable</param>
  </service>
  <service name="recompress" mode="disabled">
    <param name="file">rebar-*.tar</param>
    <param name="compression">bz2</param>
  </service>
  <service name="set_version" mode="disabled">
    <param name="basename">rebar</param>
  </service>
</services>

++++++ _servicedata ++++++
<servicedata>
<service name="tar_scm">
            <param name="url">git://github.com/rebar/rebar.git</param>
          <param 
name="changesrevision">5d73a8d8e7c9d56231970ab775231a7a87bcd14a</param></service></servicedata>++++++
 erlang-rebar-obs.rpmlintrc ++++++
addFilter("devel-file-in-non-devel-package *")
++++++ erlang-rebar.rpmlintrc ++++++
addFilter("devel-file-in-non-devel-package *")
++++++ erlc_dep_graph-timeout.patch ++++++
Index: rebar-2.6.1+git20151013.5d73a8d/inttest/erlc_dep_graph/retest.config
===================================================================
--- /dev/null
+++ rebar-2.6.1+git20151013.5d73a8d/inttest/erlc_dep_graph/retest.config
@@ -0,0 +1 @@
+{timeout, 120000}.
++++++ macros.erlang-rebar ++++++
# Macros for erlang-rebar module building.
#
# Copyright: (c) 2013 Sascha Peilicke <sasc...@gmx.de>
#

# SUSE-style macros:

%__rebar       /usr/bin/rebar

%rebar() \
CFLAGS="${CFLAGS:-%optflags}" \
CXXFLAGS="${CXXFLAGS:-%optflags}" \
FFLAGS="${FFLAGS:-%optflags}" %{__rebar} %* \
%{nil}

%rebar_compile() \
%{rebar} compile -v %* \
%{nil}


# Fedora compat:

%__rebar_compile %{rebar_compile}
++++++ no-rebar-deps.patch ++++++
Index: rebar-2.6.1+git20150928.365ac64/Makefile
===================================================================
--- rebar-2.6.1+git20150928.365ac64.orig/Makefile
+++ rebar-2.6.1+git20150928.365ac64/Makefile
@@ -1,7 +1,7 @@
 .PHONY: clean xref_warnings deps test test_eunit test_inttest
 
 REBAR=$(PWD)/rebar
-RETEST=$(PWD)/deps/retest/retest
+RETEST=/usr/bin/retest
 LOG_LEVEL?=debug
 RT_TARGETS?=inttest
 
@@ -35,7 +35,6 @@ binary: clean all
 
 deps:
        @REBAR_EXTRA_DEPS=1 $(REBAR) get-deps
-       @(cd deps/retest && $(REBAR) compile escriptize)
 
 test: test_eunit test_inttest
 
Index: rebar-2.6.1+git20150928.365ac64/rebar.config.script
===================================================================
--- rebar-2.6.1+git20150928.365ac64.orig/rebar.config.script
+++ rebar-2.6.1+git20150928.365ac64/rebar.config.script
@@ -1,7 +1,7 @@
 %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
 %% ex: ts=4 sw=4 ft=erlang et
 
-ExtraDeps = [{retest, ".*", {git, "git://github.com/dizzyd/retest.git"}}],
+ExtraDeps = [],
 
 case os:getenv("REBAR_EXTRA_DEPS") of
     false ->
++++++ pre_checkin.sh ++++++
#!/bin/sh

cp erlang-rebar.changes erlang-rebar-obs.changes
cp erlang-rebar.rpmlintrc erlang-rebar-obs.rpmlintrc
m4 -D OBS=0 -D PKGNAME=erlang-rebar spec.in > erlang-rebar.spec
m4 -D OBS=1 -D PKGNAME=erlang-rebar-obs spec.in > erlang-rebar-obs.spec
osc service disabledrun
osc service localrun format_spec_file

++++++ spec.in ++++++
#
# spec file for package erlang-rebar
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define obs OBS

Name:           PKGNAME
Version:        2.6.1+git20151013.5d73a8d
Release:        0
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
Summary:        A sophisticated build-tool for Erlang projects that follows OTP 
principles
License:        Apache-2.0
Group:          Development/Tools/Building
Url:            https://github.com/rebar/rebar
Source:         rebar-%{version}.tar.bz2
Source1:        macros.erlang-rebar
Source98:       %{name}.rpmlintrc
Source99:       spec.in
Patch1:         no-rebar-deps.patch
Patch2:         tdeps_update-retest.patch
Patch3:         0001-Find-all-deps-locally-first.patch
Patch4:         0002-Read-vsn-from-file.patch
Patch5:         erlc_dep_graph-timeout.patch
BuildRequires:  erlang >= R13B01
Requires:       erlang >= R13B01
Provides:       rebar = %{version}
Obsoletes:      rebar < %{version}
%if 0%{?obs}
Conflicts:      erlang-rebar
Requires:       this-is-only-for-build-envs
%else
Conflicts:      erlang-rebar-obs
# for 'make test'
BuildRequires:  erlang-reltool
BuildRequires:  erlang-retest
BuildRequires:  git
BuildRequires:  mercurial
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version}
%if 1%{?erlang_libdir:0}
%define erlang_libdir %{_libdir}/erlang/lib
%endif
%endif

%description
rebar is an Erlang build tool that makes it easy to compile and
test Erlang applications, port drivers and releases.

rebar is a self-contained Erlang script, so it's easy to distribute or even
embed directly in a project. Where possible, rebar uses standard Erlang/OTP
conventions for project structures, thus minimizing the amount of build
configuration work. rebar also provides dependency management, enabling
application writers to easily re-use common libraries from a variety of
locations (git, hg, etc).

%package src
Summary:        A sophisticated build-tool for Erlang projects that follows OTP 
principles
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}
Provides:       %{name}-devel = %{version}
Obsoletes:      %{name}-devel < %{version}
%if 0%{?obs}
Conflicts:      erlang-rebar-src
Requires:       this-is-only-for-build-envs
%else
Conflicts:      erlang-rebar-obs-src
%endif

%description src
rebar is an Erlang build tool that makes it easy to compile and
test Erlang applications, port drivers and releases.

%prep
%setup -q -n rebar-%{version}
%patch1 -p1
%patch2 -p1
%if 0%{?obs}
%patch3 -p1
%patch4 -p1
%endif
%patch5 -p1

%build
make
make deps

%install
install -Dm755 rebar %{buildroot}%{_bindir}/rebar
# Install RPM macros:
install -Dm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.erlang-rebar
for dir in include ebin priv src ; do
  install -d %{buildroot}%{erlang_libdir}/rebar-%{mod_ver}/${dir}
  cp -r ${dir}/* %{buildroot}%{erlang_libdir}/rebar-%{mod_ver}/${dir}/
done
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
ln -s %{erlang_libdir}/rebar-%{mod_ver}/priv/shell-completion/bash/rebar 
%{buildroot}%{_sysconfdir}/bash_completion.d/rebar.sh

%check
# test is broken inside OBS environment due to lack of FQDN
rm -rf inttest/ct3
rm -rf inttest/ct_cover
# test is broken due to library path resolution problem
rm -rf inttest/proto_gpb
# rebar is not compatible with hg 1.0.2 delivered by SLE <= 11
# these checks will thus fail -> delete them
%if 0%{?sles_version} > 0 && 0%{?sles_version} <= 11
rm -rf inttest/tdeps1
rm -rf inttest/tdeps2
%endif
%if 0%{?obs}
# do not run tests for erlang-rebar-obs
true
%else
make test
%endif

%files
%defattr(-,root,root)
%doc README.md THANKS LICENSE rebar.config.sample
%{_bindir}/rebar
%config %{_sysconfdir}/rpm/macros.erlang-rebar
%dir %{erlang_libdir}/rebar-%{mod_ver}
%{erlang_libdir}/rebar-%{mod_ver}/ebin
%{erlang_libdir}/rebar-%{mod_ver}/include
%{erlang_libdir}/rebar-%{mod_ver}/priv
%{_sysconfdir}/bash_completion.d/rebar.sh

%files src
%defattr(-,root,root)
%{erlang_libdir}/rebar-%{mod_ver}/src

%changelog
++++++ tdeps_update-retest.patch ++++++
Index: rebar-2.6.1+git20150928.365ac64/inttest/tdeps_update/retest.config
===================================================================
--- /dev/null
+++ rebar-2.6.1+git20150928.365ac64/inttest/tdeps_update/retest.config
@@ -0,0 +1 @@
+{timeout, 120000}.
Index: 
rebar-2.6.1+git20150928.365ac64/inttest/code_path_no_recurse/retest.config
===================================================================
--- /dev/null
+++ rebar-2.6.1+git20150928.365ac64/inttest/code_path_no_recurse/retest.config
@@ -0,0 +1 @@
+{timeout, 120000}.
Index: rebar-2.6.1+git20150928.365ac64/inttest/erlc/retest.config
===================================================================
--- /dev/null
+++ rebar-2.6.1+git20150928.365ac64/inttest/erlc/retest.config
@@ -0,0 +1 @@
+{timeout, 120000}.

Reply via email to