mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 50327fcd4d | |||
| c3d2e0db9b | |||
| 307f38a39c | |||
| cd4a914aa4 | |||
| 71f9e83adb | |||
| 4c38fc08c4 | |||
| 5db361d659 | |||
| ec21f1f4f2 | |||
| eb2a494110 | |||
| 1c8c3d5d1e | |||
| 64526db001 | |||
| b2057f21d4 | |||
| 7065c95aa6 | |||
| 0e19f3d489 | |||
| 65bc085b09 | |||
| 71d95e9294 |
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
g ollama - -
|
||||
u ollama - "ollama user" /var/lib/ollama
|
||||
@@ -0,0 +1,2 @@
|
||||
Q /var/lib/ollama 0755 ollama ollama
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("ollama/ollama"));
|
||||
@@ -1,5 +1,5 @@
|
||||
%global csrc_commit 561b417c65791cd8356b5f73620914ceff845d10
|
||||
%global commit dd753b33830ab084686f9cf9c7d573702f175bb5
|
||||
%global commit 3550c907decd206d74c8b5fc3008a8b731491bbe
|
||||
%global ver 2.1.1
|
||||
%global debug_package %nil
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 @@
|
||||
rpm.version(gh("FyraLabs/submarine"));
|
||||
rpm.version(gh_tag("FyraLabs/submarine"));
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user