diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..07c2673 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/dankamongmen.gpg +/growlight_1.2.6.tar.xz +/growlight_1.2.6.tar.xz.asc diff --git a/growlight.spec b/growlight.spec new file mode 100644 index 0000000..f2e9ea0 --- /dev/null +++ b/growlight.spec @@ -0,0 +1,58 @@ +Name: growlight +Version: 1.2.6 +Release: 1%{?dist} +Summary: Disk manipulation and system setup tool +License: GPLv3+ +URL: https://nick-black.com/dankwiki/index.php/Growlight +Source0: https://github.com/dankamongmen/%{name}/releases/download/v%{version}/%{name}_%{version}.tar.xz +Source1: https://github.com/dankamongmen/%{name}/releases/download/v%{version}/%{name}_%{version}.tar.xz.asc +Source2: https://nick-black.com/dankamongmen.gpg + +BuildRequires: gnupg2 +BuildRequires: gcc-c++ +BuildRequires: readline-devel +BuildRequires: libpciaccess-devel +BuildRequires: cmake +# for xsltproc +BuildRequires: libxslt +BuildRequires: pkgconfig(libpci) +BuildRequires: pkgconfig(libatasmart) +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(nettle) +BuildRequires: pkgconfig(notcurses) +BuildRequires: device-mapper-devel +BuildRequires: cryptsetup-devel +BuildRequires: docbook-style-xsl +BuildRequires: docbook-utils + +%description +Growlight can manipulate both physical (NVMe, SATA, etc.) and virtual (mdadm, +device-mapper, etc.) block devices, help identify bottlenecks in a storage +topology, create and destroy filesystems, and prepare a machine for initial +boot when run in an installer context. Both full-screen and REPL readline UIs +are available. + +%prep +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%autosetup + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%cmake -DUSE_LIBZFS=off .. +popd +%make_build -C %{_target_platform} + +%install +%make_install -C %{_target_platform} + +%files +%doc README.md +%license COPYING +%{_bindir}/growlight +%{_bindir}/growlight-readline +%{_mandir}/man8/*.8* + +%changelog +* Sun Jun 21 2020 Nick Black - 1.2.6-1 +- Initial packaging for Fedora 33 diff --git a/sources b/sources new file mode 100644 index 0000000..24ecc90 --- /dev/null +++ b/sources @@ -0,0 +1,3 @@ +SHA512 (dankamongmen.gpg) = d8345982838cf35f1ac694052829c2ef4c422a023d1468c311d54005bbc3f7fea1aba9b29671b4e8cdb6f2cfd4c8528c0e1ed8e2d8be69c5afc099460e357181 +SHA512 (growlight_1.2.6.tar.xz) = aa00ecda2dbd762aa8b0324103063476911e5538aa87883667e46f8068165b513f501e25b73908245b002f176df246baf31a92e996f5b36f1085184290982ccf +SHA512 (growlight_1.2.6.tar.xz.asc) = 88d392725d6a8eb593c1fe355e46d8684fc6bebb8aa3ae386329163fa6b9668846cef7efb02a25da51e47ae1b851f5011f584500eec301828985f523a4dc2f79