New upstream version 0.6.1.1.
- Remove mlvirsh subpackage, no longer upstream. - Replace custom configure with RPM macro configure. - Use RPM global instead of define. - Use built-in RPM OCaml dependency generator.
This commit is contained in:
parent
ecb3981ca0
commit
fe85418599
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
ocaml-libvirt-0.6.1.0.tar.gz
|
ocaml-libvirt-0.6.1.0.tar.gz
|
||||||
|
/ocaml-libvirt-0.6.1.1.tar.gz
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||||
%define debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
# Select what subpackages to build.
|
|
||||||
%define build_mlvirsh 1
|
|
||||||
|
|
||||||
Name: ocaml-libvirt
|
Name: ocaml-libvirt
|
||||||
Version: 0.6.1.0
|
Version: 0.6.1.1
|
||||||
Release: 10%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: OCaml binding for libvirt
|
Summary: OCaml binding for libvirt
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -24,9 +21,6 @@ BuildRequires: libvirt-devel >= 0.2.1
|
|||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: gawk
|
BuildRequires: gawk
|
||||||
|
|
||||||
%define _use_internal_dependency_generator 0
|
|
||||||
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
|
||||||
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OCaml binding for libvirt.
|
OCaml binding for libvirt.
|
||||||
@ -43,24 +37,12 @@ The %{name}-devel package contains libraries and signature files for
|
|||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
%if %build_mlvirsh
|
|
||||||
%package -n mlvirsh
|
|
||||||
Summary: OCaml virsh utility
|
|
||||||
Group: Applications/Emulators
|
|
||||||
License: GPLv2+
|
|
||||||
|
|
||||||
|
|
||||||
%description -n mlvirsh
|
|
||||||
OCaml virtualization shell.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ./configure --libdir=%{_libdir} --prefix=%{_prefix}
|
%configure
|
||||||
make all doc
|
make all doc
|
||||||
%if %opt
|
%if %opt
|
||||||
make opt
|
make opt
|
||||||
@ -81,10 +63,6 @@ make install-opt
|
|||||||
make install-byte
|
make install-byte
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%build_mlvirsh
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/mlvirsh
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -115,15 +93,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/ocaml/libvirt/*.mli
|
%{_libdir}/ocaml/libvirt/*.mli
|
||||||
|
|
||||||
|
|
||||||
%if %build_mlvirsh
|
|
||||||
%files -n mlvirsh
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING README ChangeLog
|
|
||||||
%{_bindir}/mlvirsh
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 6 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.1-1
|
||||||
|
- New upstream version 0.6.1.1.
|
||||||
|
- Remove mlvirsh subpackage, no longer upstream.
|
||||||
|
- Replace custom configure with RPM macro configure.
|
||||||
|
- Use RPM global instead of define.
|
||||||
|
- Use built-in RPM OCaml dependency generator.
|
||||||
|
|
||||||
* Fri Jan 06 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.0-10
|
* Fri Jan 06 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.1.0-10
|
||||||
- Rebuild for OCaml 3.12.1.
|
- Rebuild for OCaml 3.12.1.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user