Compare commits

...

16 Commits

Author SHA1 Message Date
madomado 50327fcd4d Update golang-github-ollama-ollama.spec
Signed-off-by: madomado <madonuko@outlook.com>
2024-03-25 22:44:02 +08:00
madomado c3d2e0db9b Update golang-github-ollama-ollama.spec
Signed-off-by: madomado <madonuko@outlook.com>
2024-03-25 22:19:48 +08:00
madomado 307f38a39c Rename golang-github-jmorganca-ollama.spec to golang-github-ollama-ollama.spec
Signed-off-by: madomado <madonuko@outlook.com>
2024-02-20 10:54:17 +08:00
madomado cd4a914aa4 update upstream to ollama/ollama 2024-02-20 10:48:23 +08:00
madomado 71f9e83adb Update golang-github-jmorganca-ollama.spec
Signed-off-by: madomado <madonuko@outlook.com>
2024-02-13 10:47:51 +08:00
madomado 4c38fc08c4 fix: ollama (by referencing the one from Arch Linux real) 2024-02-12 13:04:41 +08:00
madomado 5db361d659 Update golang-github-jmorganca-ollama.spec
Signed-off-by: madomado <madonuko@outlook.com>
2024-02-06 17:33:07 +08:00
madomado ec21f1f4f2 add: ollama 2024-02-06 17:18:22 +08:00
lleyton eb2a494110 fix: move submarine kpart away from /boot (#911)
* fix: move submarine kpart away from /boot

* fix: updare submarine version
2024-02-06 15:57:55 +08:00
Raboneko 1c8c3d5d1e bump(nightly): latte-dock-nightly nim-nightly 2024-02-06 01:06:59 +00:00
Raboneko 64526db001 bump: discord-canary-openasar discord-canary 2024-02-06 01:05:23 +00:00
Raboneko b2057f21d4 bump: discord-canary-openasar discord-canary 2024-02-05 23:13:39 +00:00
Raboneko 7065c95aa6 bump: ruff 2024-02-05 22:40:05 +00:00
Raboneko 0e19f3d489 bump: tau-helium 2024-02-05 20:26:37 +00:00
Raboneko 65bc085b09 bump: discord-canary-openasar discord-canary 2024-02-05 17:47:06 +00:00
Raboneko 71d95e9294 bump: openh264 2024-02-05 08:20:14 +00:00
15 changed files with 128 additions and 12 deletions
@@ -6,7 +6,7 @@
%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so
Name: discord-canary-openasar
Version: 0.0.267
Version: 0.0.271
Release: 1%{?dist}
Summary: A snappier Discord rewrite with features like further customization and theming
License: MIT AND https://discord.com/terms
+1 -1
View File
@@ -6,7 +6,7 @@
%global __provides_exclude_from %{_datadir}/%{name}/.*\\.so
Name: discord-canary
Version: 0.0.267
Version: 0.0.271
Release: 1%{?dist}
Summary: Free Voice and Text Chat for Gamers
URL: discord.com
@@ -1,6 +1,6 @@
%global forgeurl https://github.com/KDE/latte-dock/
%global commit 131ee4d39ce8913b2de8f9a673903225345c7a38
%global commit 5e0872c396a712b9c089eac939cb30d20c47f29e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date %(date '+%Y%m%d')
%global snapshot_info %{commit_date}.%{shortcommit}
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "golang-github-ollama-ollama.spec"
}
}
@@ -0,0 +1,83 @@
# Generated by go2rpm 1.9.0
%bcond_without check
# https://github.com/ollama/ollama
%global goipath github.com/ollama/ollama
Version: 0.1.25
%gometa -f
%global common_description %{expand:
Get up and running with Llama 2, Mistral, and other large language models
locally.}
%global golicenses LICENSE
%global godocs docs examples README.md app/README.md\\\
llm/ext_server/README.md
Name: %{goname}
Release: %autorelease
Summary: Get up and running with Llama 2, Mistral, and other large language models locally
License: MIT AND Apache-2.0
URL: %{gourl}
Source0: %{gosource}
Source2: ollama.service
Source3: sysusers.conf
Source4: tmpfiles.d
BuildRequires: git-core systemd-rpm-macros
%description %{common_description}
%gopkg
%prep
%goprep
git init .
rm -frv llm/llama.cpp
pushd llm/
git clone --depth=1 --branch b2527 https://github.com/ggerganov/llama.cpp
popd
# Turn LTO on and set the build type to Release
sed -i 's,T_CODE=on,T_CODE=on -D LLAMA_LTO=on -D CMAKE_BUILD_TYPE=Release,g' llm/generate/gen_linux.sh
# Display a more helpful error message
sed -i "s|could not connect to ollama server, run 'ollama serve' to start it|ollama is not running, try 'systemctl start ollama'|g" cmd/cmd.go
%autopatch -p1
go mod download
%build
export CGO_CFLAGS="$CFLAGS" CGO_CPPFLAGS="$CPPFLAGS" CGO_CXXFLAGS="$CXXFLAGS" CGO_LDFLAGS="$LDFLAGS"
#go generate ./...
go build -buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external \
-ldflags=-buildid='' -ldflags="-X=github.com/jmorganca/ollama/version.Version=%version"
%install
install -Dm755 ollama/ollama %buildroot%_bindir/ollama
install -dm755 %buildroot/var/lib/ollama
install -Dm644 %SOURCE2 %buildroot%_unitdir/ollama.service
install -Dm644 %SOURCE3 %buildroot/usr/lib/sysusers.d/ollama.conf
install -Dm644 %SOURCE4 %buildroot/usr/lib/tmpfiles.d/ollama.conf
%post
%systemd_post ollama.service
%preun
%systemd_preun ollama.service
%postun
%systemd_postun_with_restart ollama.service
%files
%license LICENSE
%doc docs examples README.md app/README.md llm/ext_server/README.md
%{_bindir}/*
/var/lib/ollama
%_unitdir/ollama.service
/usr/lib/sysusers.d/ollama.conf
/usr/lib/tmpfiles.d/ollama.conf
%gopkgfiles
%changelog
%autochangelog
+21
View File
@@ -0,0 +1,21 @@
[Unit]
Description=Ollama Service
Wants=network-online.target
After=network.target network-online.target
[Service]
ExecStart=/usr/bin/ollama serve
WorkingDirectory=/var/lib/ollama
Environment="HOME=/var/lib/ollama" "GIN_MODE=release"
User=ollama
Group=ollama
Restart=on-failure
RestartSec=3
Type=simple
PrivateTmp=yes
ProtectSystem=full
ProtectHome=yes
[Install]
WantedBy=multi-user.target
+2
View File
@@ -0,0 +1,2 @@
g ollama - -
u ollama - "ollama user" /var/lib/ollama
+2
View File
@@ -0,0 +1,2 @@
Q /var/lib/ollama 0755 ollama ollama
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("ollama/ollama"));
+1 -1
View File
@@ -1,5 +1,5 @@
%global csrc_commit 561b417c65791cd8356b5f73620914ceff845d10
%global commit dd753b33830ab084686f9cf9c7d573702f175bb5
%global commit 3550c907decd206d74c8b5fc3008a8b731491bbe
%global ver 2.1.1
%global debug_package %nil
+1 -1
View File
@@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: python3-ruff
Version: 0.2.0
Version: 0.2.1
Release: 1%{?dist}
Summary: An extremely fast Python linter, written in Rust
License: MIT
+1 -1
View File
@@ -2,7 +2,7 @@
%global commit1 e7d30b921df736a1121a0c8e0cf3ab1ce5b8a4b7
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
%global openh264_version 2.4.1
%global openh264_version 2.4.0
%global gst_version 1.22.9
Name: openh264
+6 -4
View File
@@ -5,12 +5,12 @@
%endif
Name: submarine
Version: 0.1.0
Version: 0.2.0
Release: 1%?dist
Summary: Experimental bootloader for ChomeOS's depthcharge
License: GPL-3.0
URL: https://github.com/FyraLabs/submarine
BuildRequires: make gcc flex bison elfutils-devel parted vboot-utils golang xz bc openssl-devel git golang-github-u-root
BuildRequires: make gcc flex bison elfutils-devel parted vboot-utils golang xz bc openssl-devel git depthcharge-tools
%description
An experimental bootloader for ChomeOS's depthcharge.
@@ -20,16 +20,18 @@ Submarine provides a minimal Linux environmemt that lives in a small partition
(or a different system if you're brave.)
%prep
go install github.com/u-root/u-root@v0.11.0
git clone --recurse-submodules --shallow-submodules -b v%version %url .
%build
export PATH=$PATH:$HOME/go/bin
%make_build %arch
%install
mkdir -p %buildroot/boot %buildroot%_datadir/submarine
install -Dm644 build/submarine-*.kpart %buildroot/boot/
install -Dm644 build/submarine-*.kpart %buildroot%_datadir/submarine/
install -Dm644 build/submarine-*.bin %buildroot%_datadir/submarine/
%files
/boot/submarine-*.kpart
%_datadir/submarine/submarine-*.kpart
%_datadir/submarine/submarine-*.bin
+1 -1
View File
@@ -1 +1 @@
rpm.version(gh("FyraLabs/submarine"));
rpm.version(gh_tag("FyraLabs/submarine"));
+1 -1
View File
@@ -1,6 +1,6 @@
Summary: tauOS GTK/GNOME Shell Themes
Name: tau-helium
Version: 1.8.10.1
Version: 1.8.10.2
Release: 1%{?dist}
License: GPL-3.0
URL: https://github.com/tau-OS/tau-helium