2013-04-05 11:58:40 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package erlang-webmachine
|
|
|
|
|
#
|
|
|
|
|
# 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-webmachine
|
2013-04-05 12:19:06 +00:00
|
|
|
|
Version: 1.10.0+git.1364703509.d705a49
|
2013-04-05 11:58:40 +00:00
|
|
|
|
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
|
|
|
|
|
Release: 0
|
2013-04-26 14:46:58 +00:00
|
|
|
|
License: Apache-2.0
|
2013-04-05 11:58:40 +00:00
|
|
|
|
Summary: A REST-based system for building web applications
|
|
|
|
|
Url: https://github.com/basho/webmachine
|
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
Source: webmachine-%{version}.tar.gz
|
2013-04-05 12:19:06 +00:00
|
|
|
|
Patch0: webmachine-relaxed-mochiweb-dep.patch
|
2013-06-26 12:06:10 +00:00
|
|
|
|
Patch1: no-werror.patch
|
2013-04-05 11:58:40 +00:00
|
|
|
|
BuildRequires: erlang-rebar
|
2013-04-05 12:19:06 +00:00
|
|
|
|
BuildRequires: erlang-mochiweb
|
2013-04-05 11:58:40 +00:00
|
|
|
|
Requires: erlang
|
2013-04-05 12:19:06 +00:00
|
|
|
|
Requires: erlang-mochiweb
|
2013-04-05 11:58:40 +00:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Webmachine is an application layer that adds HTTP semantic awareness on top of
|
|
|
|
|
the excellent bit-pushing and HTTP syntax-management provided by mochiweb, and
|
|
|
|
|
provides a simple and clean way to connect that to your application’s behavior.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -n webmachine-%{version}
|
2013-04-05 12:19:06 +00:00
|
|
|
|
%patch0 -p1
|
2013-06-26 12:06:10 +00:00
|
|
|
|
%patch1 -p1
|
|
|
|
|
chmod -x priv/trace/wmtrace.js priv/trace/wmtrace.css
|
2013-04-05 11:58:40 +00:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%rebar compile
|
|
|
|
|
|
|
|
|
|
%install
|
2013-04-26 14:46:58 +00:00
|
|
|
|
for dir in ebin priv include scripts ; do
|
2013-04-05 11:58:40 +00:00
|
|
|
|
install -d %{buildroot}%{erlang_libdir}/webmachine-%{mod_ver}/${dir}
|
|
|
|
|
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/webmachine-%{mod_ver}/${dir}/
|
|
|
|
|
done
|
|
|
|
|
|
2013-04-05 12:51:27 +00:00
|
|
|
|
%check
|
|
|
|
|
%rebar ct
|
|
|
|
|
|
2013-04-05 11:58:40 +00:00
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2013-04-05 12:19:06 +00:00
|
|
|
|
%doc README.org LICENSE
|
2013-04-05 11:58:40 +00:00
|
|
|
|
%dir %{erlang_libdir}/webmachine-%{mod_ver}
|
|
|
|
|
%{erlang_libdir}/webmachine-%{mod_ver}/ebin
|
|
|
|
|
%{erlang_libdir}/webmachine-%{mod_ver}/priv
|
2013-04-26 14:46:58 +00:00
|
|
|
|
%{erlang_libdir}/webmachine-%{mod_ver}/include
|
|
|
|
|
%{erlang_libdir}/webmachine-%{mod_ver}/scripts
|
2013-04-05 11:58:40 +00:00
|
|
|
|
|
2013-06-17 13:14:48 +00:00
|
|
|
|
%changelog
|