diff --git a/.cvsignore b/.cvsignore index e69de29..6e98ff4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +react-0.9.0.tbz diff --git a/import.log b/import.log new file mode 100644 index 0000000..a216133 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +ocaml-react-0_9_0-2_fc11:HEAD:ocaml-react-0.9.0-2.fc11.src.rpm:1255335732 diff --git a/ocaml-react.spec b/ocaml-react.spec new file mode 100644 index 0000000..f486ec2 --- /dev/null +++ b/ocaml-react.spec @@ -0,0 +1,107 @@ +%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) +%global debug_package %{nil} + +Name: ocaml-react +Version: 0.9.0 +Release: 2%{?dist} +Summary: OCaml framework for Functional Reactive Programming (FRP) + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Group: Development/Libraries +License: BSD +URL: http://erratique.ch/software/react + +Source0: http://erratique.ch/software/react/releases/react-%{version}.tbz +Source1: react-LICENSE + +BuildRequires: ocaml >= 3.10.0 +BuildRequires: ocaml-findlib-devel +BuildRequires: ocaml-ocamldoc +BuildRequires: chrpath + +%global _use_internal_dependency_generator 0 +%global __find_requires /usr/lib/rpm/ocaml-find-requires.sh +%global __find_provides /usr/lib/rpm/ocaml-find-provides.sh + + +%description +React is an OCaml module for functional reactive programming (FRP). It +provides support to program with time varying values : applicative +events and signals. React doesn't define any primitive event or +signal, this lets the client chooses the concrete timeline. + +React is made of a single, independent, module and distributed under +the new BSD license. + +Given an absolute notion of time Rtime helps you to manage a timeline +and provides time stamp events, delayed events and delayed signals. + + +%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 react-%{version} +cp %{SOURCE1} LICENSE + + +%build +./build + + +%install +rm -rf $RPM_BUILD_ROOT +export INSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/react +mkdir -p $INSTALLDIR +./build install + + +%check +%if %opt +./build test.native +./_build/test/test.native +./build clock.native +#./_build/test/clock.native +./build breakout.native +#./_build/test/breakout.native +%endif + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc LICENSE +%{_libdir}/ocaml/react +%if %opt +%exclude %{_libdir}/ocaml/react/*.cmx +%endif +%exclude %{_libdir}/ocaml/react/*.mli +%exclude %{_libdir}/ocaml/react/*.ml + + +%files devel +%defattr(-,root,root,-) +%doc CHANGES README +%if %opt +%{_libdir}/ocaml/react/*.cmx +%endif +%{_libdir}/ocaml/react/*.mli +%{_libdir}/ocaml/react/*.ml + + +%changelog +* Thu Oct 8 2009 Richard W.M. Jones - 0.9.0-2 +- Initial RPM release. +- Use global instead of define (Till Maas). diff --git a/react-LICENSE b/react-LICENSE new file mode 100644 index 0000000..e46e414 --- /dev/null +++ b/react-LICENSE @@ -0,0 +1,32 @@ +(*---------------------------------------------------------------------------- + Copyright (c) 2009, Daniel C. Bünzli + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the + distribution. + + 3. Neither the name of the Daniel C. Bünzli nor the names of + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + ----------------------------------------------------------------------------*) diff --git a/sources b/sources index e69de29..572b902 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +193a64a2abb0eebc6a88c19fba18ca85 react-0.9.0.tbz