[packages/f3] Initial
arekm
arekm at pld-linux.org
Tue Aug 11 19:50:49 CEST 2026
commit fe6d337889ef56c1563e9581162c7ddc3bd949fa
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Aug 11 19:50:25 2026 +0200
Initial
f3.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
---
diff --git a/f3.spec b/f3.spec
new file mode 100644
index 0000000..1d31766
--- /dev/null
+++ b/f3.spec
@@ -0,0 +1,71 @@
+Summary: Fight Flash Fraud - test the real capacity of flash cards and drives
+Summary(pl.UTF-8): Fight Flash Fraud - sprawdzanie rzeczywistej pojemności kart i pamięci flash
+Name: f3
+Version: 10.0
+Release: 1
+License: GPL v3
+Group: Applications/System
+#Source0Download: https://github.com/AltraMayor/f3/releases
+Source0: https://github.com/AltraMayor/f3/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 2429fe83efdf903836d204ad91f08d86
+URL: https://github.com/AltraMayor/f3
+BuildRequires: parted-devel
+BuildRequires: udev-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+F3 (Fight Flash Fraud) tests the real capacity of flash cards and USB
+drives to see if they live up to their claimed specifications. f3write
+fills a mounted device with files of known pseudorandom content and
+f3read checks whether the data read back is identical, which exposes
+media reporting more capacity than they physically have.
+
+The package also provides f3probe, which tests an unmounted block
+device directly and much faster, f3fix, which creates a partition
+matching the real capacity of a fake drive, and f3brew, which helps to
+investigate how a drive behaves.
+
+%description -l pl.UTF-8
+F3 (Fight Flash Fraud) sprawdza rzeczywistą pojemność kart pamięci
+flash i pamięci USB, aby wykryć nośniki niezgodne z deklarowanymi
+parametrami. Program f3write zapełnia zamontowany nośnik plikami o
+znanej, pseudolosowej zawartości, a f3read weryfikuje, czy odczytane
+dane są identyczne, co pozwala wykryć nośniki zgłaszające większą
+pojemność, niż mają w rzeczywistości.
+
+Pakiet zawiera także program f3probe, testujący niezamontowane
+urządzenie blokowe bezpośrednio i znacznie szybciej, f3fix, tworzący
+partycję odpowiadającą rzeczywistej pojemności fałszywego nośnika,
+oraz f3brew, ułatwiający zbadanie zachowania nośnika.
+
+%prep
+%setup -q
+
+%build
+# no %%{rpmcppflags}: it defines NDEBUG, and upstream calls statvfs()/asprintf()
+# inside assert(), so those calls disappear and the tools stop working
+%{__make} all extra \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install install-extra \
+ DESTDIR=$RPM_BUILD_ROOT \
+ PREFIX=%{_prefix}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst changelog
+%attr(755,root,root) %{_bindir}/f3brew
+%attr(755,root,root) %{_bindir}/f3fix
+%attr(755,root,root) %{_bindir}/f3probe
+%attr(755,root,root) %{_bindir}/f3read
+%attr(755,root,root) %{_bindir}/f3write
+%{_mandir}/man1/f3read.1*
+%{_mandir}/man1/f3write.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/f3.git/commitdiff/fe6d337889ef56c1563e9581162c7ddc3bd949fa
More information about the pld-cvs-commit
mailing list