diff --git a/.gitignore b/.gitignore index e69de29..95a0f61 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/lde-2.6.1.tar.gz diff --git a/lde.spec b/lde.spec new file mode 100644 index 0000000..23aaf26 --- /dev/null +++ b/lde.spec @@ -0,0 +1,70 @@ +Summary: Console-based disk editor +Name: lde +Version: 2.6.1 +Release: 4%{?dist} +License: GPLv2 +Group: Applications/System +URL: http://lde.sourceforge.net/ + +Source: http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz +# I suppose it is https://sourceforge.net/tracker/?func=detail&aid=1471701&group_id=20753&atid=120753 +Patch0: lde_staticPatch.patch + +# It still required for EPEL5 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +# For script grep-inode +Requires: grep, gawk +BuildRequires: bison, gpm-devel, ncurses-devel, perl, dos2unix + +%description +%{name} is a disk editor for Linux, originally written to help recover +deleted files. It has a simple ncurses interface that resembles an +old version of Norton Disk Edit for DOS. + +%prep +%setup -qn %{name} +%patch0 -p1 -b .static + +### Make buildsystem use standard autotools directories +perl -pi.orig -e 's|(\$\(mandir\))|$1/man8|' macros/Makefile.in + +# Fix spurios permission: +chmod -x src/allfs.h + +%build +%configure \ + --disable-schemas-install +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +### FIXME: Makefile doesn't create target directories +install -p -d -m0755 %{buildroot}%{_sbindir} %{buildroot}%{_datadir}/man/man8/ +install -p -m0755 crash_recovery/grep-inode %{buildroot}%{_sbindir}/ + +%makeinstall + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc doc/*.tex doc/UNERASE README src/ChangeLog TODO WARNING +%doc %{_mandir}/man?/* +%attr(0755,root,root) %{_sbindir}/%{name} +%{_sbindir}/grep-inode + +%changelog +* Wed Mar 30 2011 Pavel Alexeev - 2.6.1-4 +- Replace all occurances of name by macros %%{name} (Thanks to Mario Blättermann for all hints in this release). +- Added -p flag to install. +- Fix spurios permission on file src/allfs.h. + +* Thu Nov 18 2010 Pavel Alexeev - 2.6.1-3 +- Requires gawk instead of awk. + +* Mon Nov 15 2010 Pavel Alexeev - 2.6.1-2 +- Initial package, using as init DAG: Dag Wieers +- Many Fedora-relatede changes ctart from formating... diff --git a/lde_staticPatch.patch b/lde_staticPatch.patch new file mode 100644 index 0000000..2efa682 --- /dev/null +++ b/lde_staticPatch.patch @@ -0,0 +1,13 @@ +diff -NaurEbBH lde.orig/src/swiped/cnews/getdate.y lde/src/swiped/cnews/getdate.y +--- lde.orig/src/swiped/cnews/getdate.y 2003-12-07 04:35:53.000000000 +0300 ++++ lde/src/swiped/cnews/getdate.y 2007-05-06 18:18:52.000000000 +0400 +@@ -24,7 +24,8 @@ + + static int timeflag, dateflag, dayflag, relflag; + static time_t relsec, relmonth; +- static int hh, mm, ss, merid, daylight; ++ static int hh, mm, ss, merid; ++ int daylight; //NOT static now? + static int dayord, dayreq; + static int month, day, year; + static int ourzone; diff --git a/sources b/sources index e69de29..074ce24 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7cd3a798cafc07d084db240fd1d1c830 lde-2.6.1.tar.gz