From 3ee5cfba1982a265ffcc48039240b1402350e3d9e82ebdfcc295dc523619f760 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 8 Dec 2014 08:36:25 +0000 Subject: [PATCH] Accepting request 264213 from home:mlatimer:td Add package to satisfy build requirement for virt-top (FATE#318226) OBS-URL: https://build.opensuse.org/request/show/264213 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-calendar?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + calendar-2.04-enable-debug.patch | 11 ++++ calendar-2.04.tar.gz | 3 ++ ocaml-calendar.changes | 5 ++ ocaml-calendar.spec | 91 ++++++++++++++++++++++++++++++++ 6 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 calendar-2.04-enable-debug.patch create mode 100644 calendar-2.04.tar.gz create mode 100644 ocaml-calendar.changes create mode 100644 ocaml-calendar.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/calendar-2.04-enable-debug.patch b/calendar-2.04-enable-debug.patch new file mode 100644 index 0000000..dae5783 --- /dev/null +++ b/calendar-2.04-enable-debug.patch @@ -0,0 +1,11 @@ +--- calendar-2.04/Makefile.in.old 2013-09-14 16:15:43.760253519 +0100 ++++ calendar-2.04/Makefile.in 2013-09-14 16:16:03.233279962 +0100 +@@ -86,7 +86,7 @@ + + CAMLIBS = $(addprefix -I , $(DIRS)) + +-CAMLFLAGS= $(CAMLIBS) ++CAMLFLAGS= -g $(CAMLIBS) + BYTEFLAGS= $(CAMLFLAGS) + LINK_OPTFLAGS = $(CAMLFLAGS) -noassert + OPTFLAGS = $(LINK_OPTFLAGS) -for-pack CalendarLib diff --git a/calendar-2.04.tar.gz b/calendar-2.04.tar.gz new file mode 100644 index 0000000..6fc2aa3 --- /dev/null +++ b/calendar-2.04.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bea6faa0337a1c54b0f3c2b9b45c9eb90e2b2747406e6f0b841e1fd20fd4d9f7 +size 271522 diff --git a/ocaml-calendar.changes b/ocaml-calendar.changes new file mode 100644 index 0000000..122967d --- /dev/null +++ b/ocaml-calendar.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Dec 5 17:20:02 UTC 2014 - mlatimer@suse.com + +- Initial commit using upstream version 2.04 + diff --git a/ocaml-calendar.spec b/ocaml-calendar.spec new file mode 100644 index 0000000..d30f226 --- /dev/null +++ b/ocaml-calendar.spec @@ -0,0 +1,91 @@ +# +# 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/ +# + + +%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) +# 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 +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-findlib-devel >= 1.3.3-3 +BuildRequires: ocaml-ocamldoc +BuildRoot: %{_tmppath}/%{name}-%{version}-build +ExcludeArch: sparc64 s390 s390x + +%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 %{opt} +%exclude %{_libdir}/ocaml/calendar/*.cmx +%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/*.cmx +%endif +%{_libdir}/ocaml/calendar/*.mli + +%changelog