Accepting request 264462 from home:mlatimer:td
Update spec file as per recommendations OBS-URL: https://build.opensuse.org/request/show/264462 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-calendar?expand=0&rev=2
This commit is contained in:
parent
3ee5cfba19
commit
006edb52f2
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 8 20:18:19 UTC 2014 - mlatimer@suse.com
|
||||
|
||||
- Update spec file to use ocaml-rpm-macros, remove
|
||||
ExclusiveArch, and ensure bytecode is built
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 5 17:20:02 UTC 2014 - mlatimer@suse.com
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%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
|
||||
@ -24,6 +23,7 @@
|
||||
|
||||
Name: ocaml-calendar
|
||||
Version: 2.04
|
||||
%{ocaml_preserve_bytecode}
|
||||
Release: 0
|
||||
Summary: Objective Caml library for managing dates and times
|
||||
License: LGPL-2.0
|
||||
@ -33,10 +33,10 @@ Source0: http://forge.ocamlcore.org/frs/download.php/1481/calendar-2.04.t
|
||||
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
|
||||
ExcludeArch: sparc64 s390 s390x
|
||||
|
||||
%description
|
||||
Objective Caml library for managing dates and times.
|
||||
@ -75,7 +75,7 @@ make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES README TODO LGPL COPYING
|
||||
%{_libdir}/ocaml/calendar
|
||||
%if %{opt}
|
||||
%if %{ocaml_native_compiler}
|
||||
%exclude %{_libdir}/ocaml/calendar/*.cmx
|
||||
%endif
|
||||
%exclude %{_libdir}/ocaml/calendar/*.mli
|
||||
@ -83,7 +83,7 @@ make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES README TODO LGPL COPYING calendarFAQ-2.6.txt doc/*
|
||||
%if %{opt}
|
||||
%if %{ocaml_native_compiler}
|
||||
%{_libdir}/ocaml/calendar/*.cmx
|
||||
%endif
|
||||
%{_libdir}/ocaml/calendar/*.mli
|
||||
|
Loading…
Reference in New Issue
Block a user