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