]>
Commit | Line | Data |
---|---|---|
ec3f1cc9 ER |
1 | Summary: Apache CouchDB |
2 | Name: apache-couchdb | |
3 | Version: 0.8.1 | |
4 | Release: 0.1 | |
5 | License: Apache v2.0 | |
6 | Group: Applications | |
7 | Source0: http://www.apache.org/dist/incubator/couchdb/%{version}-incubating/%{name}-%{version}-incubating.tar.gz | |
8 | # Source0-md5: 89e037b370bef33be93f0f317e07615f | |
9 | URL: http://incubator.apache.org/couchdb/ | |
10 | BuildRequires: autoconf >= 2.59 | |
11 | BuildRequires: automake >= 1.6.3 | |
12 | BuildRequires: erlang >= 1:R11B | |
13 | BuildRequires: help2man | |
14 | BuildRequires: js-devel | |
15 | BuildRequires: libicu-devel | |
16 | BuildRequires: libtool | |
17 | Requires: Mozilla-SpiderMonkey | |
18 | Requires: erlang >= 1:R11B | |
19 | Requires: gcc | |
20 | Requires: make | |
21 | Requires: openssl | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Apache CouchDB is a distributed, fault-tolerant and schema-free | |
26 | document-oriented database accessible via a RESTful HTTP/JSON API. | |
27 | Among other features, it provides robust, incremental replication with | |
28 | bi-directional conflict detection and resolution, and is queryable and | |
29 | indexable using a table-oriented view engine with JavaScript acting as | |
30 | the default view definition language. | |
31 | ||
32 | %prep | |
33 | %setup -q -n %{name}-%{version}-incubating | |
34 | ||
35 | %build | |
36 | %configure | |
37 | %{__make} | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | %{__make} install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %pre | |
48 | %groupadd -g 203 -r -f couchdb | |
49 | %useradd -u 203 -r -d /var/lib/couchdb -s /bin/sh -c "CouchDB Administrator" -g couchdb couchdb | |
50 | ||
51 | %postun | |
52 | if [ "$1" = "0" ]; then | |
53 | %userremove couchdb | |
54 | %groupremove couchdb | |
55 | fi | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc AUTHORS BUGS CHANGES NEWS NOTICE README THANKS |