]>
Commit | Line | Data |
---|---|---|
309b50e8 AM |
1 | Summary: XML-RPC library for Erlang |
2 | Name: erlang-xmlrpc | |
3 | Version: 1.13 | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: Development/Languages | |
7 | Source0: http://ejabberd.jabber.ru/files/contributions/xmlrpc-%{version}-ipr2.tgz | |
8 | # Source0-md5: c1905556e01d8970681b93dcba892442 | |
9 | URL: http://sourceforge.net/projects/sowap/ | |
10 | BuildRequires: erlang | |
11 | BuildRequires: erlang-xmerl | |
12 | Requires: erlang | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | This is an HTTP 1.1 compliant XML-RPC library for Erlang. It is | |
17 | designed to make it easy to write XML-RPC Erlang clients and/or | |
18 | servers. The library is compliant with the XML-RPC specification | |
19 | published by http://www.xmlrpc.org/. | |
20 | ||
21 | %prep | |
22 | %setup -q -n xmlrpc-%{version} | |
23 | ||
24 | %build | |
25 | xmerldir=$(ls -1d %{_libdir}/erlang/lib/xmerl-* | head -n1) | |
26 | ||
27 | %{__make} -C src \ | |
28 | XMERL_PATH=$xmerldir | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | ||
33 | install -d $RPM_BUILD_ROOT%{_libdir}/erlang/lib/xmlrpc-%{version} | |
34 | cp -a ebin src $RPM_BUILD_ROOT%{_libdir}/erlang/lib/xmlrpc-%{version} | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %doc CHANGES README TODO doc/*.txt | |
42 | %{_libdir}/erlang/lib/xmlrpc-* |