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}
63 Requires: openssl-devel
67 The %{name}-devel package contains libraries and header files for
68 developing applications that use %{name}.
71 Summary: Static %{name} library
72 Summary(pl.UTF-8): Statyczna biblioteka %{name}
73 Group: Development/Libraries
74 Requires: %{name}-devel = %{version}-%{release}
77 Static %{name} library.
79 %description static -l pl.UTF-8
80 Statyczna biblioteka %{name}.
83 Summary: Python bindings for AFFLIB
84 Group: Libraries/Python
85 Requires: %{name} = %{version}-%{release}
88 These bindings currently support a read-only file-like interface to
89 AFFLIB and basic metadata accessor functions. The binding is not
93 %setup -q -n AFFLIBv3-%{version}
97 %if %{with system_lzma}
98 # prevent internal lzma to be built - testing
101 #fix spurious permissions with lzma443
102 find lzma443 -type f -exec chmod 0644 {} ';'
112 %{__enable_disable fuse} \
113 %{__enable_disable python} \
114 %{__enable_disable s3} \
115 %{__enable_disable qemu}
120 rm -rf $RPM_BUILD_ROOT
122 DESTDIR=$RPM_BUILD_ROOT
126 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/*.egg-info/
130 rm -rf $RPM_BUILD_ROOT
132 %post -p /sbin/ldconfig
133 %postun -p /sbin/ldconfig
136 %defattr(644,root,root,755)
137 %doc AUTHORS BUGLIST.txt ChangeLog NEWS README doc/announce_2.2.txt COPYING
138 %attr(755,root,root) %{_libdir}/libafflib.so.*
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/aff*
143 %{_mandir}/man1/aff*.1.*
146 %defattr(644,root,root,755)
147 %doc doc/crypto_design.txt doc/crypto_doc.txt
148 %attr(755,root,root) %{_libdir}/libafflib.so
150 %{_includedir}/afflib/
151 %{_pkgconfigdir}/afflib.pc
153 %if %{with static_libs}
155 %defattr(644,root,root,755)
156 %{_libdir}/libafflib.a
160 %defattr(644,root,root,755)
162 %attr(755,root,root) %{py_sitedir}/pyaff.so