]>
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 | |
5d1762e1 | 9 | Summary(pl.UTF-8): Biblioteka do wydobywania danych z plików "hive" Rejestru Windows |
93c0457c | 10 | Name: hivex |
e40fbf8c | 11 | Version: 1.3.6 |
41fde608 | 12 | Release: 1 |
93c0457c AF |
13 | License: LGPL v2.1 |
14 | Group: Libraries | |
15 | Source0: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz | |
e40fbf8c | 16 | # Source0-md5: 87f6101c0cd1f7954367323326f34201 |
93c0457c | 17 | BuildRequires: autoconf |
5d1762e1 | 18 | BuildRequires: automake |
93c0457c | 19 | BuildRequires: libtool |
93c0457c AF |
20 | BuildRequires: libxml2-devel |
21 | BuildRequires: ocaml | |
5d1762e1 JB |
22 | BuildRequires: ocaml-findlib |
23 | #-devel | |
24 | BuildRequires: perl-ExtUtils-MakeMaker | |
25 | BuildRequires: perl-IO-stringy | |
26 | BuildRequires: perl-Test-Simple | |
41fde608 | 27 | BuildRequires: perl-base |
5d1762e1 | 28 | BuildRequires: perl-tools-pod |
93c0457c AF |
29 | BuildRequires: python |
30 | BuildRequires: python-devel | |
5d1762e1 | 31 | BuildRequires: readline-devel |
70341578 | 32 | BuildRequires: rpmbuild(macros) >= 1.527 |
93c0457c AF |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | Hivex is a library for extracting the contents of Windows Registry | |
37 | "hive" files. It is designed to be secure against buggy or malicious | |
38 | registry files. | |
39 | ||
5d1762e1 JB |
40 | %description -l pl.UTF-8 |
41 | Hivex to biblioteka do wydobywania zawartości plików "hive" Rejestru | |
42 | Windows. Została zaprojektowana w celu ochrony przez błędnymi lub | |
43 | niebezpiecznymi plikami rejestru. | |
44 | ||
93c0457c AF |
45 | %package devel |
46 | Summary: Header files for hivex library | |
47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki hivex | |
48 | Group: Development/Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description devel | |
52 | Header files for hivex library. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe biblioteki hivex. | |
56 | ||
57 | %package static | |
58 | Summary: Static hivex library | |
59 | Summary(pl.UTF-8): Statyczna biblioteka hivex | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static hivex library. | |
65 | ||
66 | %description static -l pl.UTF-8 | |
67 | Statyczna biblioteka hivex. | |
68 | ||
5d1762e1 JB |
69 | %package -n ocaml-hivex |
70 | Summary: OCaml bindings for hivex library | |
71 | Summary(pl.UTF-8): Wiązania OCamla do biblioteki hivex | |
72 | Group: Libraries | |
73 | Requires: %{name} = %{version}-%{release} | |
74 | ||
75 | %description -n ocaml-hivex | |
76 | OCaml bindings for hivex library. | |
77 | ||
78 | %description -n ocaml-hivex -l pl.UTF-8 | |
79 | Wiązania OCamla do biblioteki hivex. | |
80 | ||
81 | %package -n ocaml-hivex-devel | |
82 | Summary: Development files for hivex OCaml bindings | |
83 | Summary(pl.UTF-8): Pliki programistyczne wiązań OCamla do biblioteki hivex | |
84 | Group: Development/Libraries | |
85 | Requires: ocaml-hivex = %{version}-%{release} | |
86 | ||
87 | %description -n ocaml-hivex-devel | |
88 | Development files for hivex OCaml bindings. | |
89 | ||
90 | %description -n ocaml-hivex-devel -l pl.UTF-8 | |
91 | Pliki programistyczne wiązań OCamla do biblioteki hivex. | |
92 | ||
93c0457c AF |
93 | %package -n perl-hivex |
94 | Summary: Perl bindings for hivex library | |
5d1762e1 | 95 | Summary(pl.UTF-8): Wiązania Perla do biblioteki hivex |
93c0457c AF |
96 | Group: Development/Languages/Perl |
97 | Requires: %{name} = %{version}-%{release} | |
98 | ||
99 | %description -n perl-hivex | |
100 | Perl bindings for hivex library. | |
101 | ||
5d1762e1 JB |
102 | %description -n perl-hivex -l pl.UTF-8 |
103 | Wiązania Perla do biblioteki hivex. | |
104 | ||
93c0457c AF |
105 | %package -n python-hivex |
106 | Summary: Python bindings for hivex library | |
5d1762e1 | 107 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki hivex |
93c0457c AF |
108 | Group: Development/Languages/Python |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
111 | %description -n python-hivex | |
112 | Python bindings for hivex library. | |
113 | ||
5d1762e1 JB |
114 | %description -n python-hivex -l pl.UTF-8 |
115 | Wiązania Pythona do biblioteki hivex. | |
93c0457c AF |
116 | |
117 | %prep | |
118 | %setup -q | |
119 | ||
120 | %build | |
121 | %configure \ | |
122 | ac_cv_lib_ruby_ruby_init=no \ | |
123 | ac_cv_prog_RAKE=no \ | |
124 | %{__enable_disable static_libs static} \ | |
125 | --disable-silent-rules | |
126 | ||
127 | %{__make} \ | |
128 | INSTALLDIRS=vendor | |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %{__make} install \ | |
134 | INSTALLDIRS=vendor \ | |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | ||
137 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ | |
138 | $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
139 | ||
5d1762e1 JB |
140 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
141 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
142 | %py_postclean | |
143 | ||
93c0457c AF |
144 | %find_lang %{name} |
145 | ||
146 | %clean | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %post -p /sbin/ldconfig | |
150 | %postun -p /sbin/ldconfig | |
151 | ||
152 | %files -f %{name}.lang | |
153 | %defattr(644,root,root,755) | |
154 | %doc ChangeLog README TODO | |
155 | %attr(755,root,root) %{_bindir}/hivexget | |
156 | %attr(755,root,root) %{_bindir}/hivexml | |
157 | %attr(755,root,root) %{_bindir}/hivexsh | |
158 | %attr(755,root,root) %{_libdir}/libhivex.so.*.*.* | |
159 | %attr(755,root,root) %ghost %{_libdir}/libhivex.so.0 | |
160 | %{_mandir}/man1/hivexget.1* | |
161 | %{_mandir}/man1/hivexml.1* | |
162 | %{_mandir}/man1/hivexsh.1* | |
163 | ||
164 | %files devel | |
165 | %defattr(644,root,root,755) | |
5d1762e1 | 166 | %attr(755,root,root) %{_libdir}/libhivex.so |
93c0457c AF |
167 | %{_includedir}/hivex.h |
168 | %{_pkgconfigdir}/hivex.pc | |
169 | %{_mandir}/man3/hivex.3* | |
170 | ||
171 | %if %{with static_libs} | |
172 | %files static | |
173 | %defattr(644,root,root,755) | |
174 | %{_libdir}/libhivex.a | |
175 | %endif | |
176 | ||
5d1762e1 JB |
177 | %files -n ocaml-hivex |
178 | %defattr(644,root,root,755) | |
179 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllmlhivex.so | |
180 | %{_libdir}/ocaml/stublibs/dllmlhivex.so.owner | |
181 | ||
182 | %files -n ocaml-hivex-devel | |
183 | %defattr(644,root,root,755) | |
184 | %dir %{_libdir}/ocaml/hivex | |
185 | %{_libdir}/ocaml/hivex/META | |
186 | %{_libdir}/ocaml/hivex/hivex.cmi | |
187 | %{_libdir}/ocaml/hivex/hivex.cmx | |
188 | %{_libdir}/ocaml/hivex/hivex.mli | |
189 | %{_libdir}/ocaml/hivex/libmlhivex.a | |
190 | %{_libdir}/ocaml/hivex/mlhivex.a | |
191 | %{_libdir}/ocaml/hivex/mlhivex.cma | |
192 | %{_libdir}/ocaml/hivex/mlhivex.cmxa | |
193 | ||
93c0457c AF |
194 | %files -n perl-hivex |
195 | %defattr(644,root,root,755) | |
196 | %attr(755,root,root) %{_bindir}/hivexregedit | |
3fc5b4cc AF |
197 | %dir %{perl_vendorarch}/Win |
198 | %dir %{perl_vendorarch}/Win/Hivex | |
93c0457c AF |
199 | %{perl_vendorarch}/Win/Hivex.pm |
200 | %{perl_vendorarch}/Win/Hivex/Regedit.pm | |
3fc5b4cc AF |
201 | %dir %{perl_vendorarch}/auto/Win |
202 | %dir %{perl_vendorarch}/auto/Win/Hivex | |
5d1762e1 | 203 | %{perl_vendorarch}/auto/Win/Hivex/Hivex.bs |
93c0457c AF |
204 | %attr(755,root,root) %{perl_vendorarch}/auto/Win/Hivex/Hivex.so |
205 | %{_mandir}/man1/hivexregedit.1* | |
41fde608 | 206 | %{_mandir}/man3/Win::Hivex.3pm.* |
207 | %{_mandir}/man3/Win::Hivex::Regedit.3pm.* | |
93c0457c AF |
208 | |
209 | %files -n python-hivex | |
210 | %defattr(644,root,root,755) | |
93c0457c | 211 | %attr(755,root,root) %{py_sitedir}/libhivexmod.so |
5d1762e1 | 212 | %{py_sitedir}/hivex.py[co] |