]> git.pld-linux.org Git - packages/libewf.git/blame - libewf.spec
- updated to 20230212
[packages/libewf.git] / libewf.spec
CommitLineData
73a13fa3
JB
1#
2# Conditional build:
fc3104c5
JB
3%bcond_without python # Python bindings (any)
4%bcond_without python2 # CPython 2.x bindings
5%bcond_without python3 # CPython 3.x bindings
73a13fa3 6#
fc3104c5
JB
7%if %{without python}
8%undefine with_python2
9%undefine with_python3
10%endif
11# see m4/${libname}.m4 />= for required version of particular library
76e0a3ec
JB
12%define libbfio_ver 20201125
13%define libcaes_ver 20220529
14%define libcdata_ver 20230108
fc3104c5
JB
15%define libcdatetime_ver 20141018
16%define libcerror_ver 20120425
17%define libcfile_ver 20160409
18%define libclocale_ver 20120425
19%define libcnotify_ver 20120425
76e0a3ec 20%define libcpath_ver 20180716
fc3104c5
JB
21%define libcsplit_ver 20120701
22%define libcthreads_ver 20160404
76e0a3ec
JB
23%define libfcache_ver 20191109
24%define libfdata_ver 20201129
25%define libfdatetime_ver 20180910
fc3104c5 26%define libfguid_ver 20120426
76e0a3ec
JB
27%define libfvalue_ver 20200711
28%define libhmac_ver 20200104
fc3104c5
JB
29%define libodraw_ver 20120630
30%define libsmdev_ver 20140406
31%define libsmraw_ver 20120630
76e0a3ec 32%define libuna_ver 20210801
73a13fa3
JB
33Summary: Library to support the Expert Witness Compression Format
34Summary(pl.UTF-8): Biblioteka obsługująca format Expert Witness Compression Format
bcfbb329 35Name: libewf
76e0a3ec
JB
36Version: 20230212
37Release: 1
73a13fa3 38License: LGPL v3+
bcfbb329 39Group: Libraries
fc3104c5
JB
40#Source0Download: https://github.com/libyal/libewf/releases
41Source0: https://github.com/libyal/libewf/releases/download/%{version}/%{name}-experimental-%{version}.tar.gz
76e0a3ec 42# Source0-md5: a3f85c4cefc0b760858ea357093b63a2
73a13fa3 43URL: https://github.com/libyal/libewf/
76e0a3ec 44BuildRequires: autoconf >= 2.71
73a13fa3
JB
45BuildRequires: automake >= 1.6
46BuildRequires: bzip2-devel >= 1.0
76e0a3ec 47BuildRequires: gettext-tools >= 0.21
fc3104c5
JB
48BuildRequires: libbfio-devel >= %{libbfio_ver}
49BuildRequires: libcaes-devel >= %{libcaes_ver}
50BuildRequires: libcdata-devel >= %{libcdata_ver}
51BuildRequires: libcdatetime-devel >= %{libcdatetime_ver}
52BuildRequires: libcerror-devel >= %{libcerror_ver}
53BuildRequires: libcfile-devel >= %{libcfile_ver}
54BuildRequires: libclocale-devel >= %{libclocale_ver}
55BuildRequires: libcnotify-devel >= %{libcnotify_ver}
56BuildRequires: libcpath-devel >= %{libcpath_ver}
57BuildRequires: libcsplit-devel >= %{libcsplit_ver}
fc3104c5
JB
58BuildRequires: libcthreads-devel >= %{libcthreads_ver}
59BuildRequires: libfcache-devel >= %{libfcache_ver}
60BuildRequires: libfdata-devel >= %{libfdata_ver}
76e0a3ec 61BuildRequires: libfdatetime-devel >= %{libfdatetime_ver}
fc3104c5 62BuildRequires: libfguid-devel >= %{libfguid_ver}
73a13fa3 63BuildRequires: libfuse-devel >= 2.6
fc3104c5
JB
64BuildRequires: libfvalue-devel >= %{libfvalue_ver}
65BuildRequires: libhmac-devel >= %{libhmac_ver}
66BuildRequires: libodraw-devel >= %{libodraw_ver}
67BuildRequires: libsmdev-devel >= %{libsmdev_ver}
68BuildRequires: libsmraw-devel >= %{libsmraw_ver}
69BuildRequires: libuna-devel >= %{libuna_ver}
76e0a3ec 70BuildRequires: libtool >= 2:2
73a13fa3
JB
71BuildRequires: libuuid-devel >= 2.20
72BuildRequires: openssl-devel >= 1.0
fc3104c5
JB
73%{?with_python2:BuildRequires: python-devel >= 1:2.5}
74%{?with_python3:BuildRequires: python3-devel >= 1:3.2}
73a13fa3 75BuildRequires: zlib-devel >= 1.2.5
fc3104c5
JB
76Requires: bzip2 >= 1.0
77Requires: libbfio >= %{libbfio_ver}
78Requires: libcaes >= %{libcaes_ver}
79Requires: libcdata >= %{libcdata_ver}
80Requires: libcerror >= %{libcerror_ver}
81Requires: libcfile >= %{libcfile_ver}
82Requires: libclocale >= %{libclocale_ver}
83Requires: libcnotify >= %{libcnotify_ver}
84Requires: libcpath >= %{libcpath_ver}
85Requires: libcsplit >= %{libcsplit_ver}
86Requires: libcthreads >= %{libcthreads_ver}
87Requires: libfcache >= %{libfcache_ver}
88Requires: libfdata >= %{libfdata_ver}
76e0a3ec 89Requires: libfdatetime >= %{libfdatetime_ver}
fc3104c5
JB
90Requires: libfguid >= %{libfguid_ver}
91Requires: libfvalue >= %{libfvalue_ver}
92Requires: libhmac >= %{libhmac_ver}
93Requires: libuna >= %{libuna_ver}
94Requires: zlib >= 1.2.5
bcfbb329
JB
95BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
96
97%description
98libewf is a library for support of the Expert Witness Compression
99Format (EWF). It allows you to read media information of EWF files in
100the SMART (EWF-S01) format and the EnCase (EWF-E01) format, and to
101read files created by EnCase 1 to 6, linen and FTK Imager.
102
103%description -l pl.UTF-8
104libewf to biblioteka obsługująca format kompresji EWF (Expert Witness
105Compression Format). Pozwala odczytywać informacje z plików EWF w
106formacie SMART (EWF-S01) i EnCase (EWF-E01) oraz czytać pliki
107utworzone przez EnCase w wersji 1 do 6, linen i FTK Imager.
108
109%package devel
110Summary: Header files for libewf library
111Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libewf
112Group: Development/Libraries
113Requires: %{name} = %{version}-%{release}
73a13fa3 114Requires: bzip2-devel >= 1.0
fc3104c5
JB
115Requires: libbfio-devel >= %{libbfio_ver}
116Requires: libcaes-devel >= %{libcaes_ver}
117Requires: libcdata-devel >= %{libcdata_ver}
118Requires: libcerror-devel >= %{libcerror_ver}
119Requires: libcfile-devel >= %{libcfile_ver}
120Requires: libclocale-devel >= %{libclocale_ver}
121Requires: libcnotify-devel >= %{libcnotify_ver}
122Requires: libcpath-devel >= %{libcpath_ver}
123Requires: libcsplit-devel >= %{libcsplit_ver}
fc3104c5
JB
124Requires: libcthreads-devel >= %{libcthreads_ver}
125Requires: libfcache-devel >= %{libfcache_ver}
126Requires: libfdata-devel >= %{libfdata_ver}
76e0a3ec 127Requires: libfdatetime-devel >= %{libfdatetime_ver}
fc3104c5
JB
128Requires: libfguid-devel >= %{libfguid_ver}
129Requires: libfvalue-devel >= %{libfvalue_ver}
130Requires: libhmac-devel >= %{libhmac_ver}
131Requires: libuna-devel >= %{libuna_ver}
73a13fa3
JB
132Requires: openssl-devel >= 1.0
133Requires: zlib-devel >= 1.2.5
bcfbb329
JB
134
135%description devel
136Header files for libewf library.
137
138%description devel -l pl.UTF-8
139Pliki nagłówkowe biblioteki libewf.
140
141%package static
142Summary: Static libewf library
143Summary(pl.UTF-8): Statyczna biblioteka libewf
144Group: Development/Libraries
145Requires: %{name}-devel = %{version}-%{release}
146
147%description static
148Static libewf library.
149
150%description static -l pl.UTF-8
151Statyczna biblioteka libewf.
152
73a13fa3
JB
153%package tools
154Summary: Tools to support the Expert Witness Compression Format
155Summary(pl.UTF-8): Narzędzia obsługujące format Expert Witness Compression Format
156Group: Applications/File
157Requires: %{name} = %{version}-%{release}
fc3104c5 158Requires: libcdatetime >= %{libcdatetime_ver}
73a13fa3 159Requires: libfuse >= 2.6
fc3104c5
JB
160Requires: libodraw >= %{libodraw_ver}
161Requires: libsmdev >= %{libsmdev_ver}
162Requires: libsmraw >= %{libsmraw_ver}
163Requires: libuuid >= 2.20
73a13fa3
JB
164
165%description tools
166Tools to support the Expert Witness Compression Format.
167
168%description tools -l pl.UTF-8
169Narzędzia obsługujące format Expert Witness Compression Format.
170
171%package -n python-pyewf
fc3104c5
JB
172Summary: Python 2 bindings for libewf library
173Summary(pl.UTF-8): Wiązania Pythona 2 do biblioteki libewf
73a13fa3
JB
174Group: Libraries/Python
175Requires: %{name} = %{version}-%{release}
176
177%description -n python-pyewf
fc3104c5 178Python 2 bindings for libewf library.
73a13fa3
JB
179
180%description -n python-pyewf -l pl.UTF-8
fc3104c5
JB
181Wiązania Pythona 2 do biblioteki libewf.
182
183%package -n python3-pyewf
184Summary: Python 3 bindings for libewf library
185Summary(pl.UTF-8): Wiązania Pythona 3 do biblioteki libewf
186Group: Libraries/Python
187Requires: %{name} = %{version}-%{release}
188
189%description -n python3-pyewf
190Python 3 bindings for libewf library.
191
192%description -n python3-pyewf -l pl.UTF-8
193Wiązania Pythona 3 do biblioteki libewf.
73a13fa3 194
bcfbb329 195%prep
fc3104c5 196%setup -q
bcfbb329
JB
197
198%build
73a13fa3 199%{__gettextize}
bcfbb329
JB
200%{__libtoolize}
201%{__aclocal}
202%{__autoconf}
203%{__autoheader}
204%{__automake}
73a13fa3 205%configure \
fc3104c5
JB
206 %{?with_python2:--enable-python2} \
207 %{?with_python3:--enable-python3}
bcfbb329
JB
208%{__make}
209
210%install
211rm -rf $RPM_BUILD_ROOT
212
213%{__make} install \
214 DESTDIR=$RPM_BUILD_ROOT
215
73a13fa3
JB
216# obsoleted by pkg-config
217%{__rm} $RPM_BUILD_ROOT%{_libdir}/libewf.la
218
fc3104c5 219%if %{with python2}
73a13fa3
JB
220%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/pyewf.{la,a}
221%endif
fc3104c5
JB
222%if %{with python3}
223%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/pyewf.{la,a}
224%endif
73a13fa3 225
bcfbb329
JB
226%clean
227rm -rf $RPM_BUILD_ROOT
228
229%post -p /sbin/ldconfig
230%postun -p /sbin/ldconfig
231
232%files
233%defattr(644,root,root,755)
234%doc AUTHORS COPYING ChangeLog NEWS
bcfbb329 235%attr(755,root,root) %{_libdir}/libewf.so.*.*.*
fc3104c5 236%attr(755,root,root) %ghost %{_libdir}/libewf.so.3
bcfbb329
JB
237
238%files devel
239%defattr(644,root,root,755)
bcfbb329 240%attr(755,root,root) %{_libdir}/libewf.so
bcfbb329
JB
241%{_includedir}/libewf
242%{_includedir}/libewf.h
243%{_pkgconfigdir}/libewf.pc
244%{_mandir}/man3/libewf.3*
245
246%files static
247%defattr(644,root,root,755)
248%{_libdir}/libewf.a
73a13fa3
JB
249
250%files tools
251%defattr(644,root,root,755)
252%attr(755,root,root) %{_bindir}/ewfacquire
253%attr(755,root,root) %{_bindir}/ewfacquirestream
254%attr(755,root,root) %{_bindir}/ewfdebug
255%attr(755,root,root) %{_bindir}/ewfexport
256%attr(755,root,root) %{_bindir}/ewfinfo
257%attr(755,root,root) %{_bindir}/ewfmount
258%attr(755,root,root) %{_bindir}/ewfrecover
259%attr(755,root,root) %{_bindir}/ewfverify
260%{_mandir}/man1/ewfacquire.1*
261%{_mandir}/man1/ewfacquirestream.1*
262%{_mandir}/man1/ewfexport.1*
263%{_mandir}/man1/ewfinfo.1*
264%{_mandir}/man1/ewfmount.1*
265%{_mandir}/man1/ewfrecover.1*
266%{_mandir}/man1/ewfverify.1*
267
fc3104c5 268%if %{with python2}
73a13fa3
JB
269%files -n python-pyewf
270%defattr(644,root,root,755)
271%attr(755,root,root) %{py_sitedir}/pyewf.so
272%endif
fc3104c5
JB
273
274%if %{with python3}
275%files -n python3-pyewf
276%defattr(644,root,root,755)
277%attr(755,root,root) %{py3_sitedir}/pyewf.so
278%endif
This page took 0.65541 seconds and 4 git commands to generate.