Commit 6628d10c authored by Carlos Suárez's avatar Carlos Suárez

Add deploy folders

parent 2c90bd8a
---
## METEO CI
##
## Copyright (c) 2017-2018 Carlos Suárez (https://gitlab.com/bitseater)
## https://gitlab.com/bitseater/meteo
##
## (C) Carlos Suárez <bitseater@gmail.com> - 2019
stages:
- build
......@@ -33,6 +35,7 @@ variables:
paths:
- ./*.deb
## DEBIAN
build:debian:
<<: *build_definition
......@@ -46,3 +49,45 @@ package:debian:
dependencies:
- build:debian
<<: *debpkg_template
## UBUNTU
build:ubuntu:
<<: *build_definition
image: ubuntu:bionic
before_script:
- apt-get update -y
- apt-get -y install $DEPENS
## FEDORA
build:fedora:
<<: *build_definition
image: fedora:30
before_script:
- dnf install $DEPENS_RPM -y
## SNAP
stages:
- package
package:snap:
image: ubuntu:18.04
stage: package
before_script:
- apt-get update -y
- apt-get -y install snapcraft
script:
- snapcraft
- echo $SNAPCRAFT_LOGIN_FILE | base64 --decode --ignore-garbage > snapcraft.login
- snapcraft login --with snapcraft.login
- snapcraft push *.snap --release beta
allow_failure: false
artifacts:
paths: ['./*.snap']
expire_in: 90 days
%global appname com.gitlab.bitseater.%{name}
Name: meteo
Version: 0.9.8
Release: 1%{?dist}
Summary: Current weather information, OpenWeather client
Summary: Forecast application using OpenWeatherMap API
License: GPLv3+
URL: https://gitlab.com/bitseater/meteo
Source0: https://gitlab.com/bitseater/meteo/-/archive/0.9.8/meteo-0.9.8.tar.gz
Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz
%define DEPENS_RPM rpmdevtools, git, gcc, wget, meson, ninja-build, vala, vala-devel, gtk3-devel, libsoup-devel, json-glib-devel, geocode-glib-devel, webkit2gtk3-devel, libappindicator-gtk3-devel, libappstream-glib
BuildRequires: %{DEPENS_RPM}
%description
Current weather, with information about temperature, pressure, wind speed and direction, sunrise & sunset.
Know the forecast of the next hours & days.
Developed with Vala & Gtk, using OpenWeatherMap API.
Features:
- Current weather, with information about temperature, pressure, wind speed and
direction, sunrise & sunset.
- Forecast for next 18 hours.
- Forecast for next five days.
- Choose your units (metric, imperial or british).
- Choose your city, with maps help.
- Awesome maps with weather info.
- System tray indicator.
%prep
%autosetup
......@@ -23,49 +39,20 @@ Current weather, with information about temperature, pressure, wind speed and di
%install
%meson_install
%find_lang %{appname}
%check
%meson_test
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{appname}.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/%{appname}.desktop
%files
%license COPYING
%doc AUTHORS CREDITS.md README.md
%{_bindir}/com.gitlab.bitseater.meteo
%{_prefix}/lib/debug/usr/bin/com.gitlab.bitseater.meteo-0.9.8-1.fc30.x86_64.debug
%{_datadir}/applications/com.gitlab.bitseater.meteo.desktop
%{_datadir}/glib-2.0/schemas/com.gitlab.bitseater.meteo.gschema.xml
%{_datadir}/icons/hicolor/128x128/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/128x128@2/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/16x16/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/16x16@2/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/192x192/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/192x192@2/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/24x24/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/24x24@2/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/256x256/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/256x256@2/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/32x32/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/32x32@2/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/48x48/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/48x48@2/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/64x64/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/64x64@2/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/icons/hicolor/scalable/apps/com.gitlab.bitseater.meteo.svg
%{_datadir}/locale/ca/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/de/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/en/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/es/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/es_ES/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/fr/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/lt/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/nb/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/nl/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/pt/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/pt_BR/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/pt_PT/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/ru/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/locale/sr/LC_MESSAGES/com.gitlab.bitseater.meteo.mo
%{_datadir}/metainfo/com.gitlab.bitseater.meteo.appdata.xml
%doc README.md AUTHORS CREDITS.md CHANGELOG
%{_bindir}/%{appname}
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/icons/hicolor/*/*/*.svg
%{_metainfodir}/*.appdata.xml
%{_mandir}/man1/*.1*
%changelog
......
[Desktop Entry]
Name=Meteo
GenericName=Meteo
Comment[en]=Forecast App for desktop
Comment[es]=Aplicación de predicción para el escritorio
Comment[es_ES]=Aplicación de predicción para el escritorio
Comment[fr]=Application à la Prévision pour le bureau
Comment[lt]=Orų prognozės programa darbalaukiui
Comment[pt]=Aplicativo de Previsão do ambiente de trabalho
Comment[pt_BR]=Aplicativo de Previsão do ambiente de trabalho
Comment[pt_PT]=Aplicativo de Previsão do ambiente de trabalho
Comment=Forecast App for desktop
Categories=Utility;Education;Science;
Exec=meteo
Icon=${SNAP}/meta/gui/meteo.svg
Terminal=false
Type=Application
X-GNOME-Gettext-Domain=com.gitlab.bitseater.meteo
Keywords[en]=Weather;Forecast;Temperature;Wind;Snow;Rain;
Keywords[es]=Tiempo;Previsión;Temperatura;Viento;Nieve;Lluvia;
Keywords[es_ES]=Tiempo;Previsión;Temperatura;Viento;Nieve;Lluvia;
Keywords[fr]=Prévisions;Météo;Température;Vent;Neige;Pluie;
Keywords[lt]=Orai;Prognozė;Temperatūra;Vėjas;Oras;Sniegas;Lietus;
Keywords[pt]=Previsão;Tempo;Temperatura;Vento;Neve;Chuva;
Keywords[pt_BR]=Previsão;Tempo;Temperatura;Vento;Neve;Chuva;
Keywords[pt_PT]=Previsão;Tempo;Temperatura;Vento;Neve;Chuva;
Keywords=Weather;Forecast;Temperature;Wind;Snow;Rain;
X-GNOME-UsesNotifications=true
This diff is collapsed.
name: meteo
version: '0.9.8'
summary: Know the forecast of the next hours and days, with data and maps
description: |
Current weather, with information about temperature, pressure, wind
speed and direction, sunrise and sunset. Show awesome maps with all
this information. Switch between some maps distributors.
grade: stable
confinement: strict
base: core18
slots:
dbus-meteo:
interface: dbus
bus: session
name: com.gitlab.bitseater.meteo
apps:
meteo:
command: bin/desktop-launch $SNAP/bin/snapcraft-preload $SNAP/usr/bin/com.gitlab.bitseater.meteo
plugs:
- x11
- desktop
- desktop-legacy
- wayland
- unity7
- home
- browser-support
- locale-control
- gsettings
- network
- opengl
environment:
GSETTINGS_SCHEMA_DIR: $SNAP/share/glib-2.0/schemas
LD_LIBRARY_PATH: $SNAP/usr/lib/*/webkit2gtk-4.0/:$LD_LIBRARY_PATH
desktop: usr/share/applications/com.gitlab.bitseater.meteo.desktop
parts:
meson:
plugin: nil
override-build: |
apt install -y python3 python3-setuptools python3-pip ninja-build
pip3 install meson
meteo-app:
after: [meson, desktop-gtk3, snapcraft-preload]
source: https://gitlab.com/bitseater/meteo/-/archive/0.9.8/meteo-0.9.8.tar
source-type: tar
plugin: meson
meson-parameters: [--prefix=/usr]
build-packages:
- build-essential
- gettext
- libgtk-3-dev
- valac
- libjson-glib-dev
- meson
- ninja-build
- debhelper
- libsoup2.4-dev
- libgeocode-glib-dev
- libwebkit2gtk-4.0-dev
- libappindicator3-dev
stage-packages:
- dbus
- libgtk-3-0
- libgeocode-glib0
- libwebkit2gtk-4.0-37
- libappindicator3-1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment