@@ -0,0 +1,38 @@
+Name: CouchDb
+Version: 0.6.3
+Release: 1
+Summary: The next generation of web storage
+Group: Development/Libraries
+License: Apache2
+Source: %{name}-%{version}-source.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: libicu-devel curl-devel libxml2-devel
+BuildRequires: erlang gcc-c++
+
+Requires: erlang
+
+%description
+
+
+%prep
+%setup -n CouchProjects
+
+%build
+mkdir -p %{buildroot}%{_prefix}/share/couchdb
+cd Libraries/c
+%{__make}
+
+%install
+export ERLANG_BIN_DIR=%{_bindir}
+export ERLANG_INCLUDE_DIR=%{_libdir}/erlang%{_includedir}
+export COUCHDB_INSTALL_DIR=%{buildroot}%{_prefix}/share/couchdb
+./build.sh --install=%{buildroot}%{_prefix}/share
+chmod 0755 %{buildroot}%{_prefix}/share/couchdb/bin/couch_erl
+
+%files
+%defattr(-,root,root) %{_prefix}/share/couchdb
+
+%changelog
+* Fri Mar 21 2008 Carsten Schoene <cs@linux-administrator.com>
+- initial build
|