2014-12-08 09:36:25 +01:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-calendar
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Ignore all generated modules *except* CalendarLib, since everything
|
|
|
|
# now appears in that namespace.
|
|
|
|
%global __ocaml_requires_opts -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
|
|
|
|
%global __ocaml_provides_opts -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
|
|
|
|
|
|
|
|
Name: ocaml-calendar
|
|
|
|
Version: 2.04
|
|
|
|
Release: 0
|
2016-06-10 13:55:10 +02:00
|
|
|
%{ocaml_preserve_bytecode}
|
2014-12-08 09:36:25 +01:00
|
|
|
Summary: Objective Caml library for managing dates and times
|
|
|
|
License: LGPL-2.0
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Url: http://calendar.forge.ocamlcore.org/
|
|
|
|
Source0: http://forge.ocamlcore.org/frs/download.php/1481/calendar-2.04.tar.gz
|
|
|
|
Patch1: calendar-2.04-enable-debug.patch
|
2016-05-29 14:27:24 +02:00
|
|
|
Patch2: ocaml-calendar-buildcompare.patch
|
2014-12-08 09:36:25 +01:00
|
|
|
BuildRequires: gawk
|
|
|
|
BuildRequires: ocaml >= 4.00.1
|
2014-12-08 21:31:51 +01:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
2014-12-08 09:36:25 +01:00
|
|
|
BuildRequires: ocaml-findlib-devel >= 1.3.3-3
|
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-11-10 11:31:49 +01:00
|
|
|
# ocaml autodep start for pkg: ocaml-calendar
|
|
|
|
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
|
|
|
%if 0%{?suse_version} < 1210
|
2015-11-10 14:30:06 +01:00
|
|
|
Requires: ocaml-runtime
|
2015-11-10 11:31:49 +01:00
|
|
|
%endif
|
|
|
|
# ocaml autodep end for pkg: ocaml-calendar
|
2014-12-08 09:36:25 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Objective Caml library for managing dates and times.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/Other
|
2016-06-16 12:29:33 +02:00
|
|
|
Requires: %{name} = %{version}
|
2014-12-08 09:36:25 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n calendar-%{version}
|
|
|
|
%patch1 -p1
|
2016-05-29 14:27:24 +02:00
|
|
|
%patch2 -p1
|
2014-12-08 09:36:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
./configure --libdir=%{_libdir}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags} doc
|
|
|
|
|
|
|
|
mv TODO TODO.old
|
|
|
|
iconv -f iso-8859-1 -t utf-8 < TODO.old > TODO
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
export DESTDIR=%{buildroot}
|
|
|
|
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
|
2016-05-25 10:30:42 +02:00
|
|
|
mkdir -p $OCAMLFIND_DESTDIR
|
2014-12-08 09:36:25 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGES README TODO LGPL COPYING
|
2016-05-25 11:16:33 +02:00
|
|
|
%dir %{_libdir}/ocaml
|
2016-05-25 10:30:42 +02:00
|
|
|
%dir %{_libdir}/ocaml/*
|
2014-12-08 21:31:51 +01:00
|
|
|
%if %{ocaml_native_compiler}
|
2016-05-25 10:30:42 +02:00
|
|
|
%{_libdir}/ocaml/*/*.cmxs
|
2014-12-08 09:36:25 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2015-09-15 16:08:09 +02:00
|
|
|
%doc CHANGES README TODO LGPL COPYING doc/*
|
2016-05-25 11:16:33 +02:00
|
|
|
%dir %{_libdir}/ocaml
|
2016-05-25 10:30:42 +02:00
|
|
|
%dir %{_libdir}/ocaml/*
|
2014-12-08 21:31:51 +01:00
|
|
|
%if %{ocaml_native_compiler}
|
2016-05-25 10:30:42 +02:00
|
|
|
%{_libdir}/ocaml/*/*.a
|
|
|
|
%{_libdir}/ocaml/*/*.cmx
|
|
|
|
%{_libdir}/ocaml/*/*.cmxa
|
2016-05-25 11:16:33 +02:00
|
|
|
%{_libdir}/ocaml/*/*.o
|
2014-12-08 09:36:25 +01:00
|
|
|
%endif
|
2016-05-25 10:30:42 +02:00
|
|
|
%{_libdir}/ocaml/*/*.cma
|
|
|
|
%{_libdir}/ocaml/*/*.cmi
|
|
|
|
%{_libdir}/ocaml/*/*.cmo
|
|
|
|
%{_libdir}/ocaml/*/*.mli
|
|
|
|
%{_libdir}/ocaml/*/META
|
2014-12-08 09:36:25 +01:00
|
|
|
|
|
|
|
%changelog
|
2016-05-25 10:30:42 +02:00
|
|
|
|