77 lines
2.9 KiB
RPMSpec
77 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package erlang-rebar_lock_deps_plugin
|
|
#
|
|
# Copyright (c) 2013 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/
|
|
#
|
|
|
|
Name: erlang-rebar_lock_deps_plugin
|
|
Version: 0.0.0+git.1357249370.c35d2e1
|
|
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
|
|
Release: 0
|
|
License: MIT
|
|
Summary: Rebar Plugin that Generates Locked Dependencies for Rebar Projects
|
|
Url: https://github.com/seth/rebar_lock_deps_plugin/
|
|
Group: Development/Libraries/Other
|
|
Source: rebar_lock_deps_plugin-%{version}.tar.gz
|
|
BuildRequires: erlang-rebar
|
|
Requires: erlang
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Use this plugin to create reproducible builds for a rebar project. Generate a
|
|
rebar.config.lock file by running the command from the top level directory of
|
|
your project like this: "rebar lock-deps"
|
|
|
|
The generated rebar.config.lock file lists every dependency of the project and
|
|
locks it at the git revision found in the deps directory. A clean build using
|
|
the lock file (rebar -C rebar.config.lock) will pull all dependencies as found
|
|
at the time of generation.
|
|
|
|
%package devel
|
|
Summary: Rebar Plugin that Generates Locked Dependencies for Rebar Projects
|
|
Group: Development/Libraries/Other
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
Use this plugin to create reproducible builds for a rebar project. Generate a
|
|
rebar.config.lock file by running the command from the top level directory of
|
|
your project like this: "rebar lock-deps"
|
|
|
|
The generated rebar.config.lock file lists every dependency of the project and
|
|
locks it at the git revision found in the deps directory. A clean build using
|
|
the lock file (rebar -C rebar.config.lock) will pull all dependencies as found
|
|
at the time of generation.
|
|
|
|
%prep
|
|
%setup -n rebar_lock_deps_plugin-%{version}
|
|
|
|
%build
|
|
%rebar compile
|
|
|
|
%install
|
|
for dir in ebin src ; do
|
|
install -d %{buildroot}%{erlang_libdir}/rebar_lock_deps_plugin-%{mod_ver}/${dir}
|
|
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/rebar_lock_deps_plugin-%{mod_ver}/${dir}/
|
|
done
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.md LICENSE
|
|
%dir %{erlang_libdir}/rebar_lock_deps_plugin-%{mod_ver}
|
|
%{erlang_libdir}/rebar_lock_deps_plugin-%{mod_ver}/ebin
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{erlang_libdir}/rebar_lock_deps_plugin-%{mod_ver}/src
|