Richard Rahl 2024-07-23 23:43:36 +00:00 committed by Git OBS Bridge
commit cc85178ecc
9 changed files with 170 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

20
_service Normal file
View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<services>
<service name="tar_scm" mode="manual">
<param name="url">https://github.com/jwestall/cosmic-weather.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>
<param name="filename">cosmic-ext-weather</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-weather</param>
<param name="update">false</param>
</service>
<service name="set_version" mode="manual" />
</services>

View File

@ -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;

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.jwestall.Weather</id>
<developer id="com.jwestall">
<name>Jacob Westall</name>
</developer>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-only</project_license>
<project_group>COSMIC</project_group>
<content_rating type="oars-1.1" />
<update_contact>none@available.com</update_contact>
<url type="homepage">https://github.com/jwestall/cosmic-weather</url>
<url type="bugtracker">https://github.com/jwestall/cosmic-weather</url>
<name>COSMIC Ext Weather</name>
<summary>Simple Weather App in libcosmic</summary>
<description>
<p>A simple weather app, which uses rust and libcosmic.</p>
</description>
<branding>
<color type="primary" scheme_preference="light">#eaeaff</color>
<color type="primary" scheme_preference="dark">#280c4b</color>
</branding>
<icon type="remote" height="256" width="256">https://github.com/jwestall/cosmic-weather/blob/main/res/icons/hicolor/scalable/apps/com.jwestall.Weather.svg</icon>
<launchable type="desktop-id">com.jwestall.Weather.desktop</launchable>
<releases>
<release version="0.1.0" date="2024-07-02">
<description>
<p>Initial release! 🎉</p>
</description>
</release>
</releases>
<screenshots>
<screenshot type="default">
<image>https://github.com/jwestall/cosmic-weather/blob/main/screenshots/window.png</image>
<caption>Light mode</caption>
</screenshot>
</screenshots>
<provides>
<id>com.jwestall.Weather.desktop</id>
<binary>cosmic-ext-weather</binary>
</provides>
</component>

View File

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

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Jul 23 22:44:49 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
- initial packaging

64
cosmic-ext-weather.spec Normal file
View File

@ -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

3
vendor.tar.zst Normal file
View File

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