public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/nwipe] epel8: Merge remote-tracking branch 'origin/rawhide' into epel8
@ 2026-10-09 14:22 Michal Ambroz
0 siblings, 0 replies; only message in thread
From: Michal Ambroz @ 2026-10-09 14:22 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/nwipe
Branch : epel8
Commit : c8bd93af86ea9081e453b6ac3124138603b1abec
Author : Michal Ambroz <rebus@seznam.cz>
Date : 2026-10-09T16:22:19+02:00
Stats : +85/-26 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/nwipe/c/c8bd93af86ea9081e453b6ac3124138603b1abec?branch=epel8
Log:
Merge remote-tracking branch 'origin/rawhide' into epel8
---
diff --git a/.gitignore b/.gitignore
index 50fc281..7122069 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,6 @@
/nwipe-*.tar.gz
+# ignore testing disk images
+/*.img
+# ignore testing wipe reports
+/*.pdf
+
diff --git a/.packit.yaml b/.packit.yaml
new file mode 100644
index 0000000..ff208d5
--- /dev/null
+++ b/.packit.yaml
@@ -0,0 +1,19 @@
+# See the documentation for more information:
+# https://packit.dev/docs/configuration/
+
+specfile_path: nwipe.spec
+
+copy_upstream_release_description: false
+
+jobs:
+ - job: pull_from_upstream
+ trigger: release
+ dist_git_branches:
+ - fedora-rawhide
+
+ - job: koji_build
+ trigger: commit
+ allowed_committers: ['packit','all_admins']
+ dist_git_branches:
+ - fedora-rawhide
+
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..83ae522
--- /dev/null
+++ b/README.md
@@ -0,0 +1,15 @@
+# nwipe
+
+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
+- Increased number of wipe methods
+- Smartmontools is used to provide USB serial #
+- DmiDecode is used to provide host info to nwipes log
+
diff --git a/TEST.md b/TEST.md
new file mode 100644
index 0000000..3e087af
--- /dev/null
+++ b/TEST.md
@@ -0,0 +1,22 @@
+= test
+
+```
+# Create dummy file test.img, 10MB in size, random data
+dd if=/dev/urandom of=test.img
+
+# check the content of the file
+xxd -a test.img |head
+
+# Mount the file as loop device
+LOOPDEV=$(sudo losetup --find)
+echo "Loopdev: $LOOPDEV"
+sudo losetup $LOOPDEV test.img
+sudo losetup --list $LOOPDEV
+
+# Try the nwipe program on this device
+sudo --method=one --noblank nwipe $LOOPDEV
+
+# check the content of the file
+xxd -a test.img |head
+
+```
diff --git a/nwipe.spec b/nwipe.spec
index cc787b4..afd9678 100644
--- a/nwipe.spec
+++ b/nwipe.spec
@@ -1,24 +1,18 @@
Name: nwipe
-Version: 0.40
+Version: 0.43
Release: %autorelease
Summary: Securely erase disks using a variety of recognized methods
-%global gituser martijnvanbrummelen
-%global gitname nwipe
-%global commit 316b7073089fc705dda8d8b0d6bcc948818deacb
-%global gitdate 20250910
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
+%global forgeurl https://github.com/martijnvanbrummelen/nwipe
+%forgemeta
License: GPL-2.0-only
# used to be http://nwipe.sourceforge.net
-URL: https://github.com/martijnvanbrummelen/nwipe
-VCS: git:https://github.com/martijnvanbrummelen/nwipe
+URL: %{forgeurl}
# Releases https://github.com/martijnvanbrummelen/nwipe/releases
-#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
+Source0: %{forgesource}
BuildRequires: autoconf
BuildRequires: automake
@@ -29,19 +23,17 @@ BuildRequires: make
BuildRequires: ncurses-devel
BuildRequires: parted-devel
+# there is no libnvme in rhel8
+%if 0%{?fedora} || 0%{?rhel} >= 9
+BuildRequires: libnvme-devel
+%endif
+
# Runtime dependencies
+Requires: coreutils
+Requires: dmidecode
Requires: hdparm
-Requires: /usr/bin/readlink
-Requires: /usr/sbin/dmidecode
-Requires: /usr/sbin/modprobe
-Requires: /usr/sbin/smartctl
-
-
-# Recommends only supported on fedora and rhel8+
-# used to provide serial number of drive over supported USB to SATA interface
-Recommends: smartmontools
-# provide SMBIOS/DMI host data to log file
-Recommends: dmidecode
+Requires: kmod
+Requires: smartmontools
%description
@@ -59,13 +51,19 @@ a few changes:
- DmiDecode is used to provide host info to nwipes log
%prep
-#autosetup -n %%{gitname}-%%{commit} -p 1
-%autosetup -n %{gitname}-%{version} -p 1
+%autosetup -n %{archivename} -p 1
%build
autoreconf -vif
+
+%if 0%{?fedora} || 0%{?rhel} >= 9
%configure
+%else
+# there is no libnvme in rhel8
+%configure --without-libnvme
+%endif
+
%make_build
@@ -74,7 +72,7 @@ autoreconf -vif
%check
-make check
+%make_build check
%files
diff --git a/sources b/sources
index ad525f5..c796d64 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (nwipe-0.40.tar.gz) = 763349138263612ee1f1c9b933a7b647fdb8fc9f29d7185545574d44e2495b939383865e27dfcfb17d781d68e324b0bd9d2924439f50d1ce2e24d1e85ae971aa
+SHA512 (nwipe-0.43.tar.gz) = 9447c04d614753a53518f26e5b6b54a8f0b116496203ada7f226916d202f0e80e0796a5adc5552069b666f680c449091083a67492da4a771f3841c025a43ba91
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-09 14:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 14:22 [rpms/nwipe] epel8: Merge remote-tracking branch 'origin/rawhide' into epel8 Michal Ambroz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox