]> git.pld-linux.org Git - packages/foremost.git/blob - foremost.spec
Fix build with -Werror=format-security
[packages/foremost.git] / foremost.spec
1 Summary:        Recover files by "carving" them from a raw disk
2 Summary(pl.UTF-8):      Odzyskiwanie plików poprzez "wykrawanie" ich z dysku
3 Name:           foremost
4 Version:        1.5.7
5 Release:        3
6 License:        Public Domain
7 Group:          Applications/System
8 Source0:        http://foremost.sourceforge.net/pkg/%{name}-%{version}.tar.gz
9 # Source0-md5:  860119c49665c2a3fb2b0b1d3dbad02a
10 Patch0:         %{name}-sysconfdir.patch
11 Patch1:         %{name}-format-security.patch
12 URL:            http://foremost.sourceforge.net/
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Foremost recovers files files based on their headers, footers, and
17 internal data structures. This process is commonly referred to as data
18 carving. Foremost can work on a raw disk drive or image file generated
19 by dd. The headers and footers can be specified by a configuration
20 file or you can use command line switches to specify built-in file
21 types. These built-in types look at the data structures of a given
22 file format allowing for a more reliable and faster recovery.
23
24 %description -l pl.UTF-8
25 Foremost odzyskuje pliki bazując na ich nagłówkach, stopkach, oraz
26 wewnętrznych strukturach danych. Ten proces jest zwany jako
27 "wykrawanie" danych. Foremost może pracować na "surowym" dostępie do
28 dysku lub obrazach utworzonych przez dd. Nagłówki i stopki mogą być
29 umieszczone w pliku konfiguracyjnym lub można użyć linii poleceń do
30 wykorzystania wbudowanych typów. Wbudowane typy wskazują na struktury
31 danych podanych formatów plików dla pewniejszego i szybszego
32 odzyskiwania danych.
33
34 %prep
35 %setup -q
36 sed -i -e 's,\r$,,' main.h
37 %patch0 -p1
38 %patch1 -p1
39
40 %build
41 %{__make} \
42         RAW_CC="%{__cc}" \
43         RAW_FLAGS="%{rpmcflags} -DVERSION=\\\"%{version}\\\"" \
44         BIN=%{_bindir} \
45         MAN=%{_mandir}/man8 \
46         CONF=%{_sysconfdir}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_sysconfdir}}
51
52 %{__make} install \
53         BIN=$RPM_BUILD_ROOT%{_bindir} \
54         MAN=$RPM_BUILD_ROOT%{_mandir}/man8 \
55         CONF=$RPM_BUILD_ROOT%{_sysconfdir}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc CHANGES README
63 %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/%{name}.conf
64 %attr(755,root,root) %{_bindir}/%{name}
65 %{_mandir}/man8/%{name}.8*
This page took 0.084532 seconds and 4 git commands to generate.