Marked version 0.0.1.
authorStanislaw Klekot <dozzie@jarowit.net>
Thu, 13 Feb 2014 18:33:47 +0000 (19:33 +0100)
committerStanislaw Klekot <dozzie@jarowit.net>
Thu, 13 Feb 2014 18:33:47 +0000 (19:33 +0100)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/dh-rebar.conf [new file with mode: 0644]
debian/erlang-eni-doc.install [new file with mode: 0644]
debian/erlang-eni.docs [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
redhat/erlang-eni.spec [new file with mode: 0644]
src/eni.app.src
src/overview.edoc

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..1dc2e99
--- /dev/null
@@ -0,0 +1,5 @@
+erlang-eni (0.0.1-1) stable; urgency=low
+
+  * Initial release.
+
+ -- Stanislaw Klekot <dozzie@jarowit.net>  Thu, 13 Feb 2014 19:33:18 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..c8f1f81
--- /dev/null
@@ -0,0 +1,20 @@
+Source: erlang-eni
+Maintainer: Stanislaw Klekot <dozzie@jarowit.net>
+Section: erlang
+Priority: extra
+Build-Depends: debhelper (>> 7.0.0), erlang-base, erlang-dev
+
+Package: erlang-eni
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, erlang-base
+Recommends: erlang-x11 | erlang-nox
+Description: INI-like configuration loader for Erlang
+ INI-like configuration loader for Erlang
+
+Package: erlang-eni-doc
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: INI-like configuration loader for Erlang - API documentation
+ INI-like configuration loader for Erlang
+ .
+ This package contains API documentation generated out of ENI's sources.
diff --git a/debian/dh-rebar.conf b/debian/dh-rebar.conf
new file mode 100644 (file)
index 0000000..ea1e5d7
--- /dev/null
@@ -0,0 +1,6 @@
+PKG_NAME=
+PKG_VERSION=
+EXEC_REBAR_COMMANDS=compile
+REBAR_LIB_DIR=priv
+REBAR_BIN_DIR=ebin
+REBAR_INCLUDE_DIR=include
diff --git a/debian/erlang-eni-doc.install b/debian/erlang-eni-doc.install
new file mode 100644 (file)
index 0000000..e9a7a3a
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/doc/erlang-eni/API
diff --git a/debian/erlang-eni.docs b/debian/erlang-eni.docs
new file mode 100644 (file)
index 0000000..5ecd9c6
--- /dev/null
@@ -0,0 +1 @@
+COPYING
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..eb8b6e8
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+include /usr/share/dh-rebar/make/dh-rebar.Makefile
+
+%:
+       dh $@
+
+install-doc:
+       mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/erlang-eni
+       cp -R doc $(CURDIR)/debian/tmp/usr/share/doc/erlang-eni/API
+
+override_dh_auto_install: install install-doc
+
+override_dh_auto_build:
+       rebar compile
+       rebar doc
+
+override_dh_auto_test:
+       : skipped
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/redhat/erlang-eni.spec b/redhat/erlang-eni.spec
new file mode 100644 (file)
index 0000000..8b0618b
--- /dev/null
@@ -0,0 +1,90 @@
+%define _app     eni
+%define _version 0.0.1
+%define _release 1
+%define _packager Stanislaw Klekot <dozzie@jarowit.net>
+
+%define _erlang_lib_dir %(erl -noshell -eval "io:fwrite(code:lib_dir())" -s erlang halt)
+
+Summary: INI-like configuration loader for Erlang
+Name: erlang-%{_app}
+Version: %{_version}
+Release: %{_release}%{?dist}
+License: Apache 2.0
+Group: Development/Tools
+URL: http://dozzie.jarowit.net/trac/wiki/eni
+Source0: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: erlang
+BuildArch: noarch
+BuildRequires: erlang-devel
+BuildRequires: rebar
+
+%define _app_libdir  %{_erlang_lib_dir}/%{_app}-%{version}
+%define _app_ebin    %{_app_libdir}/ebin
+%define _app_priv    %{_app_libdir}/priv
+%define _app_include %{_app_libdir}/include
+%define _app_src     %{_app_libdir}/src
+%define _app_doc     %{_app_libdir}/doc
+
+%description
+INI-like configuration loader for Erlang.
+
+%package doc
+Summary: INI-like configuration loader for Erlang - API documentation
+Group: Documentation
+
+%description doc
+INI-like configuration loader for Erlang.
+
+This package contains API documentation generated out of ENI's sources.
+
+%package source
+Summary: INI-like configuration loader for Erlang - sources
+Group: Development/Languages
+
+%description source
+INI-like configuration loader for Erlang.
+
+This package contains ENI sources.
+
+%prep
+%setup -q
+
+%build
+rebar compile
+rebar doc
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+mkdir -p $RPM_BUILD_ROOT%{_app_libdir}
+mkdir    $RPM_BUILD_ROOT%{_app_ebin}
+#mkdir    $RPM_BUILD_ROOT%{_app_priv}
+#mkdir    $RPM_BUILD_ROOT%{_app_include}
+mkdir    $RPM_BUILD_ROOT%{_app_src}
+mkdir    $RPM_BUILD_ROOT%{_app_doc}
+cp    ebin/*.app ebin/*.beam $RPM_BUILD_ROOT%{_app_ebin}
+#cp -r priv/*                 $RPM_BUILD_ROOT%{_app_priv}
+#cp -r include/*              $RPM_BUILD_ROOT%{_app_include}
+cp -r src/*                  $RPM_BUILD_ROOT%{_app_src}
+cp -r doc/*                  $RPM_BUILD_ROOT%{_app_doc}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%exclude %{_app_doc}
+%exclude %{_app_src}
+%{_app_libdir}
+
+%files doc
+%defattr(-,root,root)
+%{_app_doc}
+
+%files source
+%defattr(-,root,root)
+%{_app_src}
+
+#%changelog
index 940a3f5..73e2c5f 100644 (file)
@@ -1,6 +1,6 @@
 {application, eni, [
   {description, "INI file parser"},
-  {vsn, "0.0.0"},
+  {vsn, "0.0.1"},
   {registered, []},
   {applications, [kernel, stdlib]}
 ]}.
index 950cca7..7a6f29e 100644 (file)
@@ -1,5 +1,5 @@
 @author Stanislaw Klekot <dozzie@jarowit.net>
-@version 0.0.0
+@version 0.0.1
 @title Configuration file parser for Erlang.
 @doc