public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/nwipe] rawhide: spec cleanup and modernization
@ 2026-06-20 22:56 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-20 22:56 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/nwipe
            Branch : rawhide
            Commit : edb88f2559367b6523a74e307e3bdd6a91260c0e
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-09T21:19:25-03:00
            Stats  : +10/-24 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/nwipe/c/edb88f2559367b6523a74e307e3bdd6a91260c0e?branch=rawhide

            Log:
            spec cleanup and modernization

Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>

---
diff --git a/nwipe.spec b/nwipe.spec
index feaef4c..e12ee2a 100644
--- a/nwipe.spec
+++ b/nwipe.spec
@@ -4,21 +4,15 @@ Release:        %autorelease
 Summary:        Securely erase disks using a variety of recognized methods
 
 
-%global         gituser         martijnvanbrummelen
-%global         gitname         nwipe
-%global         commit          7fe250480a2f49ab6686dbd3665c8039eca7e998
-%global         gitdate         20260515
-%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
@@ -30,18 +24,11 @@ BuildRequires:  ncurses-devel
 BuildRequires:  parted-devel
 
 # 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,8 +46,7 @@ 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
@@ -74,7 +60,7 @@ autoreconf -vif
 
 
 %check
-make check
+%make_build check
 
 
 %files

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-20 22:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-20 22:56 [rpms/nwipe] rawhide: spec cleanup and modernization Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox