From d627bd974999344a09211522e6357ab216455850 Mon Sep 17 00:00:00 2001 From: Himadri Sekhar Basu Date: Fri, 2 Feb 2024 16:00:00 +0530 Subject: [PATCH] Prepare debian packaging for mousam - Rename desktop file name to Mousam - Add utility as category to desktop - Add debian packaging related files to debian directory --- data/io.github.amit9838.weather.desktop.in | 4 +- debian/changelog | 302 +++++++++++++++++++++ debian/control | 30 ++ debian/copyright | 29 ++ debian/mousam.doc-base.ex | 20 ++ debian/postinst | 31 +++ debian/postrm | 28 ++ debian/rules | 13 + debian/salsa-ci.yml | 11 + debian/source/format | 1 + debian/weather.1 | 56 ++++ 11 files changed, 523 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/mousam.doc-base.ex create mode 100644 debian/postinst create mode 100644 debian/postrm create mode 100755 debian/rules create mode 100644 debian/salsa-ci.yml create mode 100644 debian/source/format create mode 100644 debian/weather.1 diff --git a/data/io.github.amit9838.weather.desktop.in b/data/io.github.amit9838.weather.desktop.in index ebfec3e..c074270 100644 --- a/data/io.github.amit9838.weather.desktop.in +++ b/data/io.github.amit9838.weather.desktop.in @@ -1,10 +1,10 @@ [Desktop Entry] -Name=Weather +Name=Mousam Exec=weather Comment=Beautiful and lightweight weather app Icon=io.github.amit9838.weather Terminal=false Type=Application -Categories=GTK; +Categories=Application;Utility;GTK; Keywords=Weather;Mousam;Rain;Cloud;Forecast; StartupNotify=true diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5367782 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,302 @@ +mousam (1.0.1) jammy; urgency=medium + + [ সৌম্যদীপ ঘোষ ] + * release snap + + [ Amit Chaudhary ] + * update arrow icon path + + [ সৌম্যদীপ ঘোষ ] + * test the latest commit + + [ soumyadghosh ] + * snap: remove hardcoded paths for snap + + [ Amit Chaudhary ] + * Create static.yml + * add website + * fix website speling + * add elements to website + * fix overflow:scroll + * don't save locations with invalid cords + * fix some styling and update features on website + * release v1.0.1 + * release v1.0.1 + + -- Himadri Sekhar Basu Fri, 02 Feb 2024 15:30:43 +0530 + +mousam (1.0.0) jammy; urgency=medium + + [ Nokse ] + * made the app more adaptive + + [ Nokse22 ] + * Update weather.py + + [ Nokse ] + * new icon using svg + + [ Nokse22 ] + * Update README.md + * Update README.md + * Update README.md + + [ Amit Chaudhary ] + * various changes add new icons refactor check internet few fixes + * update icons paths + + [ সৌম্যদীপ ঘোষ(सौम्यदीपः घोषः) ] + * Remove the unofficial mark from Snap + + [ hui1601 ] + * fix gettext not works https://stackoverflow.com/a/46395016 + * Fix typo(Reastart) + * Fix string formatting not works in i18n texts + * Fix Feels like Translation + * Add Korean Translation + + [ Sabri Ünal ] + * data: add translate and vcs-browser url types + * data: validate appdata + * data: Mark release descriptions as untranslatable + * po: update the POTFILES + * app: mark the application name translatable + * po: order LINGUAS entries + * po: Create a POT file + * Update Turkish translation + + [ সৌম্যদীপ ঘোষ(सौम्यदीपः घोषः) ] + * added some more keywords, so that it's easily search in the app grid + + [ Amit Chaudhary ] + * fix Gio import in forecast + * introduce new design with new backend + * Create Models for consistency,scalibility + * use models for better consistency + * use dynamic icons, fix styling + * various changes show dynamic level_string in all cards show icon in current condition section fix tomorrow's forecast also show night icons fix some bugs + * add more icons + * better icon rendering + * use dynamic condition string for current weather,fix some ui styling + * simplify stack switching btn in hourly forecast + * use dynamic value for precipitation + * remove .vscode file + * remove loader from hourly stack + * add locations window + * some ui tweakx + * add search city functionality + * replace 'rime fog' for with 'mist' + * add,remove switch locations from settings + * use cords for selected city, add relevent comments + * location related changes use location details from db ability to switch from location window refresh weather using refresh arrow show no results in search city if nothing foumd fix bugs + * some fixes fix precipitation bar overflow fix spacing in square card fix spacing in arrow icon use epoch timestamp in refresh logic some code cleanup + * show hourly data from curr_time, show dewpoint, add relevent data from hourly to current_w, fix uv inxex calc + * add now label on current time in hourly forecast, add more info in curr_weather section + * some minor fixes include full day data in hourly forecast fix precipitation bar and value + * show local time in sunset,sunrise and clock + * ui related changes move location button in the header use cards in hourly forecast section show text-msg only if no precipitation today organize elements in pressure card reorganize elements in forecast card show random messages for no prec in hourly forecast section + * use threading for better app launch, refresh,switch-loc, highlight now card in hourly + * fix sun rotation + * rename tz functions + * prevent instant location switching + * rename threads + * add switch units from settings + * check internet connectivity before api call + * option to launch in maximized state,better error handling + * add recommends in app data + * add screenshots, fix some bugs + * release v1.0.0 + + -- Himadri Sekhar Basu Fri, 02 Feb 2024 15:29:01 +0530 + +mousam (0.6.0) jammy; urgency=medium + + [ Amit Chaudhary ] + * fix readme + * remove verbs from action-row titles + * follow system font scaling + * fix leading zero in minute + * show condition-text in 5 day forecast + * some ui tweaks + * convert backgrounds to valid css + * split windows.py file + * follow camel case file naming + * new: show summary for snowfall + * convert F to C for summary + * various fixes, code cleanup + * don't unset use_personal_api if no internet + * refactor use_personal_api_key preferences + * rename schema key for api key + * set_expanded if using personal api key + * clean code + * remove use keyword from unit row + * some more code cleanup + * feat: add air pollution info + * scale up left section in condition box + * update screenshots + * release v0.6.0 + * release v0.6.0 + * update release tag + + -- Himadri Sekhar Basu Fri, 02 Feb 2024 15:26:56 +0530 + +mousam (0.5.0) jammy; urgency=medium + + [ Gabriel C ] + * Full Markdown revamp + * Added Snap & Flatpak Link + + [ Amit Chaudhary ] + * remove unnecessary calls when adding, removing cities + * add,remove city more quickly + * use highest wind speed throughout for forecast + * add function to check internet connection + * check for internet connectivity on launch + * skip refreshing if no internet + * make strings translatable, remove print lines + * create utility for get cords,clean code + * simplify city removal refresh condition + * add utility for toasts + * remove unused imports + * add sunrise,sunset + * fix some css + * convert sunset,sunrise time to local + * update screenshots + * release v0.5.0 + + -- Himadri Sekhar Basu Fri, 02 Feb 2024 15:25:25 +0530 + +mousam (0.4.0) jammy; urgency=medium + + [ সৌম্যদীপ ঘোষ(सौम्यदीपः घोषः) ] + * upd: `v0.3.0` + + [ Amit Chaudhary ] + * fix: not changing wind speed on changing unit (restart was required) + + [ সৌম্যদীপ ঘোষ(सौम्यदीपः घोषः) ] + * specify the architectures that can be built on + * fix typo + + [ Amit Chaudhary ] + * fix:align forecast switcher on full screen + * feat:add 5 day forecast + * clean code, ui_improvement, make strings translasalable + * clean code, ui_improvement, make strings translatable + * feat:Show rain summary + * remove unnecessary code + * update screenshot + * release v0.4.0 + + -- Himadri Sekhar Basu Fri, 02 Feb 2024 15:23:53 +0530 + +mousam (0.3.0) jammy; urgency=medium + + [ Сергей Ворон ] + * Update Russian translation + * Update ru.po + + [ Amit Chaudhary ] + * add spanish translation + * update copyright info + * show toast on events like- refresh, add/remove city,save + * clean code + + [ soumyadghosh ] + * added snap manifest build files + * fixed some typos + + [ Amit Chaudhary ] + * switch location from preferences + * clean code, better performance + * fix time in forecast card + + [ সৌম্যদীপ ঘোষ(सौम्यदीपः घोषः) ] + * add installation methods + + [ Amit Chaudhary ] + * Switch location asynchronously + * fetch city async + * Bug fixes, multiple improvements #15 + * use smaller border for window + * switch loc in prefs win with async + * feat: option to use metric or imperial system #14 + * fix spacing + * use full form - celsius, fahrenheit + * feat: option for, today, tomorrow, forecasts #11 + * clean code + * update screenshots + * release v0.3.0 + + -- Himadri Sekhar Basu Fri, 02 Feb 2024 15:22:24 +0530 + +mousam (0.2.1) jammy; urgency=medium + + [ Amit Chaudhary ] + * fix some wrong units + * fix some units and css styling + * use full country name + * show personal api key status in row-title + * update screenshots + * release v0.2.1 + + -- Himadri Sekhar Basu Fri, 02 Feb 2024 15:21:27 +0530 + +mousam (0.2.0) jammy; urgency=medium + + [ Sabri Ünal ] + * Fix a Typo + * i18n: Mark some strings translatable + * UI: Use Application Name in the menu + * Add translator-credits + * Fix copyright information + * Update the POTFILE + * data: Use Sentence case for the application name + * data: Add comment for the application in .desktop file + * Add Turkish translation + + [ Сергей Ворон ] + * Update LINGUAS + * Create ru.po + + [ Sabri Ünal ] + * UI: Mark some strings translatable + * app: hide unused variables + * UI: Make the app title translatable + * UI: Add a tooltip to the refresh button + * UI: Use Header Capitalization + * Update Turkish translation + + [ Amit Chaudhary ] + * include states in search result + * city search ui refactor + * use custom api key + * remove quotes from custom api + * clean code + * release v0.2.0 + * fix typo, change:custom to personal api key + + -- Himadri Sekhar Basu Fri, 02 Feb 2024 15:20:22 +0530 + +mousam (0.1.0) jammy; urgency=medium + + [ Amit Chaudhary ] + * add gitignore + * initial commit + * update menifest + * add repo links + * change app_id,handle empty cities list + * update metadata + * release v0.1.0 + * update menifest + * change app id + * fix wrong app id + * fix target commit + * Delete io.github.amit9838.weather.json~ + * Delete com.github.amit9838.json~ + * fix release tag + * add screenshots + * link scrreenshots + * user raw links + + -- Himadri Sekhar Basu Fri, 02 Feb 2024 15:08:43 +0530 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..6ae1f2f --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: mousam +Section: gnome +Priority: optional +Maintainer: Himadri Sekhar Basu +Build-Depends: debhelper-compat (= 13), + dh-python, + meson (>= 0.61) +Build-Depends-Indep: desktop-file-utils, + gtk-update-icon-cache, + libglib2.0-bin, + libglib2.0-dev, + libglib2.0-dev-bin, + pkg-config, + python3-all +Standards-Version: 4.6.0 +Homepage: https://amit9838.github.io/weather +#Vcs-Browser: https://salsa.debian.org/debian/mousam +#Vcs-Git: https://salsa.debian.org/debian/mousam.git +Rules-Requires-Root: no + +Package: mousam +Architecture: all +Depends: gir1.2-adw-1, + gir1.2-gtk-4.0, + python3-gi, + ${python3:Depends}, + ${misc:Depends} +Description: Weather for Linux + Beautiful and light weight weather app + built using Gtk4 and python diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..eae9a76 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mousam +Upstream-Contact: Amit Chaudhary +Source: https://github.com/amit9838/weather + +Files: * +Copyright: 2023-2024 Amit Chaudhary +License: GPL-3.0+ + +Files: debian/* +Copyright: 2023-2024 Himadri Sekhar Basu +License: GPL-3.0+ + +License: GPL-3.0+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/mousam.doc-base.ex b/debian/mousam.doc-base.ex new file mode 100644 index 0000000..d95fca5 --- /dev/null +++ b/debian/mousam.doc-base.ex @@ -0,0 +1,20 @@ +Document: mousam +Title: Debian mousam Manual +Author: +Abstract: This manual describes what mousam is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/mousam/mousam.sgml.gz + +Format: postscript +Files: /usr/share/doc/mousam/mousam.ps.gz + +Format: text +Files: /usr/share/doc/mousam/mousam.text.gz + +Format: HTML +Index: /usr/share/doc/mousam/html/index.html +Files: /usr/share/doc/mousam/html/*.html diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..c55d922 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,31 @@ +#!/bin/sh +# postinst script for mousam +# +# see: dh_installdeb(1) + +set -e + + +case "$1" in + configure) + if which glib-compile-schemas >/dev/null 2>&1 + then + glib-compile-schemas /usr/share/glib-2.0/schemas + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..9ed6584 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,28 @@ +#!/bin/sh +# postrm script for mousam +# +# see: dh_installdeb(1) + +set -e + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + if which glib-compile-schemas >/dev/null 2>&1 + then + glib-compile-schemas /usr/share/glib-2.0/schemas + fi + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..092ca88 --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +# export DH_VERBOSE = 1 + + +%: + dh $@ --with=python3 --buildsystem=meson + + +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..a6fb8bd --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,11 @@ +# For more information on what jobs are run see: +# https://salsa.debian.org/salsa-ci-team/pipeline +# +# To enable the jobs, go to your repository (at salsa.debian.org) +# and click over Settings > CI/CD > Expand (in General pipelines). +# In "CI/CD configuration file" write debian/salsa-ci.yml and click +# in "Save Changes". The CI tests will run after the next commit. +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/weather.1 b/debian/weather.1 new file mode 100644 index 0000000..2dbaf21 --- /dev/null +++ b/debian/weather.1 @@ -0,0 +1,56 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" (C) Copyright 2023 Himadri Sekhar Basu , +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH Mousam SECTION "October 31 2023" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +mousam \- program to do something +.SH SYNOPSIS +.B mousam +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B mousam +and +.B bar +commands. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBmousam\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system.