ocaml-calendar - Objective CAML library for managing dates and times
Initial import (bug 240571).
This commit is contained in:
parent
867d379b50
commit
43f0b033ca
@ -0,0 +1 @@
|
||||
calendar-1.10.tar.gz
|
101
ocaml-calendar.spec
Normal file
101
ocaml-calendar.spec
Normal file
@ -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 <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.
|
||||
|
Loading…
Reference in New Issue
Block a user