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
|
|
|
|
Version: 1.10
|
2007-09-06 15:41:18 +00:00
|
|
|
Release: 9%{?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
|
|
|
|
Source0: http://www.lri.fr/~signoles/prog/calendar/calendar-1.10.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
ExcludeArch: ppc64
|
|
|
|
|
2007-09-06 15:41:18 +00:00
|
|
|
BuildRequires: ocaml >= 3.10.0-7
|
|
|
|
BuildRequires: ocaml-findlib-devel, ocaml-ocamldoc
|
2007-08-30 09:27:46 +00:00
|
|
|
BuildRequires: gawk
|
2007-08-09 15:48:54 +00:00
|
|
|
|
|
|
|
%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
|
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.
|
|
|
|
|