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