X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=hivex.spec;h=8051970ac627c55b153efb11e63799daa2727349;hb=d0bfe70ca6f1213b32650ff55c18496c47e6f70b;hp=a42fc69f620bcb9b07ecf736edfe8e88bc777fd3;hpb=db1c42afbf4e16bae1e88f6479f77aad4b372964;p=packages%2Fhivex.git diff --git a/hivex.spec b/hivex.spec index a42fc69..8051970 100644 --- a/hivex.spec +++ b/hivex.spec @@ -1,23 +1,28 @@ -# TODO: __pycache__ in python3-hivex # # Conditional build: -%bcond_without static_libs # don't build static libraries +%bcond_without static_libs # static library %bcond_without python3 # CPython 3 module +%bcond_without ocaml_opt # OCaml native optimized binaries (bytecode is always built) +%bcond_without ruby # Ruby bindings + +%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9 +%undefine with_ocaml_opt +%endif # %include /usr/lib/rpm/macros.perl Summary: Windows Registry "hive" extraction library Summary(pl.UTF-8): Biblioteka do wydobywania danych z plików "hive" Rejestru Windows Name: hivex -Version: 1.3.11 -Release: 1 +Version: 1.3.14 +Release: 7 License: LGPL v2.1 Group: Libraries Source0: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz -# Source0-md5: be99b2db9913eab10b9b39219cec55a9 +# Source0-md5: 9fb5ed4525d30a84b216a05150be1558 URL: http://libguestfs.org/ BuildRequires: autoconf >= 2.50 BuildRequires: automake -BuildRequires: gettext-devel >= 0.17 +BuildRequires: gettext-tools >= 0.17 BuildRequires: libtool BuildRequires: libxml2-devel >= 2.0 BuildRequires: ocaml @@ -35,9 +40,11 @@ BuildRequires: python3 >= 1:3.2 BuildRequires: python3-devel >= 1:3.2 %endif BuildRequires: readline-devel -BuildRequires: rpmbuild(macros) >= 1.527 +BuildRequires: rpmbuild(macros) >= 1.714 +%if %{with ruby} BuildRequires: ruby-devel BuildRequires: ruby-rake +%endif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -159,9 +166,11 @@ install -d build-py3 cd build-py3 ../%configure \ PYTHON="%{__python3}" \ + --with-python-installdir=%{py3_sitedir} \ --disable-ocaml \ --disable-perl \ - --disable-ruby + --disable-ruby \ + --disable-silent-rules %{__make} cd .. @@ -169,6 +178,7 @@ cd .. %configure \ --disable-silent-rules \ + --with-python-installdir=%{py_sitedir} \ %{__enable_disable static_libs static} %{__make} \ @@ -183,6 +193,9 @@ rm -rf $RPM_BUILD_ROOT DESTDIR=$RPM_BUILD_ROOT %{__make} -C build-py3/python install \ DESTDIR=$RPM_BUILD_ROOT + +%py3_comp $RPM_BUILD_ROOT%{py3_sitedir} +%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.la %endif @@ -240,12 +253,14 @@ rm -rf $RPM_BUILD_ROOT %dir %{_libdir}/ocaml/hivex %{_libdir}/ocaml/hivex/META %{_libdir}/ocaml/hivex/hivex.cmi -%{_libdir}/ocaml/hivex/hivex.cmx %{_libdir}/ocaml/hivex/hivex.mli %{_libdir}/ocaml/hivex/libmlhivex.a -%{_libdir}/ocaml/hivex/mlhivex.a %{_libdir}/ocaml/hivex/mlhivex.cma +%if %{with ocaml_opt} +%{_libdir}/ocaml/hivex/hivex.cmx +%{_libdir}/ocaml/hivex/mlhivex.a %{_libdir}/ocaml/hivex/mlhivex.cmxa +%endif %files -n perl-hivex %defattr(644,root,root,755) @@ -258,8 +273,8 @@ rm -rf $RPM_BUILD_ROOT %dir %{perl_vendorarch}/auto/Win/Hivex %attr(755,root,root) %{perl_vendorarch}/auto/Win/Hivex/Hivex.so %{_mandir}/man1/hivexregedit.1* -%{_mandir}/man3/Win::Hivex.3pm.* -%{_mandir}/man3/Win::Hivex::Regedit.3pm.* +%{_mandir}/man3/Win::Hivex.3pm* +%{_mandir}/man3/Win::Hivex::Regedit.3pm* %files -n python-hivex %defattr(644,root,root,755) @@ -274,7 +289,9 @@ rm -rf $RPM_BUILD_ROOT %{py3_sitedir}/hivex %endif +%if %{with ruby} %files -n ruby-hivex %defattr(644,root,root,755) %attr(755,root,root) %{ruby_vendorarchdir}/_hivex.so %{ruby_vendorlibdir}/hivex.rb +%endif