From 43f0b033ca09cbde52992a6ea3c66cfecad40dc5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 9 Aug 2007 15:48:54 +0000 Subject: [PATCH] ocaml-calendar - Objective CAML library for managing dates and times Initial import (bug 240571). --- .cvsignore | 1 + ocaml-calendar.spec | 101 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 103 insertions(+) create mode 100644 ocaml-calendar.spec diff --git a/.cvsignore b/.cvsignore index e69de29..bbcc40d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +calendar-1.10.tar.gz diff --git a/ocaml-calendar.spec b/ocaml-calendar.spec new file mode 100644 index 0000000..3e7ca7c --- /dev/null +++ b/ocaml-calendar.spec @@ -0,0 +1,101 @@ +%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) +%define debug_package %{nil} + +Name: ocaml-calendar +Version: 1.10 +Release: 6%{?dist} +Summary: Objective Caml library for managing dates and times + +Group: Development/Libraries +License: LGPLv2 +URL: http://www.lri.fr/~signoles/prog.en.html#calendar +Source0: http://www.lri.fr/~signoles/prog/calendar/calendar-1.10.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +ExcludeArch: ppc64 + +BuildRequires: ocaml >= 3.06, ocaml-findlib-devel, ocaml-ocamldoc + +%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 +Objective Caml library for managing dates and times. + + +%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 calendar-%{version} + + +%build +./configure --libdir=%{_libdir} +make +make doc + + +%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 CHANGES README TODO LGPL COPYING +%{_libdir}/ocaml/calendar +%if %opt +%exclude %{_libdir}/ocaml/calendar/*.a +%exclude %{_libdir}/ocaml/calendar/*.cmxa +%endif +%exclude %{_libdir}/ocaml/calendar/*.mli + + +%files devel +%defattr(-,root,root,-) +%doc CHANGES README TODO LGPL COPYING calendarFAQ-2.6.txt doc/* +%if %opt +%{_libdir}/ocaml/calendar/*.a +%{_libdir}/ocaml/calendar/*.cmxa +%endif +%{_libdir}/ocaml/calendar/*.mli + + +%changelog +* Tue Aug 7 2007 Richard W.M. Jones - 1.10-6 +- ExcludeArch ppc64 +- Clarify license is LGPLv2 +- Add LGPL, COPYING, calendarFAQ-2.6.txt and doc/ subdirectory to docs. +- BR +ocaml-ocamldoc + +* Mon Jun 11 2007 Richard W.M. Jones - 1.10-5 +- Updated to latest packaging guidelines. + +* Sat Jun 2 2007 Richard W.M. Jones - 1.10-4 +- Handle bytecode-only architectures. + +* Tue May 29 2007 Richard W.M. Jones - 1.10-3 +- Remove Debian DISTDIR patch. + +* Fri May 25 2007 Richard W.M. Jones - 1.10-2 +- Added find-requires and find-provides. + +* Fri May 18 2007 Richard W.M. Jones - 1.10-1 +- Initial RPM release. + diff --git a/sources b/sources index e69de29..e9f3b2d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ab36c83c354644695cbf81165dc3757d calendar-1.10.tar.gz