]>
Commit | Line | Data |
---|---|---|
93c0457c AF |
1 | # |
2 | # TODO: ruby bindings | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_without static_libs # don't build static libraries | |
6 | # | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: Windows Registry "hive" extraction library | |
9 | Name: hivex | |
e40fbf8c | 10 | Version: 1.3.6 |
41fde608 | 11 | Release: 1 |
93c0457c AF |
12 | License: LGPL v2.1 |
13 | Group: Libraries | |
14 | Source0: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz | |
e40fbf8c | 15 | # Source0-md5: 87f6101c0cd1f7954367323326f34201 |
93c0457c AF |
16 | BuildRequires: automake |
17 | BuildRequires: autoconf | |
18 | BuildRequires: libtool | |
19 | BuildRequires: perl-tools-pod | |
20 | BuildRequires: readline-devel | |
21 | BuildRequires: libxml2-devel | |
22 | BuildRequires: ocaml | |
23 | BuildRequires: ocaml-findlib-devel | |
41fde608 | 24 | BuildRequires: perl-base |
93c0457c AF |
25 | BuildRequires: perl(Test::More) |
26 | BuildRequires: perl(ExtUtils::MakeMaker) | |
27 | BuildRequires: perl(IO::Stringy) | |
28 | BuildRequires: python | |
29 | BuildRequires: python-devel | |
70341578 | 30 | BuildRequires: rpmbuild(macros) >= 1.527 |
93c0457c AF |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
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 | |
36 | registry files. | |
37 | ||
38 | %package devel | |
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} | |
43 | ||
44 | %description devel | |
45 | Header files for hivex library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki hivex. | |
49 | ||
50 | %package static | |
51 | Summary: Static hivex library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka hivex | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static hivex library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka hivex. | |
61 | ||
62 | %package -n perl-hivex | |
63 | Summary: Perl bindings for hivex library | |
64 | Group: Development/Languages/Perl | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | ||
67 | %description -n perl-hivex | |
68 | Perl bindings for hivex library. | |
69 | ||
70 | %package -n python-hivex | |
71 | Summary: Python bindings for hivex library | |
72 | Group: Development/Languages/Python | |
73 | Requires: %{name} = %{version}-%{release} | |
74 | ||
75 | %description -n python-hivex | |
76 | Python bindings for hivex library. | |
77 | ||
78 | %package -n ocaml-hivex | |
79 | Summary: OCaml bindings for hivex library | |
80 | Group: Libraries | |
81 | Requires: %{name} = %{version}-%{release} | |
82 | ||
83 | %description -n ocaml-hivex | |
84 | OCaml bindings for hivex library. | |
85 | ||
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} | |
91 | ||
92 | %description -n ocaml-hivex-devel | |
93 | Header files for ocaml-hivex library. | |
94 | ||
95 | %description -n ocaml-hivex-devel -l pl.UTF-8 | |
96 | Pliki nagłówkowe biblioteki ocaml-hivex. | |
97 | ||
98 | %prep | |
99 | %setup -q | |
100 | ||
101 | %build | |
102 | %configure \ | |
103 | ac_cv_lib_ruby_ruby_init=no \ | |
104 | ac_cv_prog_RAKE=no \ | |
105 | %{__enable_disable static_libs static} \ | |
106 | --disable-silent-rules | |
107 | ||
108 | %{__make} \ | |
109 | INSTALLDIRS=vendor | |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %{__make} install \ | |
115 | INSTALLDIRS=vendor \ | |
116 | DESTDIR=$RPM_BUILD_ROOT | |
117 | ||
118 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ | |
119 | $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
120 | ||
121 | %find_lang %{name} | |
122 | ||
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %post -p /sbin/ldconfig | |
127 | %postun -p /sbin/ldconfig | |
128 | ||
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* | |
140 | ||
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
143 | %{_libdir}/libhivex.so | |
144 | %{_includedir}/hivex.h | |
145 | %{_pkgconfigdir}/hivex.pc | |
146 | %{_mandir}/man3/hivex.3* | |
147 | ||
148 | %if %{with static_libs} | |
149 | %files static | |
150 | %defattr(644,root,root,755) | |
151 | %{_libdir}/libhivex.a | |
152 | %endif | |
153 | ||
154 | %files -n perl-hivex | |
155 | %defattr(644,root,root,755) | |
156 | %attr(755,root,root) %{_bindir}/hivexregedit | |
3fc5b4cc AF |
157 | %dir %{perl_vendorarch}/Win |
158 | %dir %{perl_vendorarch}/Win/Hivex | |
93c0457c AF |
159 | %{perl_vendorarch}/Win/Hivex.pm |
160 | %{perl_vendorarch}/Win/Hivex/Regedit.pm | |
161 | %{perl_vendorarch}/auto/Win/Hivex/Hivex.bs | |
3fc5b4cc AF |
162 | %dir %{perl_vendorarch}/auto/Win |
163 | %dir %{perl_vendorarch}/auto/Win/Hivex | |
93c0457c AF |
164 | %attr(755,root,root) %{perl_vendorarch}/auto/Win/Hivex/Hivex.so |
165 | %{_mandir}/man1/hivexregedit.1* | |
41fde608 | 166 | %{_mandir}/man3/Win::Hivex.3pm.* |
167 | %{_mandir}/man3/Win::Hivex::Regedit.3pm.* | |
93c0457c AF |
168 | |
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 | |
173 | ||
174 | %files -n ocaml-hivex | |
175 | %defattr(644,root,root,755) | |
176 | %{_libdir}/ocaml/stublibs/dllmlhivex.so | |
177 | %{_libdir}/ocaml/stublibs/dllmlhivex.so.owner | |
178 | ||
179 | %files -n ocaml-hivex-devel | |
180 | %defattr(644,root,root,755) | |
3fc5b4cc | 181 | %dir %{_libdir}/ocaml/hivex |
93c0457c AF |
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 |