commit e396ce185c505f9d6d08decd13e48a4d0e156d6ff861cfcb852f0dbaaf7062bd Author: Richard Rahl Date: Thu Jul 11 09:42:56 2024 +0000 OBS-URL: https://build.opensuse.org/package/show/X11:COSMIC:Apps/cosmic-ext-applet-ollama?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..f3bdbcc --- /dev/null +++ b/_service @@ -0,0 +1,19 @@ + + + + https://github.com/elevenhsoft/cosmic-ext-applet-ollama.git + git + main + 0.1.0+git%cd.%h + yes + + + *.tar + zstd + + + cosmic-ext-applet-ollama + false + + + diff --git a/cosmic-ext-applet-ollama-0.1.0+git20240624.d1b3238.tar.zst b/cosmic-ext-applet-ollama-0.1.0+git20240624.d1b3238.tar.zst new file mode 100644 index 0000000..fe0bc87 --- /dev/null +++ b/cosmic-ext-applet-ollama-0.1.0+git20240624.d1b3238.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5cc2a501c84f9fa1ff8dadadf78156f322e62cb516076b741abba6547f4ea5a0 +size 417793 diff --git a/cosmic-ext-applet-ollama.changes b/cosmic-ext-applet-ollama.changes new file mode 100644 index 0000000..f8ba2ab --- /dev/null +++ b/cosmic-ext-applet-ollama.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Jul 11 07:11:23 UTC 2024 - Richard Rahl + +- initial packaging diff --git a/cosmic-ext-applet-ollama.spec b/cosmic-ext-applet-ollama.spec new file mode 100644 index 0000000..e0bf7a7 --- /dev/null +++ b/cosmic-ext-applet-ollama.spec @@ -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 diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..732de61 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7fa218507bd8b573a349a953aeba57571f59a5b6e2050965e555ef155768277 +size 61842032