2 # - build against system lzma if possible
3 # - some bundled qemu source?
6 %bcond_without fuse # without FUSE support
7 %bcond_without python # without Python support
8 %bcond_with system_lzma # building against system lzma instead of local copy
9 %bcond_without static_libs # don't build static libraries
10 %bcond_without s3 # without Amazon S3
11 %bcond_without qemu # without QEMU support
13 Summary: Library to support the Advanced Forensic Format
17 License: BSD with advertising
19 Source0: https://github.com/sshock/AFFLIBv3/archive/v%{version}.tar.gz
20 # Source0-md5: 079f7ff418a853d5e7462d09113bbe2f
21 Patch0: Sanity-check-size-passed-to-malloc.patch
22 Patch1: %{name}-x32-x64.patch
23 URL: https://github.com/sshock/AFFLIBv3
24 BuildRequires: autoconf
25 BuildRequires: automake
27 BuildRequires: curl-devel
28 BuildRequires: expat-devel
30 BuildRequires: intltool
32 BuildRequires: libfuse3-devel
34 BuildRequires: libmd-devel
35 BuildRequires: libstdc++-devel
36 BuildRequires: libtool
37 %if %{with system_lzma}
38 BuildRequires: lzma-devel
40 BuildRequires: ncurses-devel
41 BuildRequires: openssl-devel
42 BuildRequires: python-devel
43 BuildRequires: readline-devel
44 BuildRequires: rpmbuild(macros) >= 1.527
45 BuildRequires: zlib-devel
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 AFF® is an open and extensible file format designed to store disk
50 images and associated metadata. afflib is library for support of the
51 Advanced Forensic Format (AFF).
54 Summary: Utilities for %{name}
55 Requires: %{name} = %{version}-%{release}
57 %description -n afftools
58 The %{name}-utils package contains utilities for using %{name}.
61 Summary: Development files for %{name}
62 Requires: %{name} = %{version}-%{release}
64 Requires: openssl-devel
68 The %{name}-devel package contains libraries and header files for
69 developing applications that use %{name}.
72 Summary: Static %{name} library
73 Summary(pl.UTF-8): Statyczna biblioteka %{name}
74 Group: Development/Libraries
75 Requires: %{name}-devel = %{version}-%{release}
78 Static %{name} library.
80 %description static -l pl.UTF-8
81 Statyczna biblioteka %{name}.
84 Summary: Python bindings for AFFLIB
85 Group: Libraries/Python
86 Requires: %{name} = %{version}-%{release}
89 These bindings currently support a read-only file-like interface to
90 AFFLIB and basic metadata accessor functions. The binding is not
94 %setup -q -n AFFLIBv3-%{version}
98 %if %{with system_lzma}
99 # prevent internal lzma to be built - testing
102 #fix spurious permissions with lzma443
103 find lzma443 -type f -exec chmod 0644 {} ';'
113 %{__enable_disable fuse} \
114 %{__enable_disable python} \
115 %{__enable_disable s3} \
116 %{__enable_disable qemu}
121 rm -rf $RPM_BUILD_ROOT
123 DESTDIR=$RPM_BUILD_ROOT
127 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/*.egg-info/
130 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
133 rm -rf $RPM_BUILD_ROOT
135 %post -p /sbin/ldconfig
136 %postun -p /sbin/ldconfig
139 %defattr(644,root,root,755)
140 %doc AUTHORS BUGLIST.txt ChangeLog NEWS README doc/announce_2.2.txt COPYING
141 %attr(755,root,root) %{_libdir}/libafflib.so.*.*.*
142 %attr(755,root,root) %ghost %{_libdir}/libafflib.so.0
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_bindir}/aff*
147 %{_mandir}/man1/aff*.1.*
150 %defattr(644,root,root,755)
151 %doc doc/crypto_design.txt doc/crypto_doc.txt
152 %attr(755,root,root) %{_libdir}/libafflib.so
153 %{_includedir}/afflib/
154 %{_pkgconfigdir}/afflib.pc
156 %if %{with static_libs}
158 %defattr(644,root,root,755)
159 %{_libdir}/libafflib.a
163 %defattr(644,root,root,755)
165 %attr(755,root,root) %{py_sitedir}/pyaff.so