# # 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 %{ocaml_preserve_bytecode} Release: 0 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 BuildRequires: gawk BuildRequires: ocaml >= 4.00.1 BuildRequires: ocaml-rpm-macros >= 4.02.1 BuildRequires: ocaml-findlib-devel >= 1.3.3-3 BuildRequires: ocaml-ocamldoc BuildRoot: %{_tmppath}/%{name}-%{version}-build # 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 Requires: ocaml-runtime %endif # ocaml autodep end for pkg: ocaml-calendar %description Objective Caml library for managing dates and times. %package devel Summary: Development files for %{name} Group: Development/Libraries/Other 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} %patch1 -p1 %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 mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs make DESTDIR=%{buildroot} install %{?_smp_mflags} %files %defattr(-,root,root,-) %doc CHANGES README TODO LGPL COPYING %{_libdir}/ocaml/calendar %if %{ocaml_native_compiler} %exclude %{_libdir}/ocaml/calendar/*.cmx %endif %exclude %{_libdir}/ocaml/calendar/*.mli %files devel %defattr(-,root,root,-) %doc CHANGES README TODO LGPL COPYING doc/* %if %{ocaml_native_compiler} %{_libdir}/ocaml/calendar/*.cmx %endif %{_libdir}/ocaml/calendar/*.mli %changelog