3 %bcond_without python # Python bindings (any)
4 %bcond_without python2 # CPython 2.x bindings
5 %bcond_without python3 # CPython 3.x bindings
11 # see m4/${libname}.m4 />= for required version of particular library
12 %define libbfio_ver 20160108
13 %define libcdata_ver 20181216
14 %define libcerror_ver 20120425
15 %define libcfile_ver 20160409
16 %define libclocale_ver 20120425
17 %define libcnotify_ver 20120425
18 %define libcpath_ver 20180716
19 %define libcsplit_ver 20120701
20 %define libcthreads_ver 20160404
21 %define libfcache_ver 20181010
22 %define libfdata_ver 20181009
23 %define libfvalue_ver 20160131
24 %define libhmac_ver 20160802
25 %define libuna_ver 20181006
26 Summary: Library to access the storage media (SM) (split) RAW format
27 Summary(pl.UTF-8): Biblioteka służąca do dostępu do surowego (dzielonego) formatu nośnika danych (SM)
33 #Source0Download: https://github.com/libyal/libsmraw/releases
34 Source0: https://github.com/libyal/libsmraw/releases/download/%{version}/%{name}-alpha-%{version}.tar.gz
35 # Source0-md5: 510ccfd38ad5b13b173759224267fcfa
36 URL: https://github.com/libyal/libsmraw/
37 BuildRequires: autoconf >= 2.59
38 BuildRequires: automake >= 1.6
39 BuildRequires: gettext-tools >= 0.18.1
40 BuildRequires: libbfio-devel >= %{libbfio_ver}
41 BuildRequires: libcdata-devel >= %{libcdata_ver}
42 BuildRequires: libcerror-devel >= %{libcerror_ver}
43 BuildRequires: libcfile-devel >= %{libcfile_ver}
44 BuildRequires: libclocale-devel >= %{libclocale_ver}
45 BuildRequires: libcnotify-devel >= %{libcnotify_ver}
46 BuildRequires: libcpath-devel >= %{libcpath_ver}
47 BuildRequires: libcsplit-devel >= %{libcsplit_ver}
48 BuildRequires: libcthreads-devel >= %{libcthreads_ver}
49 BuildRequires: libfcache-devel >= %{libfcache_ver}
50 BuildRequires: libfdata-devel >= %{libfdata_ver}
51 BuildRequires: libfuse-devel >= 2.6
52 BuildRequires: libfvalue-devel >= %{libfvalue_ver}
53 BuildRequires: libhmac-devel >= %{libhmac_ver}
54 BuildRequires: libuna-devel >= %{libuna_ver}
55 BuildRequires: libtool
56 BuildRequires: openssl-devel >= 1.0
57 BuildRequires: pkgconfig
58 %{?with_python2:BuildRequires: python-devel >= 1:2.5}
59 %{?with_python3:BuildRequires: python3-devel >= 1:3.2}
60 Requires: libbfio >= %{libbfio_ver}
61 Requires: libcdata >= %{libcdata_ver}
62 Requires: libcerror >= %{libcerror_ver}
63 Requires: libcfile >= %{libcfile_ver}
64 Requires: libclocale >= %{libclocale_ver}
65 Requires: libcnotify >= %{libcnotify_ver}
66 Requires: libcpath >= %{libcpath_ver}
67 Requires: libcsplit >= %{libcsplit_ver}
68 Requires: libcthreads >= %{libcthreads_ver}
69 Requires: libfcache >= %{libfcache_ver}
70 Requires: libfdata >= %{libfdata_ver}
71 Requires: libfvalue >= %{libfvalue_ver}
72 Requires: libuna >= %{libuna_ver}
73 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76 libsmraw is a library to access the storage media (SM) (split) RAW
79 %description -l pl.UTF-8
80 libsmraw to biblioteka służąca do dostępu do surowego (dzielonego)
81 formatu nośnika danych (SM - Storage Media).
84 Summary: Header files for libsmraw library
85 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsmraw
86 Group: Development/Libraries
87 Requires: %{name} = %{version}-%{release}
88 Requires: libbfio-devel >= %{libbfio_ver}
89 Requires: libcdata-devel >= %{libcdata_ver}
90 Requires: libcerror-devel >= %{libcerror_ver}
91 Requires: libcfile-devel >= %{libcfile_ver}
92 Requires: libclocale-devel >= %{libclocale_ver}
93 Requires: libcnotify-devel >= %{libcnotify_ver}
94 Requires: libcpath-devel >= %{libcpath_ver}
95 Requires: libcsplit-devel >= %{libcsplit_ver}
96 Requires: libcthreads-devel >= %{libcthreads_ver}
97 Requires: libfcache-devel >= %{libfcache_ver}
98 Requires: libfdata-devel >= %{libfdata_ver}
99 Requires: libfvalue-devel >= %{libfvalue_ver}
100 Requires: libuna-devel >= %{libuna_ver}
103 Header files for libsmraw library.
105 %description devel -l pl.UTF-8
106 Pliki nagłówkowe biblioteki libsmraw.
109 Summary: Static libsmraw library
110 Summary(pl.UTF-8): Statyczna biblioteka libsmraw
111 Group: Development/Libraries
112 Requires: %{name}-devel = %{version}-%{release}
115 Static libsmraw library.
117 %description static -l pl.UTF-8
118 Statyczna biblioteka libsmraw.
121 Summary: Tools for libsmraw library
122 Summary(pl.UTF-8): Narzędzia do biblioteki smraw
123 Group: Applications/System
124 Requires: %{name} = %{version}-%{release}
125 Requires: libfuse >= 2.6
126 Requires: libhmac >= %{libhmac_ver}
129 Tools for libsmraw library.
131 %description tools -l pl.UTF-8
132 Narzędzia do biblioteki smraw.
134 %package -n python-pysmraw
135 Summary: Python 2 bindings for libsmraw library
136 Summary(pl.UTF-8): Wiązania Pythona 2 do biblioteki libsmraw
137 Group: Libraries/Python
138 Requires: %{name} = %{version}-%{release}
140 %description -n python-pysmraw
141 Python 2 bindings for libsmraw library.
143 %description -n python-pysmraw -l pl.UTF-8
144 Wiązania Pythona 2 do biblioteki libsmraw.
146 %package -n python3-pysmraw
147 Summary: Python 3 bindings for libsmraw library
148 Summary(pl.UTF-8): Wiązania Pythona 3 do biblioteki libsmraw
149 Group: Libraries/Python
150 Requires: %{name} = %{version}-%{release}
152 %description -n python3-pysmraw
153 Python 3 bindings for libsmraw library.
155 %description -n python3-pysmraw -l pl.UTF-8
156 Wiązania Pythona 3 do biblioteki libsmraw.
169 %{?with_python2:--enable-python2} \
170 %{?with_python3:--enable-python3}
174 rm -rf $RPM_BUILD_ROOT
177 DESTDIR=$RPM_BUILD_ROOT
179 # obsoleted by pkg-config
180 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsmraw.la
183 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/pysmraw.{la,a}
186 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/pysmraw.{la,a}
190 rm -rf $RPM_BUILD_ROOT
192 %post -p /sbin/ldconfig
193 %postun -p /sbin/ldconfig
196 %defattr(644,root,root,755)
197 %doc AUTHORS ChangeLog README
198 %attr(755,root,root) %{_libdir}/libsmraw.so.*.*.*
199 %attr(755,root,root) %ghost %{_libdir}/libsmraw.so.1
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{_libdir}/libsmraw.so
204 %{_includedir}/libsmraw
205 %{_includedir}/libsmraw.h
206 %{_pkgconfigdir}/libsmraw.pc
207 %{_mandir}/man3/libsmraw.3*
210 %defattr(644,root,root,755)
211 %{_libdir}/libsmraw.a
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_bindir}/smrawmount
216 %attr(755,root,root) %{_bindir}/smrawverify
217 %{_mandir}/man1/smrawmount.1*
220 %files -n python-pysmraw
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{py_sitedir}/pysmraw.so
226 %files -n python3-pysmraw
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{py3_sitedir}/pysmraw.so