summaryrefslogtreecommitdiff
path: root/extra/packaging/fedora/hiccup.spec
diff options
context:
space:
mode:
Diffstat (limited to 'extra/packaging/fedora/hiccup.spec')
-rw-r--r--extra/packaging/fedora/hiccup.spec50
1 files changed, 50 insertions, 0 deletions
diff --git a/extra/packaging/fedora/hiccup.spec b/extra/packaging/fedora/hiccup.spec
new file mode 100644
index 0000000..f0104e4
--- /dev/null
+++ b/extra/packaging/fedora/hiccup.spec
@@ -0,0 +1,50 @@
+%global commit 22378abce34f4b27db884692d5d99bec9dcef034
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: hiccup
+Version: %{shortcommit}
+Release: 1%{?dist}
+Summary: a python script to help keep you up to date
+
+License: MIT
+URL: https://github.com/getchoo/hiccup
+Source0: %{URL}/archive/%{commit}/%{name}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python3-devel
+
+%global _description %{expand:
+a python script that attempts to upgrade your system with multiple package managers.}
+
+%description %_description
+
+
+%prep
+%autosetup -n %{name}-%{commit}
+
+
+%generate_buildrequires
+%pyproject_buildrequires -w
+
+
+%build
+%pyproject_wheel
+
+
+%install
+%pyproject_install
+%pyproject_save_files hiccup
+
+
+%check
+%pyproject_check_import
+
+
+%files -f %{pyproject_files}
+%doc README.md docs/default-config.json
+%{_bindir}/%{name}
+
+
+%changelog
+* Fri Aug 26 2022 seth <[email protected]>
+- initial commit