From 299b3cd43eb71251e0d8121cee82ea7ec896b1e4 Mon Sep 17 00:00:00 2001 From: tuibuilder_pel7x64builder0 Date: Wed, 25 Apr 2018 16:43:23 +0200 Subject: [PATCH] added nwipe package Signed-off-by: tuibuilder_pel7x64builder0 --- SOURCES/nwipe-epel6.patch | 6 ++ SPECS/nwipe.spec | 170 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 SOURCES/nwipe-epel6.patch create mode 100644 SPECS/nwipe.spec diff --git a/SOURCES/nwipe-epel6.patch b/SOURCES/nwipe-epel6.patch new file mode 100644 index 0000000..7b676f6 --- /dev/null +++ b/SOURCES/nwipe-epel6.patch @@ -0,0 +1,6 @@ +diff -ru nwipe-d01b00b4f82ea1899eee1f0ffb47ebc6ac7e5dc2.orig/configure.ac nwipe-d01b00b4f82ea1899eee1f0ffb47ebc6ac7e5dc2/configure.ac +--- nwipe-d01b00b4f82ea1899eee1f0ffb47ebc6ac7e5dc2.orig/configure.ac 2016-07-27 09:33:17.000000000 +0200 ++++ nwipe-d01b00b4f82ea1899eee1f0ffb47ebc6ac7e5dc2/configure.ac 2016-08-03 17:27:19.235806431 +0200 +@@ -4 +4 @@ +-AC_PREREQ([2.64]) ++AC_PREREQ([2.63]) diff --git a/SPECS/nwipe.spec b/SPECS/nwipe.spec new file mode 100644 index 0000000..b8eaba5 --- /dev/null +++ b/SPECS/nwipe.spec @@ -0,0 +1,170 @@ +%global gituser martijnvanbrummelen +%global gitname nwipe +%global commit 533fa56de870c2b703ea903efae61162d4012406 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + + +Name: nwipe +Version: 0.24 +Release: 2%{?dist} +Summary: Securely erase disks using a variety of recognized methods + +Group: Applications/System +License: GPLv2 +# used to be http://nwipe.sourceforge.net +URL: https://github.com/martijnvanbrummelen/nwipe +#Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch1: nwipe-epel6.patch + +BuildRequires: parted-devel +BuildRequires: ncurses-devel +BuildRequires: autoconf +BuildRequires: automake + +#For compatibility with EPEL5 + + +%description +The nwipe is a command that will securely erase disks using a variety of +recognized methods. It is a fork of the dwipe command used by Darik's +Boot and Nuke (dban). Nwipe was created out of need to run the DBAN dwipe +command outside of DBAN. This allows it to use any host distribution which +gives better hardware support. It is essentially the same as dwipe, with +a few changes: +- pthreads is used instead of fork +- The parted library is used to detect drives +- The code is designed to be compiled with gcc + +%prep +#setup -qn %{gitname}-%{commit} +%setup -qn %{gitname}-%{version} +%patch1 -p 1 -b .epel6 + + +%build +autoreconf -vif +%configure +make %{?_smp_mflags} + + +%install +#Cleanup the buildroot for compatibility with EPEL5 +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} LDFLAGS="-lncurses -lpanel" + + +%clean +#Cleanup the buildroot for compatibility with EPEL5 +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%license COPYING +%doc README +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.gz + +%changelog +* Thu Feb 08 2018 Fedora Release Engineering - 0.24-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Dec 11 2017 Michal Ambroz 0.24-1 +- bump to 0.24 + +* Thu Aug 03 2017 Fedora Release Engineering - 0.21-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.21-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.21-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Sep 06 2016 Michal Ambroz 0.21-3 +- fix changelog + +* Tue Sep 06 2016 Michal Ambroz 0.21-1 +- bump to 0.21 + +* Mon Aug 08 2016 Michal Ambroz 0.20-1 +- bump to 0.20 + +* Thu Aug 04 2016 Michal Ambroz 0.19-1 +- bump to 0.19 - upstream fixes prng and build for fedora<23 + +* Mon Aug 01 2016 Michal Ambroz 0.18-1 +- bump to 0.18 + +* Thu Feb 04 2016 Fedora Release Engineering - 0.17-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jun 22 2015 Michal Ambroz 0.17-3 +- fix build on epel6 + +* Mon Jun 22 2015 Michal Ambroz 0.17-2 +- patch to fix the randr mersene twister on 64bit platform (bug id 1151036) + +* Mon Jun 22 2015 Michal Ambroz 0.17-1 +- upgrade to version 0.17, switch to github repository + +* Wed Jun 17 2015 Fedora Release Engineering - 0.16-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 0.14-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.14-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 0.14-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sat Feb 16 2013 Michal Ambroz 0.14-2 +- removed build requirement to autoconf again + +* Sat Feb 16 2013 Michal Ambroz 0.14-1 +- upgrade to version 0.14 + +* Sun Feb 10 2013 Michal Ambroz 0.13-2 +- patched build to check for ncurses independently from panel + +* Sun Feb 10 2013 Michal Ambroz 0.13-1 +- upgrade to version 0.13 + +* Tue Feb 05 2013 Michal Ambroz 0.12-1 +- upgrade to version 0.12 + +* Mon Sep 24 2012 Michal Ambroz 0.11-1 +- upgrade to version 0.11 + +* Fri Aug 10 2012 Michal Ambroz 0.10-1 +- upgrade to version 0.10 + +* Fri Jul 20 2012 Fedora Release Engineering - 0.08-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sun Apr 08 2012 Michal Ambroz 0.08-1 +- upgrade to version 0.08 + +* Thu Mar 15 2012 Rex Dieter 0.06-3 +- rebuild (parted) + +* Fri Jan 06 2012 Michal Ambroz 0.06-2 +- redownload of upstream package - original release of 0.06 contained binaries + +* Thu Jan 05 2012 Michal Ambroz 0.06-1 +- added Group field +- FSF address and manpage was fixed upstream +- bump to new version 0.06 + +* Sun Jan 01 2012 Michal Ambroz 0.05-3 +- added clean stage for EPEL5 compatibility + +* Sun Jan 01 2012 Michal Ambroz 0.05-2 +- fixed defattr based on package review from Ivan Romanov + +* Wed Dec 28 2011 Michal Ambroz 0.05-1 +- initial build for Fedora +