Initial CVS import.
This commit is contained in:
parent
9d2a2ced70
commit
843d4fe4b1
@ -0,0 +1 @@
|
||||
xmlrpc-light-0.6.tar.gz
|
92
ocaml-xmlrpc-light.spec
Normal file
92
ocaml-xmlrpc-light.spec
Normal file
@ -0,0 +1,92 @@
|
||||
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: ocaml-xmlrpc-light
|
||||
Version: 0.6
|
||||
Release: 2%{?dist}
|
||||
Summary: OCaml library for writing XML-RPC clients and servers
|
||||
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2 with exceptions
|
||||
URL: http://code.google.com/p/xmlrpc-light/
|
||||
Source0: http://xmlrpc-light.googlecode.com/files/xmlrpc-light-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: ocaml >= 3.10.0
|
||||
BuildRequires: ocaml-findlib-devel
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: ocaml-xml-light-devel
|
||||
BuildRequires: ocaml-ocamlnet-devel
|
||||
BuildRequires: ocaml-ocamlnet-nethttpd-devel
|
||||
BuildRequires: dos2unix
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
||||
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
||||
|
||||
%description
|
||||
XmlRpc-Light is an XmlRpc library written in OCaml.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and signature files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n xmlrpc-light-%{version}
|
||||
dos2unix LICENSE
|
||||
dos2unix README.txt
|
||||
|
||||
|
||||
%build
|
||||
make
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
make install
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{_libdir}/ocaml/xmlrpc-light
|
||||
%if %opt
|
||||
%exclude %{_libdir}/ocaml/xmlrpc-light/*.a
|
||||
%exclude %{_libdir}/ocaml/xmlrpc-light/*.cmxa
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/xmlrpc-light/*.mli
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE doc/xmlrpc-light/{html,latex} README.txt
|
||||
%if %opt
|
||||
%{_libdir}/ocaml/xmlrpc-light/*.a
|
||||
%{_libdir}/ocaml/xmlrpc-light/*.cmxa
|
||||
%endif
|
||||
%{_libdir}/ocaml/xmlrpc-light/*.mli
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Mar 3 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6-2
|
||||
- Added missing BR ocaml-ocamlnet-nethttpd-devel.
|
||||
- Test build in mock.
|
||||
- Removed ExcludeArch: ppc64.
|
||||
|
||||
* Sat Feb 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6-1
|
||||
- Initial RPM release.
|
Loading…
Reference in New Issue
Block a user