commit cc85178ecc69dd4e4fe9c1229aca1204a4e64d0bde88fc08853da19fd77b1283 Author: Richard Rahl Date: Tue Jul 23 23:43:36 2024 +0000 OBS-URL: https://build.opensuse.org/package/show/X11:COSMIC:Apps/cosmic-ext-weather?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..b535ef4 --- /dev/null +++ b/_service @@ -0,0 +1,20 @@ + + + + https://github.com/jwestall/cosmic-weather.git + git + main + 0.1.0+git%cd.%h + yes + cosmic-ext-weather + + + *.tar + zstd + + + cosmic-weather + false + + + diff --git a/com.jwestall.Weather.desktop b/com.jwestall.Weather.desktop new file mode 100644 index 0000000..ee4e1c3 --- /dev/null +++ b/com.jwestall.Weather.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=COSMIC Ext Weather +Exec=cosmic-ext-weather %F +Terminal=false +Type=Application +StartupNotify=true +Icon=com.jwestall.Weather +Categories=COSMIC;Utility; +Keywords=Folder;Manager; +MimeType=inode/directory; diff --git a/com.jwestall.Weather.metainfo.xml b/com.jwestall.Weather.metainfo.xml new file mode 100644 index 0000000..d090c8c --- /dev/null +++ b/com.jwestall.Weather.metainfo.xml @@ -0,0 +1,42 @@ + + + com.jwestall.Weather + + Jacob Westall + + CC0-1.0 + GPL-3.0-only + COSMIC + + none@available.com + https://github.com/jwestall/cosmic-weather + https://github.com/jwestall/cosmic-weather + COSMIC Ext Weather + Simple Weather App in libcosmic + +

A simple weather app, which uses rust and libcosmic.

+
+ + #eaeaff + #280c4b + + https://github.com/jwestall/cosmic-weather/blob/main/res/icons/hicolor/scalable/apps/com.jwestall.Weather.svg + com.jwestall.Weather.desktop + + + +

Initial release! 🎉

+
+
+
+ + + https://github.com/jwestall/cosmic-weather/blob/main/screenshots/window.png + Light mode + + + + com.jwestall.Weather.desktop + cosmic-ext-weather + +
diff --git a/cosmic-ext-weather-0.1.0+git20240722.7855fcd.tar.zst b/cosmic-ext-weather-0.1.0+git20240722.7855fcd.tar.zst new file mode 100644 index 0000000..df6090c --- /dev/null +++ b/cosmic-ext-weather-0.1.0+git20240722.7855fcd.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79d8bb5a8b794f6cf83f3138eb2c30e69bb062d57279bc6611d037664aaf64cf +size 260763 diff --git a/cosmic-ext-weather.changes b/cosmic-ext-weather.changes new file mode 100644 index 0000000..72dbcdb --- /dev/null +++ b/cosmic-ext-weather.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jul 23 22:44:49 UTC 2024 - Richard Rahl + +- initial packaging diff --git a/cosmic-ext-weather.spec b/cosmic-ext-weather.spec new file mode 100644 index 0000000..c6490f7 --- /dev/null +++ b/cosmic-ext-weather.spec @@ -0,0 +1,64 @@ +# +# spec file for package cosmic-ext-weather +# +# 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 com.jwestall.Weather +Name: cosmic-ext-weather +Version: 0.1.0+git20240722.7855fcd +Release: 0 +Summary: Weather app written in rust and libcosmic +License: GPL-3.0-only +URL: https://github.com/jwestall/cosmic-weather +Source0: %{name}-%{version}.tar.zst +Source1: vendor.tar.zst +Source2: %{appname}.desktop +Source3: %{appname}.metainfo.xml +BuildRequires: cargo-packaging +BuildRequires: git-core +BuildRequires: hicolor-icon-theme +BuildRequires: just +BuildRequires: pkgconfig +BuildRequires: update-desktop-files +BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(xkbcommon) + +%description +A simple weather application for the COSMIC Desktop + +%prep +%autosetup -a1 +cp %{SOURCE2} res/ +cp %{SOURCE3} res/ + +%build +just build-release + +%install +just rootdir=%{buildroot} prefix=%{_prefix} install +%suse_update_desktop_file %{appname} + +%check +%{cargo_test} + +%files +%license LICENSE +%doc README.md +%{_bindir}/%{name} +%{_datadir}/applications/%{appname}.desktop +%{_iconsdir}/hicolor/scalable/apps/%{appname}.svg +%{_datadir}/metainfo/%{appname}.metainfo.xml +%changelog diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..2903504 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c7841470e95df22440c9e8a2013b943479dba3e462a6896cf07b6472d4a730a +size 73240465