Richard Rahl 2024-07-11 09:42:56 +00:00 committed by Git OBS Bridge
commit e396ce185c
7 changed files with 119 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

19
_service Normal file
View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<services>
<service name="tar_scm" mode="manual">
<param name="url">https://github.com/elevenhsoft/cosmic-ext-applet-ollama.git</param>
<param name="scm">git</param>
<param name="revision">main</param>
<param name="versionformat">0.1.0+git%cd.%h</param>
<param name="package-meta">yes</param>
</service>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">zstd</param>
</service>
<service name="cargo_vendor" mode="manual">
<param name="src">cosmic-ext-applet-ollama</param>
<param name="update">false</param>
</service>
<service name="set_version" mode="manual" />
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5cc2a501c84f9fa1ff8dadadf78156f322e62cb516076b741abba6547f4ea5a0
size 417793

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Jul 11 07:11:23 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
- initial packaging

View File

@ -0,0 +1,66 @@
#
# spec file for package cosmic-ext-applet-ollama
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define appname io.github.elevenhsoft.CosmicExtAppletOllama
Name: cosmic-ext-applet-ollama
Version: 0.1.0+git20240624.d1b3238
Release: 0
Summary: Ollama applet for COSMIC Desktop
License: GPL-3.0-only
URL: https://github.com/elevenhsoft/cosmic-ext-applet-ollama
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: just
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: pkgconfig
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(openssl)
Requires: ollama
%description
This software integrates ollama into a small neat applet for easier access
on the COSMIC Desktop Environment
%prep
%autosetup -a1
%build
just build-release
%install
install -Dm0755 ./target/release/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm0755 data/%{appname}.desktop %{buildroot}%{_datadir}/applications/%{appname}.desktop
install -Dm0755 data/icons/scalable/apps/%{appname}-symbolic.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{appname}-symbolic.svg
%suse_update_desktop_file %{appname}
#fix upstream
chmod -x %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{appname}-symbolic.svg
%check
%{cargo_test}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{appname}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{appname}-symbolic.svg
%changelog

3
vendor.tar.zst Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7fa218507bd8b573a349a953aeba57571f59a5b6e2050965e555ef155768277
size 61842032