]> git.pld-linux.org Git - packages/afflib.git/blame - afflib.spec
- updated to 3.7.19, PLDified more
[packages/afflib.git] / afflib.spec
CommitLineData
4df9dfba 1# TODO:
4df9dfba 2# - build against system lzma if possible
20b98b3a 3# - some bundled qemu source?
4df9dfba 4#
6779d2db 5# Conditional build:
49a7627e
JB
6%bcond_without fuse # FUSE support
7%bcond_without python # Python support
391ddc15 8%bcond_with system_lzma # building against system lzma instead of local copy
49a7627e
JB
9%bcond_without static_libs # static library
10%bcond_without s3 # Amazon S3 support
11%bcond_without qemu # QEMU support
6779d2db 12#
4df9dfba 13Summary: Library to support the Advanced Forensic Format
49a7627e 14Summary(pl.UTF-8): Biblioteka do obsługi firmatu plików AFF (Advanced Forensic Format)
4df9dfba 15Name: afflib
49a7627e
JB
16Version: 3.7.19
17Release: 1
4df9dfba
AG
18License: BSD with advertising
19Group: Libraries
49a7627e
JB
20#Source0Download: https://github.com/sshock/AFFLIBv3/releases/
21Source0: https://github.com/sshock/AFFLIBv3/archive/v%{version}/AFFLIBv3-%{version}.tar.gz
22# Source0-md5: 83b2b89e23090930905547e7e47f9e09
4df9dfba 23Patch0: Sanity-check-size-passed-to-malloc.patch
b5abd9fc 24Patch1: %{name}-x32-x64.patch
4df9dfba 25URL: https://github.com/sshock/AFFLIBv3
49a7627e 26BuildRequires: autoconf >= 2.50
4df9dfba 27BuildRequires: automake
6779d2db 28%if %{with s3}
4df9dfba 29BuildRequires: curl-devel
49a7627e 30BuildRequires: expat-devel >= 1.95
6779d2db 31%endif
4df9dfba 32BuildRequires: intltool
6779d2db
AG
33%if %{with fuse}
34BuildRequires: libfuse3-devel
35%endif
36BuildRequires: libmd-devel
4df9dfba
AG
37BuildRequires: libstdc++-devel
38BuildRequires: libtool
6779d2db 39%if %{with system_lzma}
4df9dfba 40BuildRequires: lzma-devel
6779d2db 41%endif
4df9dfba
AG
42BuildRequires: ncurses-devel
43BuildRequires: openssl-devel
49a7627e 44%{?with_python:BuildRequires: python-devel >= 2}
6779d2db
AG
45BuildRequires: readline-devel
46BuildRequires: rpmbuild(macros) >= 1.527
4df9dfba
AG
47BuildRequires: zlib-devel
48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82bb8d3a
AG
49
50%description
49a7627e 51AFF(R) is an open and extensible file format designed to store disk
4df9dfba
AG
52images and associated metadata. afflib is library for support of the
53Advanced Forensic Format (AFF).
82bb8d3a 54
49a7627e
JB
55%description -l pl.UTF-8
56AFF(R) to otwarty i rozszerzalny format pliku zaprojektowany do zapisu
57obrazów dysków i powiązanych metadanych. afflib to biblioteka do
58obsługi formatu AFF (Advanced Forensic Format).
59
60%package -n afftools
61Summary: Utilities for AFFLIB library
62Summary(pl.UTF-8): Narzędzia do biblioteki AFFLIB
63Group: Applications/File
4df9dfba 64Requires: %{name} = %{version}-%{release}
82bb8d3a
AG
65
66%description -n afftools
49a7627e
JB
67This package contains utilities for using AFFLIB library.
68
69%description -n afftools -l pl.UTF-8
70Ten pakiet zawiera narzędzia korzystające z biblioteki AFFLIB.
82bb8d3a 71
49a7627e
JB
72%package devel
73Summary: Development files for AFFLIB
74Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AFFLIB
75Group: Development/Libraries
4df9dfba 76Requires: %{name} = %{version}-%{release}
5da8f8a2 77Requires: libmd-devel
4df9dfba 78Requires: openssl-devel
82bb8d3a 79
49a7627e
JB
80%description devel
81This package contains the header files for developing applications
82that use AFFLIB library.
83
84%description devel -l pl.UTF-8
85Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
86wykorzystujących bibliotekę AFFLIB.
82bb8d3a 87
88244227 88%package static
49a7627e
JB
89Summary: Static AFFLIB library
90Summary(pl.UTF-8): Statyczna biblioteka AFFLIB
88244227
AG
91Group: Development/Libraries
92Requires: %{name}-devel = %{version}-%{release}
93
94%description static
49a7627e 95Static AFFLIB library.
88244227
AG
96
97%description static -l pl.UTF-8
49a7627e 98Statyczna biblioteka AFFLIB.
88244227
AG
99
100%package python
101Summary: Python bindings for AFFLIB
49a7627e 102Summary(pl.UTF-8): Wiązania Pythona do biblioteki AFFLIB
88244227
AG
103Group: Libraries/Python
104Requires: %{name} = %{version}-%{release}
105
106%description python
107These bindings currently support a read-only file-like interface to
108AFFLIB and basic metadata accessor functions. The binding is not
109currently complete.
110
49a7627e
JB
111%description python -l pl.UTF-8
112Te wiązania obecnie obsługują zbliżony do plików interfejs tylko do
113odczytu do biblioteki AFFLIB oraz podstawowe funkcje dostępu do
114metadanych. Wiązania nie są jeszcze kompletne.
115
4df9dfba
AG
116%prep:
117%setup -q -n AFFLIBv3-%{version}
118%patch0 -p1
b5abd9fc 119%patch1 -p1
82bb8d3a 120
6779d2db
AG
121%if %{with system_lzma}
122 # prevent internal lzma to be built - testing
123 #rm -rf lzma443
124%else
125 #fix spurious permissions with lzma443
126 find lzma443 -type f -exec chmod 0644 {} ';'
127%endif
82bb8d3a
AG
128
129%build
4df9dfba 130%{__libtoolize}
49a7627e 131%{__aclocal} -I m4
4df9dfba
AG
132%{__autoconf}
133%{__autoheader}
134%{__automake}
6779d2db
AG
135%configure \
136 %{__enable_disable fuse} \
137 %{__enable_disable python} \
138 %{__enable_disable s3} \
139 %{__enable_disable qemu}
82bb8d3a 140
4df9dfba 141%{__make}
82bb8d3a
AG
142
143%install
4df9dfba 144rm -rf $RPM_BUILD_ROOT
49a7627e 145
4df9dfba
AG
146%{__make} install \
147 DESTDIR=$RPM_BUILD_ROOT
82bb8d3a 148
49a7627e
JB
149%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
150
88244227
AG
151%if %{with python}
152%py_postclean
88244227
AG
153%endif
154
4df9dfba
AG
155%clean
156rm -rf $RPM_BUILD_ROOT
82bb8d3a 157
4df9dfba
AG
158%post -p /sbin/ldconfig
159%postun -p /sbin/ldconfig
82bb8d3a
AG
160
161%files
4df9dfba 162%defattr(644,root,root,755)
49a7627e 163%doc AUTHORS BUGLIST.txt COPYING ChangeLog NEWS README doc/announce_2.2.txt
5da8f8a2
JR
164%attr(755,root,root) %{_libdir}/libafflib.so.*.*.*
165%attr(755,root,root) %ghost %{_libdir}/libafflib.so.0
82bb8d3a
AG
166
167%files -n afftools
4df9dfba
AG
168%defattr(644,root,root,755)
169%attr(755,root,root) %{_bindir}/aff*
82bb8d3a
AG
170%{_mandir}/man1/aff*.1.*
171
172%files devel
4df9dfba 173%defattr(644,root,root,755)
82bb8d3a 174%doc doc/crypto_design.txt doc/crypto_doc.txt
091d1c6e 175%attr(755,root,root) %{_libdir}/libafflib.so
49a7627e 176%{_includedir}/afflib
4df9dfba 177%{_pkgconfigdir}/afflib.pc
88244227
AG
178
179%if %{with static_libs}
180%files static
181%defattr(644,root,root,755)
182%{_libdir}/libafflib.a
183%endif
184
49a7627e 185%if %{with python}
88244227
AG
186%files python
187%defattr(644,root,root,755)
188%doc pyaff/README
189%attr(755,root,root) %{py_sitedir}/pyaff.so
49a7627e
JB
190%{py_sitedir}/PyAFF-0.1-py*.egg-info
191%endif
This page took 0.115728 seconds and 4 git commands to generate.