Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > c8a99bcfe4ff67b03e7367a9e3b7d5e7 > files > 4

foremost-1.5.7-2.fc13.src.rpm

Name:		foremost
Version:	1.5.7
Release:	2%{?dist}
Summary:	Recover files by "carving" them from a raw disk

Group:		Applications/File
License:	Public Domain
URL:		http://foremost.sf.net
Source0:	http://foremost.sourceforge.net/pkg/%{name}-%{version}.tar.gz
Patch0:		foremost-broken-jpeg.patch
Patch1:		foremost-fix-permission-timestamp.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
Foremost recovers files files based on their headers, footers, and internal
data structures. This process is commonly referred to as data carving.
Foremost can work on a raw disk drive or image file generated by dd.  The
headers and footers can be specified by a configuration file or you can use
command line switches to specify built-in file types. These built-in types
look at the data structures of a given file format allowing for a more
reliable and faster recovery.

%prep
%setup -q
%patch0 -p0
%patch1 -p2

sed -i 's!/usr/local/etc/foremost.conf!%{_sysconfdir}/foremost.conf!' config.c
sed -i 's/^RAW_FLAGS =.*/RAW_FLAGS = %{optflags}/' Makefile

%build
make %{?_smp_mflags} CONF=%{_sysconfdir}

%install
rm -rf $RPM_BUILD_ROOT
chmod 0644 *
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
make install BIN=$RPM_BUILD_ROOT%{_bindir} MAN=$RPM_BUILD_ROOT%{_mandir}/man8 \
    CONF=$RPM_BUILD_ROOT%{_sysconfdir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README CHANGES
%{_bindir}/*
%{_mandir}/man8/*
%config(noreplace) %{_sysconfdir}/foremost.conf

%changelog
* Fri Jul 02 2010 Filipe Rosset <rosset.filipe@gmail.com> - 1.5.7-2
- Fixed location of manual page reported in RH BZ#601021

* Mon Apr 05 2010 Filipe Rosset <rosset.filipe@gmail.com> - 1.5.7-1
- Update to 1.5.7 upstream
- Fix permissions reported in RH BZ#572960

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Mon Mar 24 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 1.5.3-2
- Patch to fix segfaults with broken jpeg headers from bz#438631.

* Tue Dec 04 2007 Toshio Kuratomi <a.badger@gmail.com> - 1.5.3-1
- Update to 1.5.3.  This incorporates our previous patches.
- Mass rebuild for new gcc.

* Tue Dec 04 2007 Toshio Kuratomi <a.badger@gmail.com> - 1.5.2-2
- Fix segfault reported in RH BZ#356241.

* Mon Nov 26 2007 Paul W. Frields <stickster@gmail.com> - 1.5.2-1
- Update to 1.5.2 on foremost.sf.net

* Mon Aug 20 2007 Toshio Kuratomi <a.badger@gmail.com> 1.5-1
- Update to the 1.5 on foremost.sf.net.
- Make license information correspond with the new guidelines.

* Mon Sep 04 2006 Toshio Kuratomi <toshio@tiki-lounge.com> 1.3-0.1.20060826
- Update to the 1.3 on foremost.sf.net.
- Rebuild for FC6.

* Mon Feb 13 2006 Toshio Kuratomi <toshio@tiki-lounge.com> 1.1-1.1.20060128
- Note on upstream's "beta" system to keep future maintainers out of trouble.
- Rebuild for the FC5 push.
  
* Sat Jan 28 2006 Toshio Kuratomi <toshio@tiki-lounge.com> 1.1-1
- Upgrade to 1.1.
- Rework the config patch as a sed replacement.