2007-08-09 15:48:54 +00:00
|
|
|
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
Name: ocaml-calendar
|
2008-03-28 15:34:39 +00:00
|
|
|
Version: 2.0.2
|
|
|
|
Release: 1%{?dist}
|
2007-08-09 15:48:54 +00:00
|
|
|
Summary: Objective Caml library for managing dates and times
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: LGPLv2
|
|
|
|
URL: http://www.lri.fr/~signoles/prog.en.html#calendar
|
2008-02-13 00:23:50 +00:00
|
|
|
Source0: http://www.lri.fr/~signoles/prog/calendar/calendar-%{version}.tar.gz
|
2007-08-09 15:48:54 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2008-02-13 00:23:50 +00:00
|
|
|
BuildRequires: ocaml >= 3.10.1
|
2007-09-06 15:41:18 +00:00
|
|
|
BuildRequires: ocaml-findlib-devel, ocaml-ocamldoc
|
2007-08-30 09:27:46 +00:00
|
|
|
BuildRequires: gawk
|
2007-08-09 15:48:54 +00:00
|
|
|
|
2008-02-13 00:23:50 +00:00
|
|
|
# Ignore all generated modules *except* CalendarLib, since everything
|
|
|
|
# now appears in that namespace.
|
2007-08-09 15:48:54 +00:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
2008-02-13 00:23:50 +00:00
|
|
|
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh -i Calendar_builder -i Calendar_sig -i Date -i Date_sig -i Fcalendar -i Ftime -i Period -i Printer -i Time -i Time_sig -i Time_Zone -i Utils -i Version
|
2007-08-09 15:48:54 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
%exclude %{_libdir}/ocaml/calendar/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGES README TODO LGPL COPYING calendarFAQ-2.6.txt doc/*
|
|
|
|
%{_libdir}/ocaml/calendar/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2008-03-28 15:34:39 +00:00
|
|
|
* Fri Mar 28 2008 Richard W.M. Jones <rjones@redhat.com> - 2.0.2-1
|
|
|
|
- New upstream version 2.0.2 (rhbz #439124)
|
|
|
|
|
2008-03-01 08:56:44 +00:00
|
|
|
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> - 2.0-2
|
|
|
|
- Rebuild for ppc64.
|
|
|
|
|
2008-02-13 00:23:50 +00:00
|
|
|
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 2.0-1
|
|
|
|
- New upstream version 2.0.
|
|
|
|
- Rebuild for OCaml 3.10.1.
|
|
|
|
|
2007-09-06 15:41:18 +00:00
|
|
|
* Thu Sep 6 2007 Richard W.M. Jones <rjones@redhat.com> - 1.10-9
|
|
|
|
- Force rebuild because of updated requires/provides scripts in OCaml.
|
|
|
|
|
|
|
|
* Mon Sep 3 2007 Richard W.M. Jones <rjones@redhat.com> - 1.10-8
|
|
|
|
- Force rebuild because of base OCaml.
|
|
|
|
|
2007-08-30 09:27:46 +00:00
|
|
|
* Thu Aug 30 2007 Richard W.M. Jones <rjones@redhat.com> - 1.10-7
|
|
|
|
- Force rebuild because of changed BRs in base OCaml.
|
|
|
|
|
2007-08-09 15:48:54 +00:00
|
|
|
* Tue Aug 7 2007 Richard W.M. Jones <rjones@redhat.com> - 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 <rjones@redhat.com> - 1.10-5
|
|
|
|
- Updated to latest packaging guidelines.
|
|
|
|
|
|
|
|
* Sat Jun 2 2007 Richard W.M. Jones <rjones@redhat.com> - 1.10-4
|
|
|
|
- Handle bytecode-only architectures.
|
|
|
|
|
|
|
|
* Tue May 29 2007 Richard W.M. Jones <rjones@redhat.com> - 1.10-3
|
|
|
|
- Remove Debian DISTDIR patch.
|
|
|
|
|
|
|
|
* Fri May 25 2007 Richard W.M. Jones <rjones@redhat.com> - 1.10-2
|
|
|
|
- Added find-requires and find-provides.
|
|
|
|
|
|
|
|
* Fri May 18 2007 Richard W.M. Jones <rjones@redhat.com> - 1.10-1
|
|
|
|
- Initial RPM release.
|
|
|
|
|