2010-09-07 13:26:23 +00:00
|
|
|
# conditionalize Ocaml support
|
|
|
|
%ifarch sparc64 s390 s390x
|
|
|
|
%bcond_with ocaml
|
|
|
|
%else
|
|
|
|
%bcond_without ocaml
|
|
|
|
%endif
|
|
|
|
|
2010-02-23 09:11:37 +00:00
|
|
|
Name: hivex
|
2011-05-12 11:12:18 +00:00
|
|
|
Version: 1.2.6
|
|
|
|
Release: 1%{?dist}
|
2010-02-23 09:11:37 +00:00
|
|
|
Summary: Read and write Windows Registry binary hive files
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: LGPLv2
|
|
|
|
URL: http://libguestfs.org/
|
2010-12-02 15:39:03 +00:00
|
|
|
Source0: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz
|
2010-02-23 09:11:37 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: perl
|
2010-03-01 14:20:00 +00:00
|
|
|
BuildRequires: perl-Test-Simple
|
|
|
|
BuildRequires: perl-Test-Pod
|
|
|
|
BuildRequires: perl-Test-Pod-Coverage
|
|
|
|
BuildRequires: perl-ExtUtils-MakeMaker
|
2010-03-30 16:04:52 +00:00
|
|
|
BuildRequires: perl-IO-stringy
|
2010-03-01 14:20:00 +00:00
|
|
|
BuildRequires: perl-libintl
|
2010-09-07 13:26:23 +00:00
|
|
|
%if %{with ocaml}
|
2010-03-01 14:12:29 +00:00
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
2010-09-07 13:26:23 +00:00
|
|
|
%endif
|
2010-12-02 15:39:03 +00:00
|
|
|
BuildRequires: python-devel
|
2010-02-23 09:11:37 +00:00
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
|
|
|
# This library used to be part of libguestfs. It won't install alongside
|
|
|
|
# the old version of libguestfs that included this library:
|
|
|
|
Conflicts: libguestfs <= 1:1.0.84
|
|
|
|
|
2010-12-16 13:45:41 +00:00
|
|
|
# Fix Perl directory install path.
|
|
|
|
Patch0: %{name}-1.2.3-dirs.patch
|
|
|
|
|
2010-02-23 09:11:37 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Hive files are the undocumented binary blobs that Windows uses to
|
|
|
|
store the Windows Registry on disk. Hivex is a library that can read
|
|
|
|
and write to these files.
|
|
|
|
|
|
|
|
'hivexsh' is a shell you can use to interactively navigate a hive
|
|
|
|
binary file.
|
|
|
|
|
2010-03-30 16:04:52 +00:00
|
|
|
'hivexregedit' lets you export and merge to the textual regedit
|
|
|
|
format.
|
|
|
|
|
2010-02-23 09:11:37 +00:00
|
|
|
'hivexml' can be used to convert a hive file to a more useful XML
|
|
|
|
format.
|
|
|
|
|
|
|
|
In order to get access to the hive files themselves, you can copy them
|
|
|
|
from a Windows machine. They are usually found in
|
|
|
|
%%systemroot%%\system32\config. For virtual machines we recommend
|
|
|
|
using libguestfs or guestfish to copy out these files. libguestfs
|
|
|
|
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
|
|
|
|
an existing Windows VM.
|
|
|
|
|
2010-12-02 15:39:03 +00:00
|
|
|
For OCaml bindings, see 'ocaml-hivex-devel'.
|
|
|
|
|
2010-03-01 14:12:29 +00:00
|
|
|
For Perl bindings, see 'perl-hivex'.
|
|
|
|
|
2010-12-02 15:39:03 +00:00
|
|
|
For Python bindings, see 'python-hivex'.
|
2010-03-01 14:12:29 +00:00
|
|
|
|
2010-02-23 09:11:37 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development tools and libraries for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%{name}-devel contains development tools and libraries
|
|
|
|
for %{name}.
|
|
|
|
|
|
|
|
|
2010-08-25 10:33:41 +00:00
|
|
|
%package static
|
|
|
|
Summary: Statically linked library for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description static
|
|
|
|
%{name}-static contains the statically linked library
|
|
|
|
for %{name}.
|
|
|
|
|
|
|
|
|
2010-09-07 13:26:23 +00:00
|
|
|
%if %{with ocaml}
|
2010-03-01 14:12:29 +00:00
|
|
|
%package -n ocaml-%{name}
|
|
|
|
Summary: OCaml bindings for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n ocaml-%{name}
|
|
|
|
ocaml-%{name} contains OCaml bindings for %{name}.
|
|
|
|
|
|
|
|
This is for toplevel and scripting access only. To compile OCaml
|
|
|
|
programs which use %{name} you will also need ocaml-%{name}-devel.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n ocaml-%{name}-devel
|
|
|
|
Summary: OCaml bindings for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: ocaml-%{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n ocaml-%{name}-devel
|
|
|
|
ocaml-%{name}-devel contains development libraries
|
|
|
|
required to use the OCaml bindings for %{name}.
|
2010-09-07 13:26:23 +00:00
|
|
|
%endif
|
2010-03-01 14:12:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package -n perl-%{name}
|
|
|
|
Summary: Perl bindings for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
|
|
%description -n perl-%{name}
|
|
|
|
perl-%{name} contains Perl bindings for %{name}.
|
|
|
|
|
|
|
|
|
2010-12-02 15:39:03 +00:00
|
|
|
%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}.
|
|
|
|
|
|
|
|
|
2010-02-23 09:11:37 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-12-16 13:45:41 +00:00
|
|
|
|
2010-11-19 17:54:51 +00:00
|
|
|
%patch0 -p1 -b .dirs
|
2010-02-23 09:11:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2010-08-25 10:33:41 +00:00
|
|
|
%configure
|
2010-02-23 09:11:37 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
# Remove unwanted libtool *.la file:
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libhivex.la
|
|
|
|
|
2010-03-01 14:12:29 +00:00
|
|
|
# Remove unwanted Perl files:
|
|
|
|
find $RPM_BUILD_ROOT -name perllocal.pod -delete
|
|
|
|
find $RPM_BUILD_ROOT -name .packlist -delete
|
|
|
|
find $RPM_BUILD_ROOT -name '*.bs' -delete
|
|
|
|
|
2010-12-02 15:39:03 +00:00
|
|
|
# Remove unwanted Python files:
|
|
|
|
rm $RPM_BUILD_ROOT%{python_sitearch}/libhivexmod.a
|
|
|
|
rm $RPM_BUILD_ROOT%{python_sitearch}/libhivexmod.la
|
|
|
|
|
2011-01-14 16:00:01 +00:00
|
|
|
# Only install unversioned *.so file for Python bindings.
|
|
|
|
rm $RPM_BUILD_ROOT%{python_sitearch}/libhivexmod.so
|
|
|
|
mv $RPM_BUILD_ROOT%{python_sitearch}/libhivexmod.so.0.0.0 \
|
|
|
|
$RPM_BUILD_ROOT%{python_sitearch}/libhivexmod.so
|
|
|
|
rm $RPM_BUILD_ROOT%{python_sitearch}/libhivexmod.so.0*
|
2010-12-02 15:39:03 +00:00
|
|
|
|
2010-02-23 09:11:37 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README LICENSE
|
|
|
|
%{_bindir}/hivexget
|
|
|
|
%{_bindir}/hivexml
|
2010-03-30 16:04:52 +00:00
|
|
|
%{_bindir}/hivexregedit
|
2010-02-23 09:11:37 +00:00
|
|
|
%{_bindir}/hivexsh
|
|
|
|
%{_libdir}/libhivex.so.*
|
|
|
|
%{_mandir}/man1/hivexget.1*
|
|
|
|
%{_mandir}/man1/hivexml.1*
|
2010-03-30 16:04:52 +00:00
|
|
|
%{_mandir}/man1/hivexregedit.1*
|
2010-02-23 09:11:37 +00:00
|
|
|
%{_mandir}/man1/hivexsh.1*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
|
|
|
%{_libdir}/libhivex.so
|
|
|
|
%{_mandir}/man3/hivex.3*
|
|
|
|
%{_includedir}/hivex.h
|
|
|
|
%{_libdir}/pkgconfig/hivex.pc
|
|
|
|
|
|
|
|
|
2010-08-25 10:33:41 +00:00
|
|
|
%files static
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
|
|
|
%{_libdir}/libhivex.a
|
|
|
|
|
|
|
|
|
2010-09-07 13:26:23 +00:00
|
|
|
%if %{with ocaml}
|
2010-03-01 14:12:29 +00:00
|
|
|
%files -n ocaml-%{name}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README
|
|
|
|
%{_libdir}/ocaml/hivex
|
|
|
|
%exclude %{_libdir}/ocaml/hivex/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/hivex/*.cmxa
|
|
|
|
%exclude %{_libdir}/ocaml/hivex/*.cmx
|
|
|
|
%exclude %{_libdir}/ocaml/hivex/*.mli
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so.owner
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ocaml-%{name}-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/ocaml/hivex/*.a
|
|
|
|
%{_libdir}/ocaml/hivex/*.cmxa
|
|
|
|
%{_libdir}/ocaml/hivex/*.cmx
|
|
|
|
%{_libdir}/ocaml/hivex/*.mli
|
2010-09-07 13:26:23 +00:00
|
|
|
%endif
|
2010-03-01 14:12:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files -n perl-%{name}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{perl_vendorarch}/*
|
|
|
|
%{_mandir}/man3/Win::Hivex.3pm*
|
2010-03-30 16:04:52 +00:00
|
|
|
%{_mandir}/man3/Win::Hivex::Regedit.3pm*
|
2010-03-01 14:12:29 +00:00
|
|
|
|
|
|
|
|
2010-12-02 15:39:03 +00:00
|
|
|
%files -n python-%{name}
|
|
|
|
%defattr(-,root,root,-)
|
2011-01-14 16:00:01 +00:00
|
|
|
%{python_sitearch}/*.py
|
|
|
|
%{python_sitearch}/*.pyc
|
|
|
|
%{python_sitearch}/*.pyo
|
|
|
|
%{python_sitearch}/*.so
|
2010-12-02 15:39:03 +00:00
|
|
|
|
|
|
|
|
2010-02-23 09:11:37 +00:00
|
|
|
%changelog
|
2011-05-12 11:12:18 +00:00
|
|
|
* Thu May 12 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.6-1
|
|
|
|
- New upstream version 1.2.6.
|
|
|
|
- Removed patch which is now upstream.
|
|
|
|
|
2011-04-28 08:42:26 +00:00
|
|
|
* Thu Apr 28 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.5-2
|
|
|
|
- Fix Python bindings on 32 bit arch with upstream patch.
|
|
|
|
|
2011-04-13 14:21:12 +00:00
|
|
|
* Wed Apr 13 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.5-1
|
|
|
|
- New upstream version 1.2.5.
|
|
|
|
- This version fixes a number of important memory issues found by
|
|
|
|
valgrind and upgrading to this version is recommended for all users.
|
|
|
|
- Remove patch now upstream.
|
|
|
|
|
2011-02-09 09:14:47 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-14 16:00:01 +00:00
|
|
|
* Fri Jan 14 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.4-6
|
|
|
|
- Fix multilib conflicts in *.pyc and *.pyo files.
|
|
|
|
- Only install unversioned *.so file for Python bindings.
|
|
|
|
|
2011-01-05 15:28:48 +00:00
|
|
|
* Wed Jan 5 2011 Richard W.M. Jones <rjones@redhat.com> - 1.2.4-4
|
|
|
|
- Rebuild against OCaml 3.12.0.
|
|
|
|
|
2010-12-16 13:54:57 +00:00
|
|
|
* Thu Dec 16 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.4-3
|
2010-12-16 13:45:41 +00:00
|
|
|
- Backport upstream patch to fix segfault in Hivex.value_value binding.
|
|
|
|
|
2010-12-02 15:39:03 +00:00
|
|
|
* 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.
|
|
|
|
|
2010-11-19 17:54:51 +00:00
|
|
|
* Fri Nov 19 2010 Dan Horák <dan[at]danny.cz> - 1.2.3-3
|
|
|
|
- fix built with recent perl
|
|
|
|
|
2010-09-07 13:26:23 +00:00
|
|
|
* Tue Sep 7 2010 Dan Horák <dan[at]danny.cz> - 1.2.3-2
|
|
|
|
- conditionalize ocaml support
|
|
|
|
|
2010-08-27 08:56:07 +00:00
|
|
|
* Fri Aug 27 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-1
|
|
|
|
- New upstream version 1.2.3.
|
|
|
|
|
2010-08-25 10:33:41 +00:00
|
|
|
* Wed Aug 25 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.2-3
|
|
|
|
- Create a hivex-static subpackage.
|
|
|
|
|
2010-04-29 11:37:28 +00:00
|
|
|
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.2.2-2
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
2010-04-28 14:20:46 +00:00
|
|
|
* Wed Apr 28 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.2-1
|
|
|
|
- New upstream version 1.2.2.
|
|
|
|
|
2010-03-30 16:04:52 +00:00
|
|
|
* Tue Mar 30 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.1-1
|
|
|
|
- New upstream version 1.2.1.
|
|
|
|
- Includes new tool for exporting and merging in regedit format.
|
|
|
|
|
2010-03-01 14:20:00 +00:00
|
|
|
* Mon Mar 1 2010 Richard W.M. Jones <rjones@redhat.com> - 1.2.0-2
|
2010-03-01 14:12:29 +00:00
|
|
|
- New upstream version 1.2.0.
|
|
|
|
- This includes OCaml and Perl bindings, so add these as subpackages.
|
|
|
|
|
2010-02-23 09:11:37 +00:00
|
|
|
* Mon Feb 22 2010 Richard W.M. Jones <rjones@redhat.com> - 1.1.2-3
|
|
|
|
- Missing Epoch in conflicts version fixed.
|
|
|
|
|
|
|
|
* Mon Feb 22 2010 Richard W.M. Jones <rjones@redhat.com> - 1.1.2-2
|
|
|
|
- Add Conflicts libguestfs <= 1.0.84.
|
|
|
|
|
|
|
|
* Mon Feb 22 2010 Richard W.M. Jones <rjones@redhat.com> - 1.1.2-1
|
|
|
|
- Initial Fedora RPM.
|