From 1a9b46180fa1e796f2ed0bf965141490900ec77e Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Mon, 17 Jun 2024 09:08:15 +0200 Subject: Don't use the tg alias by default, add fedora build script --- packaging/FEDORA/textgraph.spec | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'packaging/FEDORA') diff --git a/packaging/FEDORA/textgraph.spec b/packaging/FEDORA/textgraph.spec index 0873f69..2a92c6a 100644 --- a/packaging/FEDORA/textgraph.spec +++ b/packaging/FEDORA/textgraph.spec @@ -15,10 +15,11 @@ Version: %{package_version} Release: %{package_release} Summary: Text graphing utility -#License: GPLv3 +License: GPLv3 Source: %{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: rust-libc-devel %description Text graphing utility @@ -28,21 +29,13 @@ Text graphing utility %cargo_prep %build -# This is not best practice, but it was somewhat annoying to actually get all -# dependencies vendored/packaged properly. -# currently this app doesn't have any cargo dependencies, but keeping it for reference -#sed -i '/^\[source\.crates-io\]/,/^$/d' %{cargo_config} -#sed -i '/^\[source\.local-registry\]/,/^$/d' %{cargo_config} -#sed -i '/^\[net\]/,/^$/d' %{cargo_config} -#echo "[net]" >> %{cargo_config} -#echo "git-fetch-with-cli = true" >> %{cargo_config} %cargo_build %install %cargo_install mkdir -p %{buildroot}%{_mandir}/man1 -install tg.1 %{buildroot}%{_mandir}/man1/tg.1 +install textgraph.1 %{buildroot}%{_mandir}/man1/textgraph.1 %if %{with check} %check @@ -51,8 +44,8 @@ install tg.1 %{buildroot}%{_mandir}/man1/tg.1 %files %doc README.md -%{_bindir}/tg -%{_mandir}/man1/tg.1.gz +%{_bindir}/textgraph +%{_mandir}/man1/textgraph.1.gz %changelog %autochangelog -- cgit v1.2.3