- New upstream version 1.2.4.

- This adds Python bindings (python-hivex subpackage).
- Fix Source0.
This commit is contained in:
Richard W.M. Jones 2010-12-02 15:39:03 +00:00
parent e5ee831040
commit 61eed46e2a
3 changed files with 44 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
hivex-1.2.2.tar.gz hivex-1.2.2.tar.gz
/hivex-1.2.3.tar.gz /hivex-1.2.3.tar.gz
/hivex-1.2.4.tar.gz

View File

@ -6,14 +6,14 @@
%endif %endif
Name: hivex Name: hivex
Version: 1.2.3 Version: 1.2.4
Release: 3%{?dist} Release: 1%{?dist}
Summary: Read and write Windows Registry binary hive files Summary: Read and write Windows Registry binary hive files
Group: Development/Libraries Group: Development/Libraries
License: LGPLv2 License: LGPLv2
URL: http://libguestfs.org/ URL: http://libguestfs.org/
Source0: http://libguestfs.org/download/%{name}-%{version}.tar.gz Source0: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz
Patch0: %{name}-1.2.3-dirs.patch Patch0: %{name}-1.2.3-dirs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -28,6 +28,7 @@ BuildRequires: perl-libintl
BuildRequires: ocaml BuildRequires: ocaml
BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-findlib-devel
%endif %endif
BuildRequires: python-devel
BuildRequires: readline-devel BuildRequires: readline-devel
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
@ -58,9 +59,11 @@ also provides a useful high-level tool called 'virt-win-reg' (based on
hivex technology) which can be used to query specific registry keys in hivex technology) which can be used to query specific registry keys in
an existing Windows VM. an existing Windows VM.
For OCaml bindings, see 'ocaml-hivex-devel'.
For Perl bindings, see 'perl-hivex'. For Perl bindings, see 'perl-hivex'.
For OCaml bindings, see 'ocaml-hivex-devel'. For Python bindings, see 'python-hivex'.
%package devel %package devel
@ -123,6 +126,18 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versio
perl-%{name} contains Perl bindings for %{name}. perl-%{name} contains Perl bindings for %{name}.
%package -n python-%{name}
Summary: Python bindings for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description -n python-%{name}
python-%{name} contains Python bindings for %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .dirs %patch0 -p1 -b .dirs
@ -145,6 +160,16 @@ find $RPM_BUILD_ROOT -name perllocal.pod -delete
find $RPM_BUILD_ROOT -name .packlist -delete find $RPM_BUILD_ROOT -name .packlist -delete
find $RPM_BUILD_ROOT -name '*.bs' -delete find $RPM_BUILD_ROOT -name '*.bs' -delete
# Remove unwanted Python files:
rm $RPM_BUILD_ROOT%{python_sitearch}/libhivexmod.a
rm $RPM_BUILD_ROOT%{python_sitearch}/libhivexmod.la
if [ "$RPM_BUILD_ROOT%{python_sitearch}" != "$RPM_BUILD_ROOT%{python_sitelib}" ]; then
mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
mv $RPM_BUILD_ROOT%{python_sitearch}/hivex.py* \
$RPM_BUILD_ROOT%{python_sitelib}/
fi
%find_lang %{name} %find_lang %{name}
@ -215,7 +240,20 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/Win::Hivex::Regedit.3pm* %{_mandir}/man3/Win::Hivex::Regedit.3pm*
%files -n python-%{name}
%defattr(-,root,root,-)
%{python_sitearch}/*
%{python_sitelib}/*.py
%{python_sitelib}/*.pyc
%{python_sitelib}/*.pyo
%changelog %changelog
* Thu Dec 2 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.4-1
- New upstream version 1.2.4.
- This adds Python bindings (python-hivex subpackage).
- Fix Source0.
* Fri Nov 19 2010 Dan Horák <dan[at]danny.cz> - 1.2.3-3 * Fri Nov 19 2010 Dan Horák <dan[at]danny.cz> - 1.2.3-3
- fix built with recent perl - fix built with recent perl

View File

@ -1 +1 @@
606dd17876be527bed68f93c6468b453 hivex-1.2.3.tar.gz fe92d1350d95218f9ab3dc43fbbc45f4 hivex-1.2.4.tar.gz