5 %bcond_without static_libs # don't build static libraries
7 %include /usr/lib/rpm/macros.perl
8 Summary: Windows Registry "hive" extraction library
14 Source0: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz
15 # Source0-md5: fa38e8ea348c750046b4f34c573e0c32
16 BuildRequires: automake
17 BuildRequires: autoconf
18 BuildRequires: libtool
19 BuildRequires: perl-tools-pod
20 BuildRequires: readline-devel
21 BuildRequires: libxml2-devel
23 BuildRequires: ocaml-findlib-devel
25 BuildRequires: perl(Test::More)
26 BuildRequires: perl(ExtUtils::MakeMaker)
27 BuildRequires: perl(IO::Stringy)
29 BuildRequires: python-devel
30 BuildRequires: rpmbuild(macros) >= 1.527
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Hivex is a library for extracting the contents of Windows Registry
35 "hive" files. It is designed to be secure against buggy or malicious
39 Summary: Header files for hivex library
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki hivex
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
45 Header files for hivex library.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki hivex.
51 Summary: Static hivex library
52 Summary(pl.UTF-8): Statyczna biblioteka hivex
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
59 %description static -l pl.UTF-8
60 Statyczna biblioteka hivex.
62 %package -n perl-hivex
63 Summary: Perl bindings for hivex library
64 Group: Development/Languages/Perl
65 Requires: %{name} = %{version}-%{release}
67 %description -n perl-hivex
68 Perl bindings for hivex library.
70 %package -n python-hivex
71 Summary: Python bindings for hivex library
72 Group: Development/Languages/Python
73 Requires: %{name} = %{version}-%{release}
75 %description -n python-hivex
76 Python bindings for hivex library.
78 %package -n ocaml-hivex
79 Summary: OCaml bindings for hivex library
81 Requires: %{name} = %{version}-%{release}
83 %description -n ocaml-hivex
84 OCaml bindings for hivex library.
86 %package -n ocaml-hivex-devel
87 Summary: Header files for ocamlhivex library
88 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ocaml-hivex
89 Group: Development/Libraries
90 Requires: ocaml-hivex = %{version}-%{release}
92 %description -n ocaml-hivex-devel
93 Header files for ocaml-hivex library.
95 %description -n ocaml-hivex-devel -l pl.UTF-8
96 Pliki nagłówkowe biblioteki ocaml-hivex.
103 ac_cv_lib_ruby_ruby_init=no \
105 %{__enable_disable static_libs static} \
106 --disable-silent-rules
112 rm -rf $RPM_BUILD_ROOT
116 DESTDIR=$RPM_BUILD_ROOT
118 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \
119 $RPM_BUILD_ROOT%{py_sitedir}/*.la
124 rm -rf $RPM_BUILD_ROOT
126 %post -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
129 %files -f %{name}.lang
130 %defattr(644,root,root,755)
131 %doc ChangeLog README TODO
132 %attr(755,root,root) %{_bindir}/hivexget
133 %attr(755,root,root) %{_bindir}/hivexml
134 %attr(755,root,root) %{_bindir}/hivexsh
135 %attr(755,root,root) %{_libdir}/libhivex.so.*.*.*
136 %attr(755,root,root) %ghost %{_libdir}/libhivex.so.0
137 %{_mandir}/man1/hivexget.1*
138 %{_mandir}/man1/hivexml.1*
139 %{_mandir}/man1/hivexsh.1*
142 %defattr(644,root,root,755)
143 %{_libdir}/libhivex.so
144 %{_includedir}/hivex.h
145 %{_pkgconfigdir}/hivex.pc
146 %{_mandir}/man3/hivex.3*
148 %if %{with static_libs}
150 %defattr(644,root,root,755)
151 %{_libdir}/libhivex.a
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_bindir}/hivexregedit
157 %dir %{perl_vendorarch}/Win
158 %dir %{perl_vendorarch}/Win/Hivex
159 %{perl_vendorarch}/Win/Hivex.pm
160 %{perl_vendorarch}/Win/Hivex/Regedit.pm
161 %{perl_vendorarch}/auto/Win/Hivex/Hivex.bs
162 %dir %{perl_vendorarch}/auto/Win
163 %dir %{perl_vendorarch}/auto/Win/Hivex
164 %attr(755,root,root) %{perl_vendorarch}/auto/Win/Hivex/Hivex.so
165 %{_mandir}/man1/hivexregedit.1*
166 %{_mandir}/man3/Win::Hivex.3pm.gz
167 %{_mandir}/man3/Win::Hivex::Regedit.3pm.gz
169 %files -n python-hivex
170 %defattr(644,root,root,755)
171 %{py_sitedir}/hivex.py
172 %attr(755,root,root) %{py_sitedir}/libhivexmod.so
174 %files -n ocaml-hivex
175 %defattr(644,root,root,755)
176 %{_libdir}/ocaml/stublibs/dllmlhivex.so
177 %{_libdir}/ocaml/stublibs/dllmlhivex.so.owner
179 %files -n ocaml-hivex-devel
180 %defattr(644,root,root,755)
181 %dir %{_libdir}/ocaml/hivex
182 %{_libdir}/ocaml/hivex/META
183 %{_libdir}/ocaml/hivex/hivex.cmi
184 %{_libdir}/ocaml/hivex/hivex.cmx
185 %{_libdir}/ocaml/hivex/hivex.mli
186 %{_libdir}/ocaml/hivex/libmlhivex.a
187 %{_libdir}/ocaml/hivex/mlhivex.a
188 %{_libdir}/ocaml/hivex/mlhivex.cma
189 %{_libdir}/ocaml/hivex/mlhivex.cmxa