Search
j0ke.net Open Build Service
>
Projects
>
devel
:
erlang
>
CouchDB
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 31
[-]
[+]
Changed
couchdb.spec
@@ -4,13 +4,14 @@ Summary: The next generation of web storage Group: Development/Libraries License: GPL -Source: %{name}-%{version}.tar.gz +Source0: %{name}-%{version}.tar.gz +Source1: couchdb.apache.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libicu-devel curl-devel libxml2-devel BuildRequires: erlang gcc-c++ -Requires: erlang +Requires: erlang apache2 %description @@ -27,6 +28,7 @@ mkdir -p %{buildroot}/%{_sysconfdir}/init.d mkdir -p %{buildroot}/var/adm/fillup-templates/ mkdir -p %{buildroot}/%{_docdir}/%{name} +mkdir -p %{buildroot}/%{_sysconfdir}/apache2/conf.d mv %{buildroot}/%{_sysconfdir}/rc.d/couchdb %{buildroot}/%{_sysconfdir}/init.d/ mv %{buildroot}/%{_sysconfdir}/default/couchdb %{buildroot}/var/adm/fillup-templates/sysconfig.%{name} mv %{buildroot}%{_datadir}/doc/%{name}/* %{buildroot}/%{_docdir}/%{name}/ @@ -38,6 +40,9 @@ mkdir -p %{buildroot}/var/log/%{name} mkdir -p %{buildroot}/var/lib/%{name} +# install apache config file +%{__install} -m 644 %{S:1} %{buildroot}/%{_sysconfdir}/apache2/conf.d/%{name}.conf + %pre # Create `couchdb' user on the system if necessary if /usr/bin/id %{name} > /dev/null 2>&1 ; then @@ -60,6 +65,7 @@ %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/couch_httpd.conf %config(noreplace) %{_sysconfdir}/%{name}/couch.ini +%config(noreplace) %{_sysconfdir}/apache2/conf.d/%{name}.conf %{_sysconfdir}/%{name}/conf/mime.types /var/adm/fillup-templates/sysconfig.%{name} %{_sysconfdir}/init.d/%{name}