2013-04-03 13:37:28 +00:00
|
|
|
#
|
|
|
|
# spec file for package erlang-eper
|
|
|
|
#
|
|
|
|
# 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-eper
|
|
|
|
Version: 0.0.0+git.1358630895.9c7be62
|
|
|
|
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
|
|
|
|
Release: 0
|
|
|
|
License: MIT
|
2013-04-03 13:49:44 +00:00
|
|
|
Summary: Erlang library for building lightweight HTTP servers
|
2013-04-03 13:37:28 +00:00
|
|
|
Url: http://tonyg.github.com/erlang-eper/
|
2013-04-03 13:49:44 +00:00
|
|
|
Group: Development/Libraries/Other
|
2013-04-03 13:37:28 +00:00
|
|
|
Source: eper-%{version}.tar.gz
|
2013-04-03 13:49:44 +00:00
|
|
|
BuildRequires: erlang-rebar
|
2013-04-03 13:37:28 +00:00
|
|
|
Requires: erlang
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
MochiWeb is an Erlang library for building lightweight HTTP servers.
|
|
|
|
|
2013-04-04 12:15:26 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Erlang library for building lightweight HTTP servers
|
2013-04-03 13:37:28 +00:00
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}
|
2013-04-04 12:15:26 +00:00
|
|
|
Provides: %{name}-src = %{version}
|
|
|
|
#TODO: Change back to '<' after next version update:
|
|
|
|
Obsoletes: %{name}-src <= %{version}
|
2013-04-03 13:37:28 +00:00
|
|
|
|
2013-04-04 12:15:26 +00:00
|
|
|
%description devel
|
2013-04-03 13:37:28 +00:00
|
|
|
MochiWeb is an Erlang library for building lightweight HTTP servers
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n eper-%{version}
|
|
|
|
|
|
|
|
%build
|
2013-04-04 12:15:26 +00:00
|
|
|
%rebar compile escriptize
|
2013-04-03 13:37:28 +00:00
|
|
|
|
|
|
|
%install
|
2013-04-04 12:15:26 +00:00
|
|
|
for dir in ebin priv src ; do
|
|
|
|
install -d %{buildroot}%{erlang_libdir}/eper-%{mod_ver}/${dir}
|
|
|
|
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/eper-%{mod_ver}/${dir}/
|
|
|
|
done
|
2013-04-03 13:37:28 +00:00
|
|
|
|
|
|
|
%files
|
2013-04-03 13:49:44 +00:00
|
|
|
%defattr(-,root,root)
|
2013-04-03 13:37:28 +00:00
|
|
|
%doc README COPYING
|
|
|
|
%dir %{erlang_libdir}/eper-%{mod_ver}
|
|
|
|
%{erlang_libdir}/eper-%{mod_ver}/ebin
|
2013-04-04 12:15:26 +00:00
|
|
|
%{erlang_libdir}/eper-%{mod_ver}/priv
|
2013-04-03 13:37:28 +00:00
|
|
|
|
2013-04-04 12:15:26 +00:00
|
|
|
%files devel
|
2013-04-03 13:37:28 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{erlang_libdir}/eper-%{mod_ver}/src
|
2013-06-17 13:08:32 +00:00
|
|
|
|
|
|
|
%changelog
|