]> git.pld-linux.org Git - packages/disc-recovery-utils.git/commitdiff
- initial spec. STB
authorsaq <saq@pld-linux.org>
Tue, 17 Apr 2001 23:19:22 +0000 (23:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    disc-recovery-utils.spec -> 1.1

disc-recovery-utils.spec [new file with mode: 0644]

diff --git a/disc-recovery-utils.spec b/disc-recovery-utils.spec
new file mode 100644 (file)
index 0000000..dd201e5
--- /dev/null
@@ -0,0 +1,42 @@
+Summary:       Disc recovery tools for EXT2FS
+Name:          disc-recovery-utils
+Version:       1.1
+Release:       1
+Source0:       ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/%{name}-%{version}.tgz
+License:       GPL
+Group:         Applications/System
+Group(de):     Applikationen/System
+Group(pl):     Aplikacje/System
+BuildRequires: e2fsprogs-devel >= 1.07
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _prefix /
+%define                _sbindir %{_prefix}/sbin
+
+%description
+A few disc recovery tools (copy_blocks and copy_listed_blocks) and an
+inode recovery tool for the EXT2 filesystem (e2fsfind).
+
+%prep
+%setup -q -n %{name}
+
+%build
+sed 's/cc/$(CC) $(CFLAGS) $(LDFLAGS)/'<Makefile>GNUmakefile
+%{__make} CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g}" \
+       E2FSROOT=$RPM_BUILD_ROOT LDFLAGS="%{?debug:-s}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
+cp copy_blocks copy_listed_blocks e2fsfind $RPM_BUILD_ROOT%{_sbindir}
+cp *.8 $RPM_BUILD_ROOT%{_mandir}/man8
+gzip -9nf README
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) /sbin/*
+%{_mandir}/*/*
+%doc README*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
This page took 0.094255 seconds and 4 git commands to generate.