summaryrefslogtreecommitdiff
path: root/extra/packaging
diff options
context:
space:
mode:
authorseth <[email protected]>2022-08-26 21:07:02 -0400
committerseth <[email protected]>2022-08-26 21:07:02 -0400
commit9687ec7082c0f946ba270e64f513e3fd94583d33 (patch)
treec3804ce54c33e0cf6fb4968a7a37e409607c25e9 /extra/packaging
parent22378abce34f4b27db884692d5d99bec9dcef034 (diff)
update arch PKGBUILD and add fedora packaging
Diffstat (limited to 'extra/packaging')
-rw-r--r--extra/packaging/arch/PKGBUILD4
-rw-r--r--extra/packaging/fedora/BUILDING.md8
-rw-r--r--extra/packaging/fedora/hiccup.spec50
3 files changed, 60 insertions, 2 deletions
diff --git a/extra/packaging/arch/PKGBUILD b/extra/packaging/arch/PKGBUILD
index 8d9220a..aaa36c1 100644
--- a/extra/packaging/arch/PKGBUILD
+++ b/extra/packaging/arch/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: seth <getchoo at tuta dot io>
pkgname=hiccup-git
-pkgver=r13.3b376cd
+pkgver=r18.22378ab
pkgrel=1
pkgdesc="a python script to help keep you up to date"
arch=(any)
@@ -9,7 +9,7 @@ url="https://github.com/getchoo/hiccup"
license=('MIT')
depends=('python' 'xdg-user-dirs')
makedepends=('git' 'python-build' 'python-installer'
- 'python-wheel' 'python-setuptools')
+ 'python-wheel' 'python-flit-core')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+$url.git#branch=main")
diff --git a/extra/packaging/fedora/BUILDING.md b/extra/packaging/fedora/BUILDING.md
new file mode 100644
index 0000000..b77c4bd
--- /dev/null
+++ b/extra/packaging/fedora/BUILDING.md
@@ -0,0 +1,8 @@
+# fedora packaging
+
+## how to build
+```sh
+spectool --get-files hiccup.spec
+fedpkg --release f36 mockbuild
+find -type f -name 'hiccup*noarch.rpm' -exec sudo dnf install {} \;
+```
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