From 7b42ecbb5138efb9e221da153061f8e5ca0ae05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=92=D0=BE=D0=B7=D0=B6=D0=B5=D0=BD=D0=BD=D0=B8=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= Date: Sat, 2 Nov 2024 11:32:05 +0300 Subject: [PATCH 1/3] [build] spec & instruction for ALT Linux rpm build --- rpm/README.md | 17 +++++++++++ rpm/aurora-toolbox.spec | 66 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 rpm/README.md create mode 100644 rpm/aurora-toolbox.spec diff --git a/rpm/README.md b/rpm/README.md new file mode 100644 index 0000000..33dad82 --- /dev/null +++ b/rpm/README.md @@ -0,0 +1,17 @@ +## Как собрать rpm пакет локально, на примере спецификации для ALT Linux (P11) + +#### Подготовка окружения для сборки +* `# apt-get install rpm-build` +* `$ mkdir -p ~/RPM/SPECS && mkdir -p ~/RPM/SOURCES` +* `$ cd ~/RPM/SOURCES && wget https://github.com/keygenqt/aurora-toolbox/archive/refs/tags/0.0.8.tar.gz` +* Скопировать файл `aurora-toolbox.spec` в `~/RPM/SPECS` и перейти туда + +#### Сборка rpm +* `$ rpmbuild -bb aurora-toolbox.spec` +* При необходимости доустановить зависимости, необходимые для сборки +* Пакет соберется под ахритектуру вашей машины +* Собранный rpm-пакет будет находиться в `~/RPM/RPMS` + +#### Установка +* `# rpm -iv aurora-toolbox-0.0.8-alt1.x86_64.rpm` +* При необходимости доустановить зависимости, необходимые для работы приложения \ No newline at end of file diff --git a/rpm/aurora-toolbox.spec b/rpm/aurora-toolbox.spec new file mode 100644 index 0000000..9e5e5e1 --- /dev/null +++ b/rpm/aurora-toolbox.spec @@ -0,0 +1,66 @@ +%define fullname com.keygenqt.aurora-toolbox + +Name: aurora-toolbox +Version: 0.0.8 +Release: alt1 +Summary: An application that provides an easy start in the Aurora OS ecosystem. + +License: Apache-2.0 +Group: Development/Tools +Url: https://github.com/keygenqt/aurora-toolbox +# download from %{url}/releases/tag/%{version}.tar.gz +Source: %version.tar.gz + +BuildRequires: meson +BuildRequires: libgjs-devel +BuildRequires: libgtk4-devel +BuildRequires: libadwaita-devel >= 1.5 + +Requires: sudo +Requires: gnome-extensions-app +Requires: libgjs +Requires: libgtk4-gir +Requires: libadwaita-gir +Requires: libsoup-gir + +%description +%summary. + +%prep +%setup + +%build +%meson +%meson_build + +%install +%meson_install +mkdir -p %{buildroot}%{_datadir}/applications +mkdir -p %{buildroot}%{_datadir}/icons +install ./files/package/%{fullname}.svg %{buildroot}%{_datadir}/icons/%{fullname}.svg +install ./files/package/%{fullname}.desktop %{buildroot}%{_datadir}/applications/%{fullname}.desktop + +%post +ln -sf %{_bindir}/%{fullname} %{_bindir}/%{name} + +%files +%doc CHANGELOG.md +%{_bindir}/%{fullname} +%{_datadir}/%{fullname}/%{fullname}.data.gresource +%{_datadir}/%{fullname}/%{fullname}.src.gresource +%{_datadir}/applications/%{fullname}.desktop +%{_datadir}/glib-2.0/schemas/%{fullname}.gschema.xml +%{_datadir}/icons/%{fullname}.svg +%{_datadir}/locale/ru/LC_MESSAGES/%{fullname}.mo + +%changelog +* Fri Nov 01 2024 Vitaliy Zarubin 0.0.8 +- Add check version Aurora Toolbox. (Vitaliy Zarubin) +- Add video about install Aurora Toolbox. (Vitaliy Zarubin) + +* Thu Oct 31 2024 Vitaliy Zarubin 0.0.7 +- Fix button open documentation. (Vitaliy Zarubin) +- Add symbolic link aurora-toolbox. (Vitaliy Zarubin) +- Video install Aurora SDK. (Vitaliy Zarubin) +- Video install Flutter SDK. (Vitaliy Zarubin) +- Tab videos for documentation. (Vitaliy Zarubin) \ No newline at end of file From 5b3abaa2641705836114eded6277df3c9019fada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=92=D0=BE=D0=B7=D0=B6=D0=B5=D0=BD=D0=BD=D0=B8=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= Date: Sat, 2 Nov 2024 23:01:17 +0300 Subject: [PATCH 2/3] [build] sync rpm version to 0.0.9 --- rpm/README.md | 4 ++-- rpm/aurora-toolbox.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rpm/README.md b/rpm/README.md index 33dad82..d9fdb9d 100644 --- a/rpm/README.md +++ b/rpm/README.md @@ -3,7 +3,7 @@ #### Подготовка окружения для сборки * `# apt-get install rpm-build` * `$ mkdir -p ~/RPM/SPECS && mkdir -p ~/RPM/SOURCES` -* `$ cd ~/RPM/SOURCES && wget https://github.com/keygenqt/aurora-toolbox/archive/refs/tags/0.0.8.tar.gz` +* `$ cd ~/RPM/SOURCES && wget https://github.com/keygenqt/aurora-toolbox/archive/refs/tags/0.0.9.tar.gz` * Скопировать файл `aurora-toolbox.spec` в `~/RPM/SPECS` и перейти туда #### Сборка rpm @@ -13,5 +13,5 @@ * Собранный rpm-пакет будет находиться в `~/RPM/RPMS` #### Установка -* `# rpm -iv aurora-toolbox-0.0.8-alt1.x86_64.rpm` +* `# rpm -iv aurora-toolbox-0.0.9-alt1.x86_64.rpm` * При необходимости доустановить зависимости, необходимые для работы приложения \ No newline at end of file diff --git a/rpm/aurora-toolbox.spec b/rpm/aurora-toolbox.spec index 9e5e5e1..858a043 100644 --- a/rpm/aurora-toolbox.spec +++ b/rpm/aurora-toolbox.spec @@ -1,7 +1,7 @@ %define fullname com.keygenqt.aurora-toolbox Name: aurora-toolbox -Version: 0.0.8 +Version: 0.0.9 Release: alt1 Summary: An application that provides an easy start in the Aurora OS ecosystem. @@ -54,6 +54,9 @@ ln -sf %{_bindir}/%{fullname} %{_bindir}/%{name} %{_datadir}/locale/ru/LC_MESSAGES/%{fullname}.mo %changelog +* Sat Nov 02 2024 Vitaliy Zarubin 0.0.9 +- Update API install psdk. (Vitaliy Zarubin) + * Fri Nov 01 2024 Vitaliy Zarubin 0.0.8 - Add check version Aurora Toolbox. (Vitaliy Zarubin) - Add video about install Aurora Toolbox. (Vitaliy Zarubin) From dc5d3275648444c2e83ce5aadd1043c9c1f404c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=92=D0=BE=D0=B7=D0=B6=D0=B5=D0=BD=D0=BD=D0=B8=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= Date: Sun, 3 Nov 2024 00:14:33 +0300 Subject: [PATCH 3/3] [build] rpm.sh build script added --- scripts/rpm.sh | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 scripts/rpm.sh diff --git a/scripts/rpm.sh b/scripts/rpm.sh new file mode 100755 index 0000000..2688c92 --- /dev/null +++ b/scripts/rpm.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +############################## +## Build and create rpm package +############################## + +#============================= +check_package() +{ +if [ -n "`rpm -q $1`" ] +then + echo "Checking $1... OK" +else + echo "" + echo "Checking $1... Not found!" + echo "use: apt-get install $1" + exit 1 +fi +} +#============================= + +if [ -z "$1" ] + then + echo "usage: ./rpm.sh [version to build]" + exit 1 +fi + +NAME='aurora-toolbox' + +check_package sudo +check_package meson +check_package wget +check_package rpm-build +check_package libgjs-devel +check_package libgtk4-devel +check_package libadwaita-devel + +echo "" +echo "Preparing..." +mkdir -p ~/RPM/SOURCES && mkdir -p ~/RPM/SPECS +cd ~/RPM/SOURCES && wget https://github.com/keygenqt/$NAME/archive/refs/tags/$1.tar.gz +cd ~/RPM/SPECS && wget https://raw.githubusercontent.com/keygenqt/$NAME/refs/tags/$1/rpm/aurora-toolbox.spec + +echo "" +echo "Build..." +rpmbuild -bb aurora-toolbox.spec + +echo "" +echo "Installing..." +cd ~/RPM/RPMS/`arch`/ +sudo rpm -i $NAME-$1*.rpm