Remove autodeps for pre openSUSE 12.1 releases

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-calendar?expand=0&rev=12
This commit is contained in:
Olaf Hering 2017-07-17 11:01:14 +00:00 committed by Git OBS Bridge
parent a5f08097ef
commit 19ddcdabe4
2 changed files with 7 additions and 12 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de
- Remove autodeps for pre openSUSE 12.1 releases
-------------------------------------------------------------------
Mon May 30 06:39:17 UTC 2016 - ohering@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ocaml-calendar
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -34,16 +34,10 @@ Patch1: calendar-2.04-enable-debug.patch
Patch2: ocaml-calendar-buildcompare.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
BuildRequires: ocaml-rpm-macros >= 4.02.1
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.
@ -62,7 +56,6 @@ developing applications that use %{name}.
%patch1 -p1
%patch2 -p1
%build
./configure --libdir=%{_libdir}
make %{?_smp_mflags}
@ -71,14 +64,12 @@ 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
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root,-)
%doc CHANGES README TODO LGPL COPYING
@ -106,4 +97,3 @@ make DESTDIR=%{buildroot} install %{?_smp_mflags}
%{_libdir}/ocaml/*/META
%changelog