Blame SPECS/ocaml-libvirt.spec

478147
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
478147
478147
Name:           ocaml-libvirt
bda309
Version:        0.6.1.4
bda309
Release:        15%{?dist}
478147
Summary:        OCaml binding for libvirt
478147
License:        LGPLv2+
bda309
478147
URL:            http://libvirt.org/ocaml/
478147
Source0:        http://libvirt.org/sources/ocaml/%{name}-%{version}.tar.gz
bda309
bda309
ExcludeArch:    s390 s390x
bda309
bda309
# Upstream patch to fix int types.
bda309
Patch1:         0001-Use-C99-standard-int64_t-instead-of-OCaml-defined-an.patch
bda309
bda309
# Upstream patch to add virDomainCreateXML binding.
bda309
Patch2:         0001-Add-a-binding-for-virDomainCreateXML.patch
bda309
bda309
# Upstream patches to fix error handling.
bda309
Patch3:         0001-Suppress-errors-to-stderr-and-use-thread-local-virEr.patch
bda309
Patch4:         0002-Don-t-bother-checking-return-from-virInitialize.patch
bda309
bda309
# Upstream patch to remove unused function.
bda309
Patch5:         0001-Remove-unused-not_supported-function.patch
bda309
bda309
# Upstream patches to tidy up warnings.
bda309
Patch6:         0001-Use-g-warn-error.patch
bda309
Patch7:         0002-Update-dependencies.patch
bda309
bda309
# Upstream patches to add binding for virConnectGetAllDomainStats.
bda309
Patch8:         0003-Add-a-binding-for-virConnectGetAllDomainStats-RHBZ-1.patch
bda309
Patch9:         0004-examples-Print-more-stats-in-the-get_all_domain_stat.patch
bda309
Patch10:        0005-Change-binding-of-virConnectGetAllDomainStats-to-ret.patch
478147
478147
BuildRequires:  ocaml >= 3.10.0
478147
BuildRequires:  ocaml-ocamldoc
478147
BuildRequires:  ocaml-findlib-devel
478147
478147
BuildRequires:  libvirt-devel >= 0.2.1
478147
BuildRequires:  perl
478147
BuildRequires:  gawk
478147
478147
478147
%description
478147
OCaml binding for libvirt.
478147
478147
478147
%package        devel
478147
Summary:        Development files for %{name}
478147
Requires:       %{name} = %{version}-%{release}
478147
478147
478147
%description    devel
478147
The %{name}-devel package contains libraries and signature files for
478147
developing applications that use %{name}.
478147
478147
478147
%prep
478147
%setup -q
bda309
478147
%patch1 -p1
a4fdfb
%patch2 -p1
bda309
%patch3 -p1
bda309
%patch4 -p1
bda309
%patch5 -p1
bda309
%patch6 -p1
bda309
%patch7 -p1
bda309
%patch8 -p1
bda309
%patch9 -p1
bda309
%patch10 -p1
478147
478147
478147
%build
478147
%configure
bda309
# This conditional is due to ocamlc.opt crashing on i686 in the
bda309
# examples/ directory.  Can remove this (ie. revert back to what's
bda309
# in Fedora) when we update RHEL 7 to a newer OCaml version.
bda309
%ifnarch %{ix86}
478147
make all doc
bda309
%else
bda309
make -C libvirt all
bda309
make doc
bda309
%endif
478147
%if %opt
478147
make opt
478147
%endif
478147
478147
478147
%install
478147
# These rules work if the library uses 'ocamlfind install' to install itself.
478147
export DESTDIR=$RPM_BUILD_ROOT
478147
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
478147
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
478147
mkdir -p $RPM_BUILD_ROOT%{_bindir}
478147
%if %opt
478147
make install-opt
478147
%else
478147
make install-byte
478147
%endif
478147
478147
478147
%files
478147
%doc COPYING.LIB README ChangeLog
478147
%{_libdir}/ocaml/libvirt
478147
%if %opt
478147
%exclude %{_libdir}/ocaml/libvirt/*.a
478147
%exclude %{_libdir}/ocaml/libvirt/*.cmxa
478147
%exclude %{_libdir}/ocaml/libvirt/*.cmx
478147
%endif
478147
%exclude %{_libdir}/ocaml/libvirt/*.mli
478147
%{_libdir}/ocaml/stublibs/*.so
478147
%{_libdir}/ocaml/stublibs/*.so.owner
478147
478147
478147
%files devel
478147
%doc COPYING.LIB README TODO.libvirt ChangeLog html/*
478147
%if %opt
478147
%{_libdir}/ocaml/libvirt/*.a
478147
%{_libdir}/ocaml/libvirt/*.cmxa
478147
%{_libdir}/ocaml/libvirt/*.cmx
478147
%endif
478147
%{_libdir}/ocaml/libvirt/*.mli
478147
478147
478147
%changelog
bda309
* Wed Mar 29 2017 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.4-15
bda309
- Include all changes from Fedora Rawhide
bda309
  resolves: rhbz#1390171
bda309
a4fdfb
* Fri Aug 08 2014 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.2-10
a4fdfb
- Resolves: rhbz#1125629
a4fdfb
- Disable bytecode build of examples.
a4fdfb
c58044
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.6.1.2-8
c58044
- Mass rebuild 2013-12-27
c58044
478147
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1.2-7
478147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
478147
478147
* Mon Oct 29 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.2-6
478147
- Rebuild for OCaml 4.00.1.
478147
478147
* Fri Oct 12 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.2-5
478147
- Modernise the spec file.
478147
- Add upstream patch to remove unnecessary get_cpu_stats second parameter
478147
  (thanks Hu Tao).
478147
478147
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1.2-3
478147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
478147
478147
* Sat Jun 09 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.2-2
478147
- Rebuild for OCaml 4.00.0.
478147
478147
* Fri Mar 23 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.2-1
478147
- New upstream version 0.6.1.2.
478147
478147
* Tue Mar  6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.1-1
478147
- New upstream version 0.6.1.1.
478147
- Remove mlvirsh subpackage, no longer upstream.
478147
- Replace custom configure with RPM macro configure.
478147
- Use RPM global instead of define.
478147
- Use built-in RPM OCaml dependency generator.
478147
478147
* Fri Jan 06 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.0-10
478147
- Rebuild for OCaml 3.12.1.
478147
478147
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1.0-9
478147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
478147
478147
* Wed Jan 05 2011 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.0-8
478147
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
478147
478147
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.0-7
478147
- Rebuild for OCaml 3.11.2.
478147
478147
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1.0-6
478147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
478147
478147
* Wed Jul 15 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.0-5
478147
- Force rebuild to test FTBFS issue.
478147
478147
* Fri Jun 12 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.0-3
478147
- Force rebuild to test FTBFS issue.
478147
478147
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.0-2
478147
- Rebuild for OCaml 3.11.1
478147
478147
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
478147
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
478147
  (added sparc64 per request from the sparc maintainer)
478147
478147
* Tue Mar 10 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.0-1
478147
- New upstream release 0.6.1.0.
478147
478147
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4.2-4
478147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
478147
478147
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.4.2-3
478147
- Rebuild for OCaml 3.11.0+rc1.
478147
478147
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.4.2-2
478147
- Rebuild for OCaml 3.11.0
478147
478147
* Wed Jul  9 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.4.2-1
478147
- New upstream version.
478147
- In upstream, 'make install' became 'make install-byte' or 'make install-opt'
478147
478147
* Tue Jun 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.2.4-1
478147
- New upstream version.
478147
478147
* Thu Jun  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.2.3-1
478147
- New upstream version.
478147
478147
* Thu Jun  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.2.2-1
478147
- New upstream version.
478147
- Removed virt-ctrl, virt-df, virt-top subpackages, since these are
478147
  now separate Fedora packages.
478147
478147
* Tue May 20 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.1-4
478147
- Disable virt-top (bz 442871).
478147
- Disable virt-ctrl (bz 442875).
478147
478147
* Mon May 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.1-3
478147
- Disable virt-df (bz 442873).
478147
478147
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.1-2
478147
- Rebuild for OCaml 3.10.2
478147
a4fdfb
* Thu Mar 20 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.1-1
478147
- New upstream release 0.4.1.1.
478147
- Move configure to build section.
478147
- Pass RPM_OPT_FLAGS.
478147
478147
* Tue Mar  4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.0-2
478147
- Fix source URL.
478147
- Install virt-df manpage.
478147
478147
* Tue Mar  4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.1.0-1
478147
- New upstream release 0.4.1.0.
478147
- Upstream now requires ocaml-dbus >= 0.06, ocaml-lablgtk >= 2.10.0,
478147
  ocaml-dbus-devel.
478147
- Enable virt-df.
478147
478147
* Sat Mar  1 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.0.3-3
478147
- Rebuild for ppc64.
478147
478147
* Wed Feb 13 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.0.3-2
478147
- Add BR gtk2-devel
478147
478147
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.0.3-1
478147
- New upstream version 0.4.0.3.
478147
- Rebuild for OCaml 3.10.1.
478147
478147
* Tue Nov 20 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.3.4-1
478147
- New upstream release 0.3.3.4.
478147
- Upstream website is now http://libvirt.org/ocaml/
478147
478147
* Fri Oct 19 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.3.0-2
478147
- Mistake: BR is ocaml-calendar-devel.
478147
478147
* Fri Oct 19 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.3.0-1
478147
- New upstream release 0.3.3.0.
478147
- Added support for virt-df, but disabled it by default.
478147
- +BR ocaml-calendar.
478147
478147
* Mon Sep 24 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.8-1
478147
- New upstream release 0.3.2.8.
478147
478147
* Thu Sep 20 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.7-1
478147
- New upstream release 0.3.2.7.
478147
- Ship the upstream ChangeLog file.
478147
478147
* Thu Sep  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.6-2
478147
- Force dependency on ocaml >= 3.10.0-7 which has fixed requires/provides
478147
  scripts.
478147
478147
* Thu Sep  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.6-1
478147
- New upstream version 0.3.2.6.
478147
478147
* Wed Aug 29 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.5-1
478147
- New upstream version 0.3.2.5.
478147
- Keep TODO out of the main package, but add (renamed) TODO.libvirt and
478147
  TODO.virt-top to the devel and virt-top packages respectively.
478147
- Add BR gawk.
478147
478147
* Thu Aug 23 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.4-1
478147
- New upstream version 0.3.2.4.
478147
478147
* Thu Aug 23 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.3-2
478147
- build_* macros so we can choose what subpackages to build.
478147
478147
* Thu Aug 23 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.3-1
478147
- Upstream version 0.3.2.3.
478147
- Add missing BR libvirt-devel.
478147
478147
* Wed Aug 22 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.2-1
478147
- Upstream version 0.3.2.2.
478147
478147
* Wed Aug 22 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.1-2
478147
- Fix unclosed if-statement in spec file.
478147
478147
* Wed Aug 22 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.2.1-1
478147
- Upstream version 0.3.2.1.
478147
- Put HTML documentation in -devel package.
478147
478147
* Mon Aug  6 2007 Richard W.M. Jones <rjones@redhat.com> - 0.3.1.2-1
478147
- Initial RPM release.