Permalink
Browse files

add deps for openacd

  • Loading branch information...
1 parent 549867b commit 54b6134f393e0a6b72d400ae9076442890aa369d @ezuce-admin ezuce-admin committed Jan 17, 2013
View
@@ -0,0 +1,18 @@
+lib += erlang-cowboy
+
+erlang-cowboy_VER = 0.6.1
+erlang-cowboy_GITREF = af07e04
+erlang-cowboy_SRPM_DEFS = --define "gitref $(erlang-cowboy_GITREF)"
+erlang-cowboy_RPM_DEFS = $(erlang-cowboy_SRPM_DEFS)
+erlang-cowboy_REV = 1
+erlang-cowboy_SPEC = $(SRC)/$(PROJ)/erlang-cowboy.spec
+erlang-cowboy_TARBALL = extend-cowboy-$(erlang-cowboy_VER)-g$(erlang-cowboy_GITREF).tar.gz
+erlang-cowboy_SOURCES = $(erlang-cowboy_TARBALL)
+erlang-cowboy_SRPM = erlang-cowboy-$(erlang-cowboy_VER)-$(erlang-cowboy_REV)$(RPM_DIST).g$(erlang-cowboy_GITREF).src.rpm
+
+erlang-cowboy.autoreconf erlang-cowboy.configure:;
+erlang-cowboy.dist : $(DOWNLOAD_LIB_CACHE)/$(erlang-cowboy_TARBALL);
+
+# Helpful for package maintainer when you want to pull in new changes from erlang-cowboy project
+$(DOWNLOAD_LIB_CACHE)/$(erlang-cowboy_TARBALL) :
+ wget -O $(DOWNLOAD_LIB_CACHE)/$(erlang-cowboy_TARBALL) --content-disposition https://github.com/extend/cowboy/tarball/$(erlang-cowboy_GITREF)
@@ -0,0 +1,54 @@
+%global realname cowboy
+%global upstream extend
+%global debug_package %{nil}
+
+Name: erlang-%{realname}
+Version: 0.6.1
+Release: 1%{?dist}.g%{gitref}
+Summary: A small, fast and modular HTTP server written in Erlang
+Group: Development/Libraries
+License: Freely redistributable without restriction
+URL: https://github.com/extend/cowboy
+Source0: %{upstream}-%{realname}-%{version}-g%{gitref}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires: erlang-rebar
+Requires: erlang-erts >= R14B
+Requires: erlang-kernel >= R14B
+Requires: erlang-stdlib >= R14B
+
+
+%description
+Cowboy is a small, fast and modular HTTP server written in Erlang
+
+
+%prep
+%setup -q -n %{upstream}-%{realname}-%{gitref}
+
+%build
+rebar compile -v
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+mkdir -p %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/include
+install -m 644 ebin/%{realname}.app %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -m 644 ebin/*.beam %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -m 644 include/http.hrl %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/include
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/include
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/*.beam
+%{_libdir}/erlang/lib/%{realname}-%{version}/include/*.hrl
+
+%changelog
+* Mon Nov 26 2012 Jan Vincent Liwanag <jvliwanag@gmail.com>
+- Initial release
View
@@ -0,0 +1,20 @@
+lib += erlang-ej
+
+erlang-ej_VER = 0.0.2
+erlang-ej_GITREF = be22e1a
+erlang-ej_SRPM_DEFS = --define "gitref $(erlang-ej_GITREF)"
+erlang-ej_RPM_DEFS = $(erlang-ej_SRPM_DEFS)
+erlang-ej_REV = 1
+erlang-ej_SPEC = $(SRC)/$(PROJ)/erlang-ej.spec
+erlang-ej_TARBALL = seth-ej-$(erlang-ej_VER)-0-g$(erlang-ej_GITREF).tar.gz
+erlang-ej_SOURCES = \
+ $(erlang-ej_TARBALL) \
+ $(SRC)/$(PROJ)/erlang-ej-0001-Replace-git-based-app-vsn.patch
+erlang-ej_SRPM = erlang-ej-$(erlang-ej_VER)-$(erlang-ej_REV)$(RPM_DIST).g$(erlang-ej_GITREF).src.rpm
+
+erlang-ej.autoreconf erlang-ej.configure:;
+erlang-ej.dist : $(erlang-ej_TARBALL);
+
+# Helpful for package maintainer when you want to pull in new changes from erlang-ej project
+$(erlang-ej_TARBALL) :
+ wget -O $(DOWNLOAD_LIB_CACHE)/$(erlang-ej_TARBALL) --content-disposition https://github.com/seth/ej/tarball/$(erlang-ej_GITREF)
@@ -0,0 +1,26 @@
+From fb88866b276cfb99d761dbea4225c6477186a1ec Mon Sep 17 00:00:00 2001
+From: Jan Vincent Liwanag <jvliwanag@gmail.com>
+Date: Mon, 26 Nov 2012 18:51:26 +0800
+Subject: [PATCH] Replace git-based app vsn
+
+Using {vsn, git} prevents building from tarball
+---
+ src/ej.app.src | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/ej.app.src b/src/ej.app.src
+index 4e91219..bbf104d 100644
+--- a/src/ej.app.src
++++ b/src/ej.app.src
+@@ -1,7 +1,7 @@
+ {application, ej,
+ [
+ {description, ""},
+- {vsn, git},
++ {vsn, "0.0.2"},
+ {registered, []},
+ {applications, [
+ kernel,
+--
+1.8.0
+
View
@@ -0,0 +1,58 @@
+%global realname ej
+%global upstream seth
+%global debug_package %{nil}
+%global patchnumber 0
+
+
+Name: erlang-%{realname}
+Version: 0.0.2
+Release: 1%{?dist}.g%{gitref}
+Summary: An Erlang JSON helper library
+Group: Development/Libraries
+License: Freely redistributable without restriction
+URL: https://github.com/seth/ej
+Source0: %{upstream}-%{realname}-%{version}-%{patchnumber}-g%{gitref}.tar.gz
+Patch1: erlang-ej-0001-Replace-git-based-app-vsn.patch
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires: erlang-rebar
+Requires: erlang-erts >= R14B
+Requires: erlang-kernel >= R14B
+Requires: erlang-stdlib >= R14B
+
+
+%description
+The ej module makes it easier to work with Erlang terms representing JSON in the format returned by jiffy, mochijson2, or ejson.
+
+
+%prep
+%setup -q -n %{upstream}-%{realname}-%{gitref}
+%patch1 -p1
+
+%build
+rebar compile -v
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+mkdir -p %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/include
+install -m 644 ebin/%{realname}.app %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -m 644 ebin/*.beam %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -m 644 include/%{realname}.hrl %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/include
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/include
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/*.beam
+%{_libdir}/erlang/lib/%{realname}-%{version}/include/*.hrl
+
+%changelog
+* Mon Nov 26 2012 Jan Vincent Liwanag <jvliwanag@gmail.com>
+- Initial release
View
@@ -0,0 +1,17 @@
+lib += erlang-ejrpc2
+
+erlang-ejrpc2_VER = 0.0.1
+erlang-ejrpc2_GITREF = 75dffe4
+erlang-ejrpc2_SRPM_DEFS = --define "gitref $(erlang-ejrpc2_GITREF)"
+erlang-ejrpc2_RPM_DEFS = $(erlang-ejrpc2_SRPM_DEFS)
+erlang-ejrpc2_REV = 1
+erlang-ejrpc2_SPEC = $(SRC)/$(PROJ)/erlang-ejrpc2.spec
+erlang-ejrpc2_TARBALL = jvliwanag-ejrpc2-$(erlang-ejrpc2_VER)-g$(erlang-ejrpc2_GITREF).tar.gz
+erlang-ejrpc2_SOURCES = $(erlang-ejrpc2_TARBALL)
+erlang-ejrpc2_SRPM = erlang-ejrpc2-$(erlang-ejrpc2_VER)-$(erlang-ejrpc2_REV)$(RPM_DIST).g$(erlang-ejrpc2_GITREF).src.rpm
+
+erlang-ejrpc2.autoreconf erlang-ejrpc2.configure:;
+erlang-ejrpc2.dist : $(DOWNLOAD_LIB_CACHE)/$(erlang-ejrpc2_TARBALL);
+
+$(DOWNLOAD_LIB_CACHE)/$(erlang-ejrpc2_TARBALL) :
+ wget -O $(DOWNLOAD_LIB_CACHE)/$(erlang-ejrpc2_TARBALL) --content-disposition https://github.com/jvliwanag/ejrpc2/tarball/$(erlang-ejrpc2_GITREF)
@@ -0,0 +1,53 @@
+%global realname ejrpc2
+%global upstream jvliwanag
+%global debug_package %{nil}
+
+Name: erlang-%{realname}
+Version: 0.0.1
+Release: 1%{?dist}.g%{gitref}
+Summary: Erlang JSON-RPC 2 Utility
+Group: Development/Libraries
+License: Freely redistributable without restriction
+URL: https://github.com/jvliwanag/ejrpc2
+Source0: %{upstream}-%{realname}-%{version}-g%{gitref}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires: erlang-rebar
+Requires: erlang-erts >= R14B
+Requires: erlang-kernel >= R14B
+Requires: erlang-stdlib >= R14B
+
+
+%description
+Erlang JSON-RPC 2 Utility
+
+
+%prep
+%setup -q -n %{upstream}-%{realname}-%{gitref}
+
+%build
+rebar compile -v
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+mkdir -p %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/include
+install -m 644 ebin/%{realname}.app %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -m 644 ebin/*.beam %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -m 644 include/*.hrl %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/include
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/include
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/*.beam
+%{_libdir}/erlang/lib/%{realname}-%{version}/include/*.hrl
+
+%changelog
+* Mon Nov 27 2012 Jan Vincent Liwanag <jvliwanag@gmail.com>
+- Initial release
@@ -0,0 +1,18 @@
+lib += erlang-mimetypes
+
+erlang-mimetypes_VER = 0.9
+erlang-mimetypes_GITREF = d42a72a
+erlang-mimetypes_SRPM_DEFS = --define "gitref $(erlang-mimetypes_GITREF)"
+erlang-mimetypes_RPM_DEFS = $(erlang-mimetypes_SRPM_DEFS)
+erlang-mimetypes_REV = 1
+erlang-mimetypes_SPEC = $(SRC)/$(PROJ)/erlang-mimetypes.spec
+erlang-mimetypes_TARBALL = spawngrid-mimetypes-$(erlang-mimetypes_VER)-g$(erlang-mimetypes_GITREF).tar.gz
+erlang-mimetypes_SOURCES = \
+ $(erlang-mimetypes_TARBALL) \
+ $(SRC)/$(PROJ)/erlang-mimetypes-0001-Replace-git-vsn-with-fixed-value.patch
+erlang-mimetypes_SRPM = erlang-mimetypes-$(erlang-mimetypes_VER)-$(erlang-mimetypes_REV)$(RPM_DIST).g$(erlang-mimetypes_GITREF).src.rpm
+
+erlang-mimetypes.autoreconf erlang-mimetypes.configure:;
+erlang-mimetypes.dist : $(DOWNLOAD_LIB_CACHE)/$(erlang-mimetypes_TARBALL);
+$(DOWNLOAD_LIB_CACHE)/$(erlang-mimetypes_TARBALL) :
+ wget -O $@ --content-disposition https://github.com/spawngrid/mimetypes/tarball/$(erlang-mimetypes_GITREF)
@@ -0,0 +1,25 @@
+From 59724114b73f5ae69516b1e1abbdb7639fd6f2a9 Mon Sep 17 00:00:00 2001
+From: Jan Vincent Liwanag <jvliwanag@gmail.com>
+Date: Wed, 28 Nov 2012 16:09:25 +0800
+Subject: [PATCH] Replace git vsn with fixed value
+
+---
+ src/mimetypes.app.src | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/mimetypes.app.src b/src/mimetypes.app.src
+index ba36915..e51eb30 100644
+--- a/src/mimetypes.app.src
++++ b/src/mimetypes.app.src
+@@ -1,7 +1,7 @@
+ {application, mimetypes,
+ [
+ {description, "mimetypes"},
+- {vsn, git},
++ {vsn, "0.9"},
+ {registered, [mimetypes]},
+ {applications, [
+ kernel,
+--
+1.8.0
+
@@ -0,0 +1,56 @@
+%global realname mimetypes
+%global upstream spawngrid
+%global debug_package %{nil}
+
+Name: erlang-%{realname}
+Version: 0.9
+Release: 1%{?dist}.g%{gitref}
+Summary: An Erlang library to fetch MIME extension/name mappings
+Group: Development/Libraries
+License: Freely redistributable without restriction
+URL: https://github.com/spawngrid/mimetypes
+Source0: %{upstream}-%{realname}-%{version}-g%{gitref}.tar.gz
+Patch1: erlang-mimetypes-0001-Replace-git-vsn-with-fixed-value.patch
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires: erlang-rebar
+Requires: erlang-erts >= R14B
+Requires: erlang-kernel >= R14B
+Requires: erlang-stdlib >= R14B
+
+
+%description
+mimetypes is an Erlang library to fetch MIME extension/name mappings.
+
+
+%prep
+%setup -q -n %{upstream}-%{realname}-%{gitref}
+%patch1 -p1
+
+%build
+rebar compile -v
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+mkdir -p %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/priv
+install -m 644 ebin/%{realname}.app %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -m 644 ebin/*.beam %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -m 644 priv/mime.types %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/priv
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/priv
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/*.beam
+%{_libdir}/erlang/lib/%{realname}-%{version}/priv/mime.types
+
+%changelog
+* Mon Nov 28 2012 Jan Vincent Liwanag <jvliwanag@gmail.com>
+- Initial release

0 comments on commit 54b6134

Please sign in to comment.