diff --git a/anda/apps/lomiri-system-settings/lomiri-system-settings.spec b/anda/apps/lomiri-system-settings/lomiri-system-settings.spec index 4a4531ca4a..94e46e3e49 100644 --- a/anda/apps/lomiri-system-settings/lomiri-system-settings.spec +++ b/anda/apps/lomiri-system-settings/lomiri-system-settings.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri-system-settings -%global commit 595b25b5f6ab0fee51e084bb6b0d31ccfb719e73 +%global commit 890b72e8689a90289522f374534b06f85cde9ddb %forgemeta Name: lomiri-system-settings @@ -11,7 +11,6 @@ URL: https://gitlab.com/ubports/development/core/lomiri-system-settings Source0: %{url}/-/archive/%commit/lomiri-system-settings-%commit.tar.gz Patch0: https://sources.debian.org/data/main/l/lomiri-system-settings/1.0.1-2/debian/patches/1001_use-maliit-keyboard-for-language-plugin.patch Patch1: https://sources.debian.org/data/main/l/lomiri-system-settings/1.0.1-2/debian/patches/2001_disable-current-language-switching.patch -Patch2: https://sources.debian.org/data/main/l/lomiri-system-settings/1.0.1-2/debian/patches/2002_use-Noto-font-instead-of-Ubuntu-font.patch BuildRequires: cmake BuildRequires: gcc-c++ @@ -58,6 +57,7 @@ developing applications that use %{name}. %find_lang %{name} %files -f %{name}.lang +%doc README.md %license COPYING %{_bindir}/lomiri-system-settings %{_libdir}/libLomiriSystemSettings.so.* diff --git a/anda/apps/lomiri-system-settings/update.rhai b/anda/apps/lomiri-system-settings/update.rhai new file mode 100644 index 0000000000..6d6b8ae10d --- /dev/null +++ b/anda/apps/lomiri-system-settings/update.rhai @@ -0,0 +1,3 @@ +let o = get("https://gitlab.com/api/v4/projects/25770177/repository/tags").json_arr()[0]; +rpm.version(o.name); +rpm.global("commit", get("https://gitlab.com/api/v4/projects/25770177/repository/commits").json_arr()[0].id); diff --git a/anda/apps/vala-panel-appmenu/update.rhai b/anda/apps/vala-panel-appmenu/update.rhai new file mode 100644 index 0000000000..90f03e6ca9 --- /dev/null +++ b/anda/apps/vala-panel-appmenu/update.rhai @@ -0,0 +1,3 @@ +let o = get("https://gitlab.com/api/v4/projects/6865053/repository/tags").json_arr()[0]; +rpm.version(o.name); +rpm.global("commit", get("https://gitlab.com/api/v4/projects/6865053/repository/commits").json_arr()[0].id); diff --git a/anda/apps/vala-panel-appmenu/vala-panel-appmenu.spec b/anda/apps/vala-panel-appmenu/vala-panel-appmenu.spec index c7b07eab37..09aae0465f 100644 --- a/anda/apps/vala-panel-appmenu/vala-panel-appmenu.spec +++ b/anda/apps/vala-panel-appmenu/vala-panel-appmenu.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/vala-panel-project/vala-panel-appmenu -%global commit 99cd56c1644fe4193854902c450e67f9a6685112 +%global commit 76442be6195385193cb5931d0004122310d40c95 %forgemeta Name: vala-panel-appmenu diff --git a/anda/desktops/compiz9/compiz9.spec b/anda/desktops/compiz9/compiz9.spec index 3b36c9942d..e147fb6737 100644 --- a/anda/desktops/compiz9/compiz9.spec +++ b/anda/desktops/compiz9/compiz9.spec @@ -1,9 +1,9 @@ -%define _ubuntu_rel 22.10.20220822-0ubuntu1 +%define _ubuntu_rel 22.10.20220822-0ubuntu3 %global _hardened_build 0 Name: compiz9 Version: 0.9.14.2 -Release: %autorelease +Release: 2%?dist Summary: OpenGL window and compositing manager 0.9.X.X series License: GPL-2.0-or-later AND LGPL-2.0-or-later AND MIT diff --git a/anda/desktops/compiz9/update.rhai b/anda/desktops/compiz9/update.rhai new file mode 100644 index 0000000000..b14bc269eb --- /dev/null +++ b/anda/desktops/compiz9/update.rhai @@ -0,0 +1,5 @@ +let html = get("http://archive.ubuntu.com/ubuntu/pool/universe/c/compiz/?C=N;O=D"); +let v = find("compiz_([\\d.]+)\\+(.+?).tar.xz", html, 1); +let r = find("compiz_([\\d.]+)\\+(.+?).tar.xz", html, 2); +rpm.version(v); +rpm.define("_ubuntu_rel", r); diff --git a/anda/desktops/golang-github-fyshos-fynedesk/update.rhai b/anda/desktops/golang-github-fyshos-fynedesk/update.rhai new file mode 100644 index 0000000000..e932363c22 --- /dev/null +++ b/anda/desktops/golang-github-fyshos-fynedesk/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("FyshOS/fynedesk")); diff --git a/anda/desktops/lomiri/lomiri.spec b/anda/desktops/lomiri/lomiri.spec index d939386ef3..81487566e1 100644 --- a/anda/desktops/lomiri/lomiri.spec +++ b/anda/desktops/lomiri/lomiri.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri -%global commit a1a1b1f25714a0f5cddf3905edc38dc6e6b49228 +%global commit 8a2f908c306ec63a7a0f14c247fa1676c655c7ce %forgemeta Name: lomiri @@ -55,6 +55,7 @@ BuildRequires: qt5-qtbase-private-devel BuildRequires: qt5-qtdeclarative-devel BuildRequires: systemd-rpm-macros Recommends: lomiri-session +Requires: deviceinfo Requires: lomiri-system-settings Requires: qmenumodel Requires: xorg-x11-server-Xwayland diff --git a/anda/desktops/lomiri/update.rhai b/anda/desktops/lomiri/update.rhai new file mode 100644 index 0000000000..bf40ea8d35 --- /dev/null +++ b/anda/desktops/lomiri/update.rhai @@ -0,0 +1,3 @@ +let o = get("https://gitlab.com/api/v4/projects/25716028/repository/tags").json_arr()[0]; +rpm.version(o.name); +rpm.global("commit", get("https://gitlab.com/api/v4/projects/25716028/repository/commits").json_arr()[0].id); diff --git a/anda/desktops/unity-shell/unity-shell.spec b/anda/desktops/unity-shell/unity-shell.spec index 6b1ad9eee3..043f2c59d3 100644 --- a/anda/desktops/unity-shell/unity-shell.spec +++ b/anda/desktops/unity-shell/unity-shell.spec @@ -1,3 +1,5 @@ +%define archive unity_7.7.0+23.04.20230222.2-0ubuntu2.tar.xz + Name: unity-shell Version: 7.7.0 Release: %autorelease @@ -5,7 +7,7 @@ Summary: Unity is a shell that sings License: GPL-3.0-or-later URL: https://launchpad.net/unity -Source0: http://archive.ubuntu.com/ubuntu/pool/universe/u/unity/unity_%{version}+23.04.20230222.2-0ubuntu2.tar.xz +Source0: http://archive.ubuntu.com/ubuntu/pool/universe/u/unity/%archive Patch0: 0001-Remove-xpathselect-dependency.patch Patch1: 0002-Remove-ido-dependency.patch Patch2: 0003-Remove-social-scope.patch diff --git a/anda/desktops/unity-shell/update.rhai b/anda/desktops/unity-shell/update.rhai new file mode 100644 index 0000000000..f2c7f60807 --- /dev/null +++ b/anda/desktops/unity-shell/update.rhai @@ -0,0 +1,4 @@ +let html = get("http://archive.ubuntu.com/ubuntu/pool/universe/u/unity/?C=N;O=D"); +let v = find("unity_([\\d.]+)\\+.+?.tar.xz", html, 1); +rpm.version(v); +rpm.define("archive", find("unity_([\\d.]+)\\+.+?.tar.xz", html, 0)); diff --git a/anda/games/minecraft-java/minecraft-java.spec b/anda/games/minecraft-java/minecraft-java.spec index 8b8e04ecad..d87c14304b 100644 --- a/anda/games/minecraft-java/minecraft-java.spec +++ b/anda/games/minecraft-java/minecraft-java.spec @@ -15,7 +15,7 @@ ExclusiveArch: x86_64 Requires: java >= 1.8.0 -Recommends: terra-fractureiser-detector +Recommends: terra-fractureiser-detector %description The official Linux release of the launcher for Minecraft, a game about placing blocks and going on adventures. @@ -42,7 +42,7 @@ install -Dm644 %{SOURCE2} %{buildroot}/%{_datadir}/icons/hicolor/symbolic/apps/m %{_datadir}/icons/hicolor/symbolic/apps/minecraft-launcher.svg %changelog -* Tue Mar 08 2022 Thomas Batten stenstorpmc@gmail.com> - 1121-2 +* Tue Mar 08 2022 Thomas Batten - 1121-2 - Moved minecraft-launcher into bindir * Mon Mar 07 2022 Thomas Batten - 1121-1 diff --git a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec index 25bb850f3e..a3b0f056ce 100644 --- a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec +++ b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec @@ -1,6 +1,6 @@ %global real_name prismlauncher -%global commit 703f7698c1f7b2ae7f6d1db4e9a5aa30b859afbd +%global commit fd9a8d1551e5736aff6da10d8d00cc631c6d6ee0 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 diff --git a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec index 023c0def3d..d12b297ce1 100644 --- a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec +++ b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec @@ -1,6 +1,6 @@ %global real_name prismlauncher -%global commit 703f7698c1f7b2ae7f6d1db4e9a5aa30b859afbd +%global commit fd9a8d1551e5736aff6da10d8d00cc631c6d6ee0 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 diff --git a/anda/indicators/ayatana-indicator-notifications/ayatana-indicator-notifications.spec b/anda/indicators/ayatana-indicator-notifications/ayatana-indicator-notifications.spec index 35a15be116..ea7550ac37 100644 --- a/anda/indicators/ayatana-indicator-notifications/ayatana-indicator-notifications.spec +++ b/anda/indicators/ayatana-indicator-notifications/ayatana-indicator-notifications.spec @@ -2,7 +2,7 @@ Name: ayatana-indicator-notifications Summary: Ayatana Indicator Notifications Applet Version: 22.9.0 Release: %autorelease -License: GPLv3 +License: GPL-3.0 URL: https://github.com/AyatanaIndicators/ayatana-indicator-notifications Source0: %{url}/archive/refs/tags/%{version}.tar.gz diff --git a/anda/indicators/ayatana-indicator-notifications/update.rhai b/anda/indicators/ayatana-indicator-notifications/update.rhai new file mode 100644 index 0000000000..ab635ab1b1 --- /dev/null +++ b/anda/indicators/ayatana-indicator-notifications/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("AyatanaIndicators/ayatana-indicator-notifications")); diff --git a/anda/indicators/ayatana-indicator-session/0001-fix-tests-import-cstdint.patch b/anda/indicators/ayatana-indicator-session/0001-fix-tests-import-cstdint.patch new file mode 100644 index 0000000000..62e326898a --- /dev/null +++ b/anda/indicators/ayatana-indicator-session/0001-fix-tests-import-cstdint.patch @@ -0,0 +1,24 @@ +From e4039bd482e3abba2a04e754fcb179ea95213232 Mon Sep 17 00:00:00 2001 +From: windowsboy111 +Date: Fri, 16 Jun 2023 18:02:22 +0800 +Subject: [PATCH] fix(tests): import cstdint + +--- + tests/backend-dbus/mock-login1-seat.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/backend-dbus/mock-login1-seat.cc b/tests/backend-dbus/mock-login1-seat.cc +index 49d7fb6..ad5d902 100644 +--- a/tests/backend-dbus/mock-login1-seat.cc ++++ b/tests/backend-dbus/mock-login1-seat.cc +@@ -21,6 +21,7 @@ + + #include "mock-object.h" + #include "mock-user.h" ++#include + + namespace + { +-- +2.40.1 + diff --git a/anda/indicators/ayatana-indicator-session/ayatana-indicator-session.spec b/anda/indicators/ayatana-indicator-session/ayatana-indicator-session.spec index 8197832758..41d5be6851 100644 --- a/anda/indicators/ayatana-indicator-session/ayatana-indicator-session.spec +++ b/anda/indicators/ayatana-indicator-session/ayatana-indicator-session.spec @@ -1,10 +1,11 @@ Name: ayatana-indicator-session Summary: Ayatana Indicator Session Applet -Version: 22.9.1 -Release: %autorelease -License: GPLv3 +Version: 22.9.2 +Release: 1%{?dist} +License: GPL-3.0 URL: https://github.com/AyatanaIndicators/ayatana-indicator-session Source0: %{url}/archive/refs/tags/%{version}.tar.gz +Patch0: 0001-fix-tests-import-cstdint.patch BuildRequires: cmake BuildRequires: cmake-extras @@ -16,6 +17,7 @@ BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(dbustest-1) BuildRequires: pkgconfig(gee-0.8) BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(systemd) BuildRequires: intltool %description @@ -30,7 +32,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} This package contains the development header files for %{name}. %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 %build %cmake -DENABLE_TESTS=ON \ diff --git a/anda/indicators/ayatana-indicator-session/update.rhai b/anda/indicators/ayatana-indicator-session/update.rhai new file mode 100644 index 0000000000..3674e0a669 --- /dev/null +++ b/anda/indicators/ayatana-indicator-session/update.rhai @@ -0,0 +1,3 @@ +let tags = get("https://api.github.com/repos/AyatanaIndicators/ayatana-indicator-session/git/refs/tags").json_arr(); +let split_ref = tags[tags.len-1].ref.split("/"); +rpm.version(split_ref[split_ref.len-1]); diff --git a/anda/indicators/ayatana-indicator-sound/update.rhai b/anda/indicators/ayatana-indicator-sound/update.rhai new file mode 100644 index 0000000000..37d1c03c23 --- /dev/null +++ b/anda/indicators/ayatana-indicator-sound/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("AyatanaIndicators/ayatana-indicator-sound")); diff --git a/anda/lib/ayatana-indicator-datetime/ayatana-indicator-datetime.spec b/anda/lib/ayatana-indicator-datetime/ayatana-indicator-datetime.spec index 2dc89ea588..5756de2e2d 100644 --- a/anda/lib/ayatana-indicator-datetime/ayatana-indicator-datetime.spec +++ b/anda/lib/ayatana-indicator-datetime/ayatana-indicator-datetime.spec @@ -1,8 +1,8 @@ Name: ayatana-indicator-datetime Summary: A GTK implementation of the StatusNotifierItem Specification -Version: 22.9.1 +Version: 23.6.0 Release: %autorelease -License: GPLv3 +License: GPL-3.0 URL: https://github.com/AyatanaIndicators/ayatana-indicator-datetime Source0: %{url}/archive/refs/tags/%{version}.tar.gz diff --git a/anda/lib/ayatana-indicator-datetime/update.rhai b/anda/lib/ayatana-indicator-datetime/update.rhai new file mode 100644 index 0000000000..1ac9b13f34 --- /dev/null +++ b/anda/lib/ayatana-indicator-datetime/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("AyatanaIndicators/ayatana-indicator-datetime")); diff --git a/anda/lib/deviceinfo/deviceinfo.spec b/anda/lib/deviceinfo/deviceinfo.spec index 202fefd04a..2ef673d325 100644 --- a/anda/lib/deviceinfo/deviceinfo.spec +++ b/anda/lib/deviceinfo/deviceinfo.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/deviceinfo -%global commit fe939f071aafa47f631caec55a4e8420b3eb4a12 +%global commit 5dada778683ef8a1da13d0459768d8048429a646 %forgemeta Name: deviceinfo @@ -53,6 +53,7 @@ install -Dm644 '%{SOURCE1}' %{buildroot}%{_mandir}/man1/device-info.1 %files devel %dir %{_includedir}/deviceinfo %{_includedir}/deviceinfo/deviceinfo.h +/usr/include/deviceinfo/deviceinfo_c_api.h %{_libdir}/libdeviceinfo.so %{_libdir}/pkgconfig/deviceinfo.pc diff --git a/anda/lib/gmenuharness/gmenuharness.spec b/anda/lib/gmenuharness/gmenuharness.spec index 377aac7458..555efbce71 100644 --- a/anda/lib/gmenuharness/gmenuharness.spec +++ b/anda/lib/gmenuharness/gmenuharness.spec @@ -42,6 +42,7 @@ developing applications that use %{name}. %cmake_install %files +%doc README %license COPYING %{_libdir}/libgmenuharness.so.* diff --git a/anda/lib/gsettings-qt-lomiri/gsettings-qt-lomiri.spec b/anda/lib/gsettings-qt-lomiri/gsettings-qt-lomiri.spec index c26122c344..c52a86cd86 100644 --- a/anda/lib/gsettings-qt-lomiri/gsettings-qt-lomiri.spec +++ b/anda/lib/gsettings-qt-lomiri/gsettings-qt-lomiri.spec @@ -44,9 +44,7 @@ rm -rf %{buildroot}/usr/tests %files %license COPYING -%{_libdir}/libgsettings-qt.so.1 -%{_libdir}/libgsettings-qt.so.1.0 -%{_libdir}/libgsettings-qt.so.1.0.0 +%{_libdir}/libgsettings-qt.so.* %dir %{_libdir}/qt5/qml/GSettings.1.0 %{_libdir}/qt5/qml/GSettings.1.0/libGSettingsQmlPlugin.so %{_libdir}/qt5/qml/GSettings.1.0/plugins.qmltypes diff --git a/anda/lib/libayatana-common/libayatana-common.spec b/anda/lib/libayatana-common/libayatana-common.spec index 4ea42157c1..48c395d10e 100644 --- a/anda/lib/libayatana-common/libayatana-common.spec +++ b/anda/lib/libayatana-common/libayatana-common.spec @@ -2,7 +2,7 @@ Name: libayatana-common Summary: Common functions for Ayatana System Indicators Version: 0.9.8 Release: %autorelease -License: GPLv3 +License: GPL-3.0 URL: https://github.com/AyatanaIndicators/libayatana-common Source0: %{url}/archive/refs/tags/%{version}.tar.gz @@ -15,7 +15,7 @@ BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: vala-devel -Buildrequires: vala +BuildRequires: vala BuildRequires: intltool %description diff --git a/anda/lib/libayatana-common/update.rhai b/anda/lib/libayatana-common/update.rhai new file mode 100644 index 0000000000..570bed83d1 --- /dev/null +++ b/anda/lib/libayatana-common/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("AyatanaIndicators/libayatana-common")); diff --git a/anda/lib/libusermetrics/libusermetrics.spec b/anda/lib/libusermetrics/libusermetrics.spec index 6b931cbcc8..b31085cfcb 100644 --- a/anda/lib/libusermetrics/libusermetrics.spec +++ b/anda/lib/libusermetrics/libusermetrics.spec @@ -55,6 +55,7 @@ The %{name}-doc contains documentation for %{name}. %find_lang %{name} %files -f %{name}.lang +%doc ChangeLog %license LGPL_EXCEPTION.txt LICENSE.GPL LICENSE.LGPL LICENSE.LGPL-3 %{_sysconfdir}/dbus-1/system.d/com.lomiri.UserMetrics.conf %{_bindir}/usermetricsinput diff --git a/anda/lib/lomiri-api/lomiri-api.spec b/anda/lib/lomiri-api/lomiri-api.spec index f802a956c7..33e71d2cf4 100644 --- a/anda/lib/lomiri-api/lomiri-api.spec +++ b/anda/lib/lomiri-api/lomiri-api.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri-api -%global commit 30860779881a2a235ba454ac37a06e349af05eb3 +%global commit 9e2618e1a68f114581dad9f624bd509d46c9d984 %forgemeta Name: lomiri-api diff --git a/anda/lib/lomiri-app-launch/lomiri-app-launch.spec b/anda/lib/lomiri-app-launch/lomiri-app-launch.spec index aee0c7abfd..ebc13f17cc 100644 --- a/anda/lib/lomiri-app-launch/lomiri-app-launch.spec +++ b/anda/lib/lomiri-app-launch/lomiri-app-launch.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri-app-launch -%global commit d69c7a1339e0d227bebb500b6a1fe655095ff700 +%global commit e58213c813ffda487dc4fb1226c9f866864510e4 %forgemeta Name: lomiri-app-launch diff --git a/anda/lib/lomiri-app-launch/update.rhai b/anda/lib/lomiri-app-launch/update.rhai index 4bef084cc0..c2168b6685 100644 --- a/anda/lib/lomiri-app-launch/update.rhai +++ b/anda/lib/lomiri-app-launch/update.rhai @@ -1,3 +1,2 @@ -let o = get("https://gitlab.com/api/v4/projects/17286402/repository/tags").json_arr()[0]; -rpm.global("commit", o.commit.id); -rpm.version(o.name); +rpm.version(get("https://gitlab.com/api/v4/projects/17286402/repository/tags").json_arr()[0].name); +rpm.global("commit", get("https://gitlab.com/api/v4/projects/17286402/repository/commits").json_arr()[0].id); diff --git a/anda/lib/lomiri-download-manager/lomiri-download-manager.spec b/anda/lib/lomiri-download-manager/lomiri-download-manager.spec index 33f1ec2878..a6c4b52f89 100644 --- a/anda/lib/lomiri-download-manager/lomiri-download-manager.spec +++ b/anda/lib/lomiri-download-manager/lomiri-download-manager.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri-download-manager -%global commit 86d086292db613df0b0cbc5fc2cfcdc33c3315bb +%global commit 2c7d6921ac56862c197958f4e5c31aa76a1a50e1 %forgemeta Name: lomiri-download-manager @@ -46,7 +46,6 @@ BuildArch: noarch %prep %autosetup -n lomiri-download-manager-%commit sed -e "s/-Werror//g" -i CMakeLists.txt -sed -i 's/ -qt=qt5//' docs/qml/CMakeLists.txt %build %cmake -DCMAKE_INSTALL_LIBEXECDIR=%{_libdir} -DENABLE_UBUNTU_COMPAT=ON @@ -72,6 +71,7 @@ sed -i 's/ -qt=qt5//' docs/qml/CMakeLists.txt %{_qt5_qmldir}/Ubuntu/ %{_datadir}/dbus-1/services/*.service %{_datadir}/dbus-1/system-services/*.service +%{_mandir}/man1/*.gz %files devel %dir %{_includedir}/lomiri/download_manager diff --git a/anda/lib/lomiri-indicator-network/lomiri-indicator-network.spec b/anda/lib/lomiri-indicator-network/lomiri-indicator-network.spec index c0e6130a83..c9eef4fd02 100644 --- a/anda/lib/lomiri-indicator-network/lomiri-indicator-network.spec +++ b/anda/lib/lomiri-indicator-network/lomiri-indicator-network.spec @@ -1,15 +1,14 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri-indicator-network -%global commit f4610298aa91b17161b5bc65b232228bf0fcab47 +%global commit ac0ae8ec8968c934f81c2664879ab10f76ab0fc2 %forgemeta Name: lomiri-indicator-network Version: 1.0.0 Release: %autorelease Summary: The Network indicator for Ubuntu Touch -License: GPLv3 AND LGPLv3 +License: GPL-3.0 AND LGPL-3.0 URL: https://gitlab.com/ubports/development/core/lomiri-indicator-network Source0: %{url}/-/archive/%commit/lomiri-indicator-network-%commit.tar.gz -Patch0: https://sources.debian.org/data/main/l/lomiri-indicator-network/1.0.0-1/debian/patches/1003_no-abs-paths-in-documentation.patch BuildRequires: systemd-rpm-macros BuildRequires: qt-devel @@ -52,7 +51,7 @@ BuildArch: noarch The %{name}-doc package contains documentation files for %{name}. %prep -%autosetup -n lomiri-indicator-network-%commit -p1 +%autosetup -n lomiri-indicator-network-%commit %build %cmake -DENABLE_COVERAGE=OFF -DENABLE_UBUNTU_COMPAT=ON @@ -75,6 +74,7 @@ The %{name}-doc package contains documentation files for %{name}. %{_qt5_qmldir}/Ubuntu/Connectivity/qmldir %dir %{_libexecdir}/lomiri-indicator-network %{_libexecdir}/lomiri-indicator-network/lomiri-indicator-network-* +%{_datadir}/dbus-1/services/com.lomiri.connectivity1.service %{_datadir}/glib-2.0/schemas/com.lomiri.indicator.network.gschema.xml %{_datadir}/unity/indicators/com.lomiri.indicator.network diff --git a/anda/lib/lomiri-settings-components/lomiri-settings-components.spec b/anda/lib/lomiri-settings-components/lomiri-settings-components.spec index 66ff7788bc..83431340f8 100644 --- a/anda/lib/lomiri-settings-components/lomiri-settings-components.spec +++ b/anda/lib/lomiri-settings-components/lomiri-settings-components.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri-settings-components -%global commit 2951ca5aa3d5d78823240d163aecb4a0aa62c535 +%global commit 5041243d56fb7aaab270b4d07284687ec33f75c6 %forgemeta Name: lomiri-settings-components diff --git a/anda/lib/lomiri-ui-toolkit/lomiri-ui-toolkit.spec b/anda/lib/lomiri-ui-toolkit/lomiri-ui-toolkit.spec index 85b161f036..3b40550984 100644 --- a/anda/lib/lomiri-ui-toolkit/lomiri-ui-toolkit.spec +++ b/anda/lib/lomiri-ui-toolkit/lomiri-ui-toolkit.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri-ui-toolkit -%global commit b996aa8e9d5add6e9d55f9a44a9fafc548d819c1 +%global commit 7df579c068335df31a704307d2bd20542233e5d2 %forgemeta Name: lomiri-ui-toolkit @@ -87,8 +87,6 @@ Examples for Lomiri-ui-toolkit. %make_install INSTALL_ROOT=%{buildroot} STRIP=/bin/true # Used by apicheck during tests only rm -rf %{buildroot}%{_qt5_qmldir}/Extinct -# Has various issues -rm -rf %{buildroot}%{_datadir}/lomiri-ui-toolkit/doc/html %find_lang %{name} %find_lang %{name}-gallery @@ -138,8 +136,7 @@ rm -rf %{buildroot}%{_datadir}/lomiri-ui-toolkit/doc/html %files doc %license COPYING.CC-BY-SA-3.0 %{_qt5_docdir}/*.qch -%dir %{_datadir}/lomiri-ui-toolkit -%{_datadir}/lomiri-ui-toolkit/doc/ +%{_datadir}/doc/lomiri-ui-toolkit/ %files examples -f %{name}-gallery.lang %dir %{_qt5_examplesdir}/lomiri-ui-toolkit diff --git a/anda/lib/lomiri-ui-toolkit/update.rhai b/anda/lib/lomiri-ui-toolkit/update.rhai index 5c7d73e15f..4c97bcbcd3 100644 --- a/anda/lib/lomiri-ui-toolkit/update.rhai +++ b/anda/lib/lomiri-ui-toolkit/update.rhai @@ -1,3 +1,2 @@ -let o = get("https://gitlab.com/api/v4/projects/19057685/repository/tags").json_arr()[0]; -rpm.global("commit", o.commit.id); -rpm.version(o.name); +rpm.version(get("https://gitlab.com/api/v4/projects/19057685/repository/tags").json_arr()[0].name); +rpm.global("commit", get("https://gitlab.com/api/v4/projects/19057685/repository/commits").json_arr()[0].id); diff --git a/anda/lib/lomiri-url-dispatcher/lomiri-url-dispatcher.spec b/anda/lib/lomiri-url-dispatcher/lomiri-url-dispatcher.spec index 81a15666af..4bc366103b 100644 --- a/anda/lib/lomiri-url-dispatcher/lomiri-url-dispatcher.spec +++ b/anda/lib/lomiri-url-dispatcher/lomiri-url-dispatcher.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri-url-dispatcher -%global commit 0f6518439bdec30816feb0ede9d52080f50d1425 +%global commit 23c42355cfbb7ab2ad9702d0362ed5590cf994bd %forgemeta Name: lomiri-url-dispatcher diff --git a/anda/lib/lomiri-url-dispatcher/update.rhai b/anda/lib/lomiri-url-dispatcher/update.rhai index 3b89df98ff..9793815e9a 100644 --- a/anda/lib/lomiri-url-dispatcher/update.rhai +++ b/anda/lib/lomiri-url-dispatcher/update.rhai @@ -1,3 +1,2 @@ -let o = get("https://gitlab.com/api/v4/projects/17424894/repository/tags").json_arr()[0]; -rpm.global("commit", o.commit.id); -rpm.version(o.name); +rpm.version(get("https://gitlab.com/api/v4/projects/17424894/repository/tags").json_arr()[0].name); +rpm.global("commit", get("https://gitlab.com/api/v4/projects/17424894/repository/commits").json_arr()[0].id); diff --git a/anda/lib/qmenumodel/qmenumodel.spec b/anda/lib/qmenumodel/qmenumodel.spec index f85a169cab..de06e9d6ba 100644 --- a/anda/lib/qmenumodel/qmenumodel.spec +++ b/anda/lib/qmenumodel/qmenumodel.spec @@ -5,6 +5,7 @@ Summary: Qt5 renderer for Ayatana Indicators License: LGPLv3 URL: https://github.com/AyatanaIndicators/qmenumodel Source0: https://releases.ayatana-indicators.org/source/qmenumodel/qmenumodel-%{version}.tar.gz +Patch0: https://gitlab.com/ubports/development/core/packaging/qmenumodel/-/raw/9062c3a3da87d6fd887c41a67dec6f8d5f34baa8/debian/patches/1001-ayatanamenumodel-add-support-for-u-int-of-all-sizes.patch BuildRequires: cmake BuildRequires: cmake-extras @@ -30,7 +31,7 @@ The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep -%autosetup -n qmenumodel-%{version} +%autosetup -n qmenumodel-%{version} -p1 %build %cmake -DENABLE_TESTS=ON -DENABLE_COVERAGE=ON -DGENERATE_DOC=ON diff --git a/anda/lib/qt5-qtdbustest/qt5-qtdbustest.spec b/anda/lib/qt5-qtdbustest/qt5-qtdbustest.spec index 5465f0d1ba..f5850eeb47 100644 --- a/anda/lib/qt5-qtdbustest/qt5-qtdbustest.spec +++ b/anda/lib/qt5-qtdbustest/qt5-qtdbustest.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/libqtdbustest -%global commit f204bb8d7e9a2ffcd159d2f51f47257a715bbd62 +%global commit 58990d63f2327d285d6ead430d03b02558257291 %forgemeta Name: qt5-qtdbustest @@ -8,7 +8,7 @@ Release: %autorelease Summary: Library for testing DBus interactions using Qt5 License: LGPL-3.0 URL: https://gitlab.com/ubports/development/core/libqtdbustest -Source0: %url/-/archive/%version/libqtdbustest-%version.tar.gz +Source0: %url/-/archive/%commit/libqtdbustest-%commit.tar.gz BuildRequires: cmake BuildRequires: cmake-extras @@ -32,7 +32,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} developing applications that use %{name}. %prep -%autosetup -n libqtdbustest-%version +%autosetup -n libqtdbustest-%commit %build %cmake diff --git a/anda/lib/qtdbusmock/qtdbusmock.spec b/anda/lib/qtdbusmock/qtdbusmock.spec index 552fa2af19..dd9a22afd7 100644 --- a/anda/lib/qtdbusmock/qtdbusmock.spec +++ b/anda/lib/qtdbusmock/qtdbusmock.spec @@ -41,6 +41,7 @@ developing applications that use %{name}. %cmake_install %files +%doc README.md %license COPYING %{_libdir}/libqtdbusmock.so.* %dir %{_datadir}/libqtdbusmock diff --git a/anda/lib/qtmir/qtmir.spec b/anda/lib/qtmir/qtmir.spec index f55f15dfd6..4d3ce40914 100644 --- a/anda/lib/qtmir/qtmir.spec +++ b/anda/lib/qtmir/qtmir.spec @@ -76,7 +76,7 @@ This package contains development files needed for qtmir. %prep %autosetup -n qtmir-%commit -p1 -#sed -i '' +sed -i 's!X-Ubuntu-Touch=true!X-Lomiri-Splash-Show=false!' data/xwayland.qtmir.desktop %build %cmake -DWerror=OFF -DWITH_MIR2=on -DWITH_CONTENTHUB=OFF diff --git a/anda/nim/nim-nightly/anda.hcl b/anda/nim/nim-nightly/anda.hcl new file mode 100644 index 0000000000..d03dac1566 --- /dev/null +++ b/anda/nim/nim-nightly/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "nim-nightly.spec" + } + labels { + nightly = "1" + } +} diff --git a/anda/nim/nim-nightly/nim-nightly.spec b/anda/nim/nim-nightly/nim-nightly.spec new file mode 100644 index 0000000000..5f08c9db2d --- /dev/null +++ b/anda/nim/nim-nightly/nim-nightly.spec @@ -0,0 +1,118 @@ +%global csrc_commit 561b417c65791cd8356b5f73620914ceff845d10 +%global commit e8d0f1c3aedd8290cc972e3d06f642e88dbe783e +%global ver 1.9.5 +%global debug_package %nil + +Name: nim-nighlty +Version: %ver^%commit +Release: 1%{?dist} +Summary: Imperative, multi-paradigm, compiled programming language +License: MIT and BSD +URL: https://nim-lang.org +Source0: https://github.com/nim-lang/Nim/archive/%commit.tar.gz +Source1: nim.1 +Source2: nimgrep.1 +Source3: nimble.1 +Source4: nimsuggest.1 +BuildRequires: gcc mold git gcc-c++ nodejs openssl-devel pkgconfig(bash-completion) gc-devel pcre pcre-devel +Requires: redhat-rpm-config gcc +Conflicts: choosenim + + +%description +Nim is a compiled, garbage-collected systems programming language with a +design that focuses on efficiency, expressiveness, and elegance (in that +order of priority). + + +%package tools +Summary: Tools for Nim programming language +%description tools +Nim is a compiled, garbage-collected systems programming language with a +design that focuses on efficiency, expressiveness, and elegance (in that +order of priority). + +This package provides various tools, which help Nim programmers. + + +%package doc +Summary: Documentation for Nim programming language +BuildArch: noarch +%description doc +Nim is a compiled, garbage-collected systems programming language with a +design that focuses on efficiency, expressiveness, and elegance (in that +order of priority). + +This package provides documentation and reference manual for the language +and its standard library. + +%prep +%autosetup -n Nim-%commit + +%build +export CFLAGS="${CFLAGS} -Ofast" +export CXXFLAGS="${CXXFLAGS} -Ofast" +export FFLAGS="${FFLAGS} -Ofast" +export FCFLAGS="${FCFLAGS} -Ofast" + +export PATH="$(pwd):$(pwd)/bin:${PATH}" + +. ci/funs.sh +nimBuildCsourcesIfNeeded + +mold -run nim c --noNimblePath --skipUserCfg --skipParentCfg --hints:off -d:danger koch.nim +mold -run koch boot -d:release -d:nimStrictMode --lib:lib + +mold -run koch docs & +(cd lib; mold -run nim c --app:lib -d:danger -d:createNimRtl nimrtl.nim) & +mold -run koch tools --skipUserCfg --skipParentCfg --hints:off -d:release & +mold -run nim c -d:danger nimsuggest/nimsuggest.nim & +wait + +sed -i '/ - 1.9.3^fcc383d89994241f1b73fe4f85ef38528c135e2e-1 +- Initial Package. diff --git a/anda/nim/nim-nightly/nim.1 b/anda/nim/nim-nightly/nim.1 new file mode 100644 index 0000000000..dee9c08bfd --- /dev/null +++ b/anda/nim/nim-nightly/nim.1 @@ -0,0 +1,649 @@ +.TH NIM 1 "SEPTEMBER 2017" Linux "User Manuals" +.SH NAME +.PP +nim \- Nim compiler +.SH SYNOPSIS +.PP +\fB\fCnim\fR \fB\fCcommand\fR [\fIoptions\fP] [\fIprojectfile\fP] [\fIarguments\fP] +.SH COMMANDS +.PP +Basic commands +.PP +\fB\fCcompile\fR, \fB\fCc\fR + compile project with default code generator (C) +.PP +\fB\fCdoc\fR + generate the documentation for inputfile +.PP +\fB\fCdoc2\fR + generate the documentation for the whole project +.SH OPTIONS +.PP +\fB\fC\-p\fR, \fB\fC\-\-path\fR:\fIPATH\fP + add path to search paths +.PP +\fB\fC\-d\fR, \fB\fC\-\-define\fR:\fISYMBOL\fP(:\fIVAL\fP) + define a conditional symbol (optionally: define the value for that symbol) +.PP +\fB\fC\-u\fR, \fB\fC\-\-undef\fR:\fISYMBOL\fP + undefine a conditional symbol +.PP +\fB\fC\-f\fR, \fB\fC\-\-forceBuild\fR + force rebuilding of all modules +.PP +\fB\fC\-\-stackTrace\fR:\fIon\fP|\fIoff\fP + turn stack tracing on|off +.PP +\fB\fC\-\-lineTrace\fR:\fIon\fP|\fIoff\fP + turn line tracing on|off +.PP +\fB\fC\-\-threads\fR:\fIon\fP|\fIoff\fP + turn support for multi\-threading on|off +.PP +\fB\fC\-x\fR, \fB\fC\-\-checks\fR:\fIon\fP|\fIoff\fP + turn all runtime checks on|off +.PP +\fB\fC\-\-objChecks\fR:\fIon\fP|\fIoff\fP + turn obj conversion checks on|off +.PP +\fB\fC\-\-fieldChecks\fR:\fIon\fP|\fIoff\fP + turn case variant field checks on|off +.PP +\fB\fC\-\-rangeChecks\fR:\fIon\fP|\fIoff\fP + turn range checks on|off +.PP +\fB\fC\-\-boundChecks\fR:\fIon\fP|\fIoff\fP + turn bound checks on|off +.PP +\fB\fC\-\-overflowChecks\fR:\fIon\fP|\fIoff\fP + turn int over\-/underflow checks on|off +.PP +\fB\fC\-a\fR, \fB\fC\-\-assertions\fR:\fIon\fP|\fIoff\fP + turn assertions on|off +.PP +\fB\fC\-\-floatChecks\fR:\fIon\fP|\fIoff\fP + turn all floating point (NaN/Inf) checks on|off +.PP +\fB\fC\-\-nanChecks\fR:\fIon\fP|\fIoff\fP + turn NaN checks on|off +.PP +\fB\fC\-\-infChecks\fR:\fIon\fP|\fIoff\fP + turn Inf checks on|off +.PP +\fB\fC\-\-deadCodeElim\fR:\fIon\fP|\fIoff\fP + whole program dead code elimination on|off +.PP +\fB\fC\-\-opt\fR:\fInone\fP|\fIspeed|size\fP + optimize not at all or for speed|size. Note: use \fB\fC\-d:release\fR for a release build! +.PP +\fB\fC\-\-debugger\fR:native|endb* + use native debugger (gdb) | ENDB (experimental) +.PP +\fB\fC\-\-app\fR:\fIconsole\fP|\fIgui\fP|\fIlib\fP|\fIstaticlib\fP + generate a console app, GUI app, DLL, or static library +.PP +\fB\fC\-r\fR, \fB\fC\-\-run\fR + run the compiled program with given arguments +.PP +\fB\fC\-\-advanced\fR + show advanced command line switches +.PP +\fB\fC\-h\fR, \fB\fC\-\-help\fR + show this help +.SH ADVANCED COMMANDS +.PP +\fB\fCcompileToC\fR, \fB\fCcc\fR + compile project with C code generator +.PP +\fB\fCcompileToCpp\fR, \fB\fCcpp\fR + compile project to C++ code +.PP +\fB\fCcompileToOC\fR, \fB\fCobjc\fR + compile project to Objective C code +.PP +\fB\fCjs\fR + compile project to Javascript +.PP +\fB\fCe\fR + run a Nimscript file +.PP +\fB\fCrst2html\fR + convert a reStructuredText file to HTML +.PP +\fB\fCrst2tex\fR + convert a reStructuredText file to TeX +.PP +\fB\fCjsondoc\fR + extract the documentation to a json file +.PP +\fB\fCjsondoc2\fR + extract documentation to a json file (uses doc2) +.PP +\fB\fCbuildIndex\fR + build an index for the whole documentation +.PP +\fB\fCrun\fR + run the project (with Tiny C backend; buggy!) +.PP +\fB\fCgenDepend\fR + generate a DOT file containing the module dependency graph +.PP +\fB\fCdump\fR + dump all defined conditionals and search paths +.PP +\fB\fCcheck\fR + checks the project for syntax and semantic +.SH ADVANCED OPTIONS +.PP +\fB\fC\-o\fR:\fIFILE\fP, \fB\fC\-\-out\fR:\fIFILE\fP + set the output filename +.PP +\fB\fC\-\-stdout\fR + output to stdout +.PP +\fB\fC\-\-colors\fR:\fIon\fP|\fIoff\fP + turn compiler messages coloring on|off +.PP +\fB\fC\-\-listFullPaths\fR + list full paths in messages +.PP +\fB\fC\-w\fR:\fIon\fP|\fIoff\fP|\fIlist\fP, \fB\fC\-\-warnings\fR:\fIon\fP|\fIoff\fP|\fIlist\fP + turn all warnings on|off or list all available +.PP +\fB\fC\-\-warning[X]\fR:\fIon\fP|\fIoff\fP + turn specific warning X on|off +.PP +\fB\fC\-\-hints\fR:\fIon\fP|\fIoff\fP|\fIlist\fP + turn all hints on|off or list all available +.PP +\fB\fC\-\-hint[X]\fR:\fIon\fP|\fIoff\fP + turn specific hint X on|off +.PP +\fB\fC\-\-lib\fR:\fIPATH\fP + set the system library path +.PP +\fB\fC\-\-import\fR:\fIPATH\fP + add an automatically imported module +.PP +\fB\fC\-\-include\fR:\fIPATH\fP + add an automatically included module +.PP +\fB\fC\-\-nimcache\fR:\fIPATH\fP + set the path used for generated files +.PP +\fB\fC\-\-header\fR:\fIFILE\fP + the compiler should produce a .h file (FILE is optional) +.PP +\fB\fC\-c\fR, \fB\fC\-\-compileOnly\fR + compile only; do not assemble or link +.PP +\fB\fC\-\-noLinking\fR + compile but do not link +.PP +\fB\fC\-\-noMain\fR + do not generate a main procedure +.PP +\fB\fC\-\-genScript\fR + generate a compile script (in the 'nimcache' subdirectory named 'compile_$project$scriptext') +.PP +\fB\fC\-\-os\fR:\fISYMBOL\fP + set the target operating system (cross\-compilation) +.PP +\fB\fC\-\-cpu\fR:\fISYMBOL\fP + set the target processor (cross\-compilation) +.PP +\fB\fC\-\-debuginfo\fR + enables debug information +.PP +\fB\fC\-t\fR, \fB\fC\-\-passC\fR:\fIOPTION\fP + pass an option to the C compiler +.PP +\fB\fC\-l\fR, \fB\fC\-\-passL\fR:\fIOPTION\fP + pass an option to the linker +.PP +\fB\fC\-\-cincludes\fR:\fIDIR\fP + modify the C compiler header search path +.PP +\fB\fC\-\-clibdir\fR:\fIDIR\fP + modify the linker library search path +.PP +\fB\fC\-\-clib\fR:\fILIBNAME\fP + link an additional C library (you should omit platform\-specific extensions) +.PP +\fB\fC\-\-genMapping\fR + generate a mapping file containing (Nim, mangled) identifier pairs +.PP +\fB\fC\-\-project\fR + document the whole project (doc2) +.PP +\fB\fC\-\-docSeeSrcUrl\fR:\fIurl\fP + activate 'see source' for doc and doc2 commands (see doc.item.seesrc in config/nimdoc.cfg) +.PP +\fB\fC\-\-lineDir\fR:\fIon\fP|\fIoff\fP + generation of #line directive on|off +.PP +\fB\fC\-\-embedsrc\fR + embeds the original source code as comments in the generated output +.PP +\fB\fC\-\-threadanalysis\fR:\fIon\fP|\fIoff\fP + turn thread analysis on|off +.PP +\fB\fC\-\-tlsEmulation\fR:\fIon\fP|\fIoff\fP + turn thread local storage emulation on|off +.PP +\fB\fC\-\-taintMode\fR:\fIon\fP|\fIoff\fP + turn taint mode on|off +.PP +\fB\fC\-\-implicitStatic\fR:\fIon\fP|\fIoff\fP + turn implicit compile time evaluation on|off +.PP +\fB\fC\-\-patterns\fR:\fIon\fP|\fIoff\fP + turn pattern matching on|off +.PP +\fB\fC\-\-memTracker\fR:\fIon\fP|\fIoff\fP + turn memory tracker on|off +.PP +\fB\fC\-\-excessiveStackTrace\fR:\fIon\fP|\fIoff\fP + stack traces use full file paths +.PP +\fB\fC\-\-skipCfg\fR + do not read the general configuration file +.PP +\fB\fC\-\-skipUserCfg\fR + do not read the user's configuration file +.PP +\fB\fC\-\-skipParentCfg\fR + do not read the parent dirs' configuration files +.PP +\fB\fC\-\-skipProjCfg\fR + do not read the project's configuration file +.PP +\fB\fC\-\-gc\fR:\fIrefc\fP|\fIv2\fP|\fImarkAndSweep\fP|\fIboehm\fP|\fIgo|none\fP|\fIregions\fP + select the GC to use; default is \fB\fCrefc\fR +.PP +\fB\fC\-\-index\fR:\fIon\fP|\fIoff\fP + turn index file generation on|off +.PP +\fB\fC\-\-putenv\fR:\fIkey\fP=\fIvalue\fP + set an environment variable +.PP +\fB\fC\-\-NimblePath\fR:\fIPATH\fP + add a path for Nimble support +.PP +\fB\fC\-\-noNimblePath\fR + deactivate the Nimble path +.PP +\fB\fC\-\-noCppExceptions\fR + use default exception handling with C++ backend +.PP +\fB\fC\-\-excludePath\fR:\fIPATH\fP + exclude a path from the list of search paths +.PP +\fB\fC\-\-dynlibOverride\fR:\fISYMBOL\fP + marks SYMBOL so that dynlib:SYMBOL has no effect and can be statically linked instead; symbol matching is fuzzy so that \fB\fC\-\-dynlibOverride:lua\fR matches dynlib: "liblua.so.3" +.PP +\fB\fC\-\-listCmd\fR + list the commands used to execute external programs +.PP +\fB\fC\-\-parallelBuild\fR:\fI0\fP|\fI1\fP|\fI\&...\fP + perform a parallel build value = number of processors (0 for auto\-detect) +.PP +\fB\fC\-\-verbosity\fR:\fI0\fP|\fI1\fP|\fI2\fP|\fI3\fP + set Nim's verbosity level (1 is default) +.PP +\fB\fC\-\-experimental\fR + enable experimental language features +.PP +\fB\fC\-v\fR, \fB\fC\-\-version\fR + show detailed version information +.SH LIST OF WARNINGS +.PP +Each warning can be activated individually with \fB\fC\-\-warning[NAME]\fR:\fIon\fP|\fIoff\fP or in a \fB\fCpush\fR pragma. +.TS +allbox; +cb cb +l l +l l +l l +l l +l l +l l +l l +l l +. +Name Description +CannotOpenFile Some file not essential for the compiler's working could not be opened. +OctalEscape The code contains an unsupported octal sequence. +Deprecated The code uses a deprecated symbol. +ConfigDeprecated The project makes use of a deprecated config file. +SmallLshouldNotBeUsed The letter 'l' should not be used as an identifier. +EachIdentIsTuple The code contains a confusing var declaration. +ShadowIdent A local variable shadows another local variable of an outer scope. +User Some user defined warning. +.TE +.SH VERBOSITY LEVELS +.PP +\fB\fC0\fR: + Minimal output level for the compiler. +.PP +\fB\fC1\fR: + Displays compilation of all the compiled files, including those imported by other modules or through the compile pragma \[la]https://nim-lang.org/docs/nimc.html#compile-pragma\[ra]\&. This is the default level. +.PP +\fB\fC2\fR: + Displays compilation statistics, enumerates the dynamic libraries that will be loaded by the final binary and dumps to standard output the result of applying a filter to the source code \[la]https://nim-lang.org/docs/filters.html\[ra] if any filter was used during compilation. +.PP +\fB\fC3\fR: + In addition to the previous levels dumps a debug stack trace for compiler developers. +.SH COMPILE TIME SYMBOLS +.PP +Through the \fB\fC\-d\fR:\fIx\fP or \fB\fC\-\-define\fR:\fIx\fP switch you can define compile time symbols for conditional compilation. The defined switches can be checked in source code with the when statement and defined proc. The typical use of this switch is to enable builds in release mode (\fB\fC\-d:release\fR) where certain safety checks are omitted for better performance. Another common use is the \fB\fC\-d:ssl\fR switch to activate SSL sockets. +.PP +Additionally, you may pass a value along with the symbol: \fB\fC\-d\fR:\fIx=y\fP which may be used in conjunction with the compile time define pragmas to override symbols during build time. +.SH CONFIGURATION FILES +.PP +\fINote\fP: The project file name is the name of the \fB\fC\&.nim\fR file that is passed as a command line argument to the compiler. +.PP +The \fB\fCnim\fR executable processes configuration files in the following directories (in this order; later files overwrite previous settings): +.nr step0 0 1 +.RS +.IP \n+[step0] +\fB\fC$nim/config/nim.cfg\fR, \fB\fC/etc/nim.cfg\fR (UNIX) or \fB\fC%NIMROD%/config/nim.cfg\fR (Windows). This file can be skipped with the \-\-skipCfg command line option. +.IP \n+[step0] +\fB\fC/home/$user/.config/nim.cfg\fR (UNIX) or \fB\fC%APPDATA%/nim.cfg\fR (Windows). This file can be skipped with the \fB\fC\-\-skipUserCfg\fR command line option. +.IP \n+[step0] +\fB\fC$parentDir/nim.cfg\fR where \fB\fC$parentDir\fR stands for any parent directory of the project file's path. These files can be skipped with the \fB\fC\-\-skipParentCfg\fR command line option. +.IP \n+[step0] +\fB\fC$projectDir/nim.cfg\fR where \fB\fC$projectDir\fR stands for the project file's path. This file can be skipped with the \fB\fC\-\-skipProjCfg\fR command line option. +.IP \n+[step0] +A project can also have a project specific configuration file named \fB\fC$project.nim.cfg\fR that resides in the same directory as \fB\fC$project.nim\fR\&. This file can be skipped with the \fB\fC\-\-skipProjCfg\fR command line option. +Command line settings have priority over configuration file settings. +.RE +.PP +The default build of a project is a debug build. To compile a release build define the \fB\fCrelease\fR symbol: +.PP +.RS +.nf +nim c \-d:release myproject.nim +.fi +.RE +.SH SEARCH PATH HANDLING +.PP +Nim has the concept of a global search path (PATH) that is queried to determine where to find imported modules or include files. If multiple files are found an ambiguity error is produced. +.PP +\fB\fCnim dump\fR shows the contents of the PATH. +.PP +However before the PATH is used the current directory is checked for the file's existence. So if PATH contains $lib and $lib/bar and the directory structure looks like this: +.PP +.RS +.nf +$lib/x.nim +$lib/bar/x.nim +foo/x.nim +foo/main.nim +other.nim +.fi +.RE +.PP +And \fB\fCmain\fR imports \fB\fCx\fR, \fB\fCfoo/x\fR is imported. If \fB\fCother\fR imports \fB\fCx\fR then both \fB\fC$lib/x.nim\fR and \fB\fC$lib/bar/x.nim\fR match and so the compiler should reject it. Currently however this check is not implemented and instead the first matching file is used. +.SH GENERATED C CODE DIRECTORY +.PP +The generated files that Nim produces all go into a subdirectory called \fB\fCnimcache\fR in your project directory. This makes it easy to delete all generated files. Files generated in this directory follow a naming logic which you can read about in the Nim Backend Integration document \[la]https://nim-lang.org/docs/backends.html#nimcache-naming-logic\[ra]\&. +.PP +However, the generated C code is not platform independent. C code generated for Linux does not compile on Windows, for instance. The comment on top of the C file lists the OS, CPU and CC the file has been compiled for. +.SH COMPILATION CACHE +.PP +\fIWarning\fP: The compilation cache is still highly experimental! +.PP +The \fB\fCnimcache\fR directory may also contain so called rod or symbol files. These files are pre\-compiled modules that are used by the compiler to perform incremental compilation. This means that only modules that have changed since the last compilation (or the modules depending on them etc.) are re\-compiled. However, per default no symbol files are generated; use the \fB\fC\-\-symbolFiles:on\fR command line switch to activate them. +.PP +Unfortunately due to technical reasons the \fB\fC\-\-symbolFiles:on\fR needs to aggregate some generated C code. This means that the resulting executable might contain some cruft even when dead code elimination is turned on. So the final release build should be done with \fB\fC\-\-symbolFiles:off\fR\&. +.PP +Due to the aggregation of C code it is also recommended that each project resides in its own directory so that the generated \fB\fCnimcache\fR directory is not shared between different projects. +.SH COMPILER SELECTION +.PP +To change the compiler from the default compiler (at the command line): +.PP +.RS +.nf +nim c \-\-cc:llvm_gcc \-\-compile_only myfile.nim +.fi +.RE +.PP +This uses the configuration defined in \fB\fCconfig\\nim.cfg\fR for \fB\fCllvm_gcc\fR\&. +.PP +If \fB\fCnimcache\fR already contains compiled code from a different compiler for the same project, add the \fB\fC\-f\fR flag to force all files to be recompiled. +.PP +The default compiler is defined at the top of \fB\fCconfig\\nim.cfg\fR\&. Changing this setting affects the compiler used by \fB\fCkoch\fR to (re)build Nim. +.SH CROSS COMPILATION +.PP +To cross compile, use for example: +.PP +.RS +.nf +nim c \-\-cpu:i386 \-\-os:linux \-\-compileOnly \-\-genScript myproject.nim +.fi +.RE +.PP +Then move the C code and the compile script \fB\fCcompile_myproject.sh\fR to your Linux i386 machine and run the script. +.PP +Another way is to make Nim invoke a cross compiler toolchain: +.PP +.RS +.nf +nim c \-\-cpu:arm \-\-os:linux myproject.nim +.fi +.RE +.PP +For cross compilation, the compiler invokes a C compiler named like \fB\fC$cpu.$os.$cc\fR (for example \fB\fCarm.linux.gcc\fR) and the configuration system is used to provide meaningful defaults. For example for \fIARM\fP your configuration file should contain something like: +.PP +.RS +.nf +arm.linux.gcc.path = "/usr/bin" +arm.linux.gcc.exe = "arm\-linux\-gcc" +arm.linux.gcc.linkerexe = "arm\-linux\-gcc" +.fi +.RE +.PP +DLL GENERATION +.PP +Nim supports the generation of DLLs. However, there must be only one instance of the GC per process/address space. This instance is contained in \fB\fCnimrtl.dll\fR\&. This means that every generated Nim DLL depends on \fB\fCnimrtl.dll\fR\&. To generate the "nimrtl.dll" file, use the command: +.PP +.RS +.nf +nim c \-d:release lib/nimrtl.nim +.fi +.RE +.PP +To link against nimrtl.dll use the command: +.PP +.RS +.nf +nim c \-d:useNimRtl myprog.nim +.fi +.RE +.PP +\fINote\fP: Currently the creation of \fB\fCnimrtl.dll\fR with thread support has never been tested and is unlikely to work! +.SH ADDITIONAL COMPILATION SWITCHES +.PP +The standard library supports a growing number of \fB\fCuseX\fR conditional defines affecting how some features are implemented. This section tries to give a complete list. +.PP +\fB\fC\-d:release\fR + Turns off runtime checks and turns on the optimizer. +.PP +\fB\fC\-d:useWinAnsi\fR + Modules like \fB\fCos\fR and \fB\fCosproc\fR use the ANSI versions of the Windows API. The default build uses the Unicode version. +.PP +\fB\fC\-d:useFork\fR + Makes \fB\fCosproc\fR use \fB\fCfork\fR instead of \fB\fCposix_spawn\fR\&. +.PP +\fB\fC\-d:useNimRtl\fR + Compile and link against \fB\fCnimrtl.dll\fR\&. +.PP +\fB\fC\-d:useMalloc\fR + Makes Nim use C's malloc instead of Nim's own memory manager, ableit prefixing each allocation with its size to support clearing memory on reallocation. This only works with \fB\fCgc:none\fR\&. +.PP +\fB\fC\-d:useRealtimeGC\fR + Enables support of Nim's GC for soft realtime systems. See the documentation of the gc \[la]https://nim-lang.org/docs/gc.html\[ra] for further information. +.PP +\fB\fC\-d:nodejs\fR + The JS target is actually \fB\fCnode.js\fR\&. +.PP +\fB\fC\-d:ssl\fR + Enables OpenSSL support for the sockets module. +.PP +\fB\fC\-d:memProfiler\fR + Enables memory profiling for the native GC. +.PP +\fB\fC\-d:uClibc\fR + Use uClibc instead of libc. (Relevant for Unix\-like OSes) +.PP +\fB\fC\-d:checkAbi\fR + When using types from C headers, add checks that compare what's in the Nim file with what's in the C header (requires a C compiler with \fIStatic\fPassert support, like any C11 compiler) +.PP +\fB\fC\-d:tempDir\fR:\fIPATH\fP + This symbol takes a string as its value, like \fB\fC\-\-define:tempDir:/some/temp/path\fR to override the temporary directory returned by \fB\fCos.getTempDir()\fR\&. The value should end with a directory separator character. (Relevant for the Android platform) +.PP +\fB\fC\-d:useShPath\fR:\fIPATH\fP + This symbol takes a string as its value, like \fB\fC\-\-define:useShPath:/opt/sh/bin/sh\fR to override the path for the \fB\fCsh\fR binary, in cases where it is not located in the default location \fB\fC/bin/sh\fR\&. +.SH ADDITIONAL FEATURES +.PP +This section describes Nim's additional features that are not listed in the Nim manual. Some of the features here only make sense for the C code generator and are subject to change. +.PP +\fILineDir option\fP + The \fB\fClineDir\fR option can be turned on or off. If turned on the generated C code contains \fB\fC#line\fR directives. This may be helpful for debugging with GDB. +.PP +\fIStackTrace option\fP + If the \fB\fCstackTrace\fR option is turned on, the generated C contains code to ensure that proper stack traces are given if the program crashes or an uncaught exception is raised. +.PP +\fILineTrace option\fP + The \fB\fClineTrace\fR option implies the \fB\fCstackTrace\fR option. If turned on, the generated C contains code to ensure that proper stack traces with line number information are given if the program crashes or an uncaught exception is raised. +.PP +\fIDebugger option\fP + The \fB\fCdebugger\fR option enables or disables the \fIEmbedded Nim Debugger\fP\&. See the documentation of endb \[la]https://nim-lang.org/docs/endb.html\[ra] for further information. +.PP +\fIBreakpoint pragma\fP + The breakpoint pragma was specially added for the sake of debugging with ENDB. See the documentation of endb \[la]https://nim-lang.org/docs/endb.html\[ra] for further information. +.SH DynlibOverride +.PP +By default Nim's \fB\fCdynlib\fR pragma causes the compiler to generate \fB\fCGetProcAddress\fR (or their Unix counterparts) calls to bind to a DLL. With the \fB\fCdynlibOverride\fR command line switch this can be prevented and then via \fB\fC\-\-passL\fR the static library can be linked against. For instance, to link statically against Lua this command might work on Linux: +.PP +.RS +.nf +nim c \-\-dynlibOverride:lua \-\-passL:liblua.lib program.nim +.fi +.RE +.SH BACKEND LANGUAGE OPTIONS +.PP +The typical compiler usage involves using the \fB\fCcompile\fR or \fB\fCc\fR command to transform a \fB\fC\&.nim\fR file into one or more \fB\fC\&.c\fR files which are then compiled with the platform's C compiler into a static binary. However there are other commands to compile to C++, Objective\-C or Javascript. More details can be read in the Nim Backend Integration document \[la]https://nim-lang.org/docs/backends.html\[ra]\&. +.SH NIM DOCUMENTATION TOOLS +.PP +Nim provides the \fB\fCdoc\fR and \fB\fCdoc2\fR commands to generate HTML documentation from \fB\fC\&.nim\fR source files. Only exported symbols will appear in the output. For more details see the docgen documentation \[la]https://nim-lang.org/docs/docgen.html\[ra]\&. +.SH NIM IDETOOLS INTEGRATION +.PP +Nim provides language integration with external IDEs through the \fB\fCidetools\fR command. See the documentation of idetools \[la]https://nim-lang.org/docs/idetools.html\[ra] for further information. +.SH NIM FOR EMBEDDED SYSTEMS +.PP +The standard library can be avoided to a point where C code generation for 16bit micro controllers is feasible. Use the standalone target (\fB\fC\-\-os:standalone\fR) for a bare bones standard library that lacks any OS features. +.PP +To make the compiler output code for a 16bit target use the \fB\fC\-\-cpu:avr\fR target. +.PP +For example, to generate code for an AVR processor use this command: +.PP +.RS +.nf +nim c \-\-cpu:avr \-\-os:standalone \-\-deadCodeElim:on \-\-genScript x.nim +.fi +.RE +.PP +For the \fB\fCstandalone\fR target one needs to provide a file \fB\fCpanicoverride.nim\fR\&. See \fB\fCtests/manyloc/standalone/panicoverride.nim\fR for an example implementation. Additionally, users should specify the amount of heap space to use with the \fB\fC\-d:StandaloneHeapSize\fR=\fISIZE\fP command line switch. Note that the total heap size will be \fB\fCSIZE * sizeof(float64)\fR\&. +.SH NIM FOR REALTIME SYSTEMS +.PP +See the documentation of Nim's soft realtime GC \[la]https://nim-lang.org/docs/gc.html\[ra] for further information. +.SH DEBUGGING WITH NIM +.PP +Nim comes with its own \fIEmbedded Nim Debugger\fP\&. See the documentation of endb \[la]https://nim-lang.org/docs/endb.html\[ra] for further information. +.SH OPTIMIZING FOR NIM +.PP +Nim has no separate optimizer, but the C code that is produced is very efficient. Most C compilers have excellent optimizers, so usually it is not needed to optimize one's code. Nim has been designed to encourage efficient code: The most readable code in Nim is often the most efficient too. +.PP +However, sometimes one has to optimize. Do it in the following order: +.nr step1 0 1 +.RS +.IP \n+[step1] +switch off the embedded debugger (it is slow!) +.IP \n+[step1] +turn on the optimizer and turn off runtime checks +.IP \n+[step1] +profile your code to find where the bottlenecks are +.IP \n+[step1] +try to find a better algorithm +.IP \n+[step1] +do low\-level optimizations +.RE +.PP +This section can only help you with the last item. +.PP +\fIOptimizing string handling\fP +.PP +String assignments are sometimes expensive in Nim: They are required to copy the whole string. However, the compiler is often smart enough to not copy strings. Due to the argument passing semantics, strings are never copied when passed to subroutines. The compiler does not copy strings that are a result from a procedure call, because the callee returns a new string anyway. Thus it is efficient to do: +.PP +.RS +.nf +var s = procA() # assignment will not copy the string; procA allocates a new + # string already +.fi +.RE +.PP +However it is not efficient to do: +.PP +.RS +.nf +var s = varA # assignment has to copy the whole string into a new buffer! +.fi +.RE +.PP +For \fB\fClet\fR symbols a copy is not always necessary: +.PP +.RS +.nf +let s = varA # may only copy a pointer if it safe to do so +.fi +.RE +.PP +If you know what you're doing, you can also mark single string (or sequence) objects as shallow: +.PP +.RS +.nf +var s = "abc" +shallow(s) # mark 's' as shallow string +var x = s # now might not copy the string! +.fi +.RE +.PP +Usage of \fB\fCshallow\fR is always safe once you know the string won't be modified anymore, similar to Ruby's freeze. +.PP +The compiler optimizes string case statements: A hashing scheme is used for them if several different string constants are used. So code like this is reasonably efficient: +.PP +.RS +.nf +case normalize(k.key) +of "name": c.name = v +of "displayname": c.displayName = v +of "version": c.version = v +of "os": c.oses = split(v, {';'}) +of "cpu": c.cpus = split(v, {';'}) +of "authors": c.authors = split(v, {';'}) +of "description": c.description = v +of "app": + case normalize(v) + of "console": c.app = appConsole + of "gui": c.app = appGUI + else: quit(errorStr(p, "expected: console or gui")) +of "license": c.license = UnixToNativePath(k.value) +else: quit(errorStr(p, "unknown variable: " & k.key)) +.fi +.RE +.SH SEE ALSO +.PP +Official documentation \[la]https://nim-lang.org/documentation.html\[ra], +.BR nimgrep (1) diff --git a/anda/nim/nim-nightly/nimble.1 b/anda/nim/nim-nightly/nimble.1 new file mode 100644 index 0000000000..c9a99ac3f1 --- /dev/null +++ b/anda/nim/nim-nightly/nimble.1 @@ -0,0 +1,97 @@ +.TH NIMBLE 1 "SEPTEMBER 2017" Linux "User Manuals" +.SH NAME +.PP +nimble \- package manager for the Nim programming language. +.SH SYNOPSIS +.PP +\fB\fCnimble\fR \fIcommand\fP [\fIcommand\-options\fP] +.SH COMMANDS +.PP +\fB\fCinstall\fR [\fB\fC\-d\fR, \fB\fC\-\-depsOnly\fR] [\fIpkgname\fP, \fI\&...\fP] + Install a list of packages (\fB\fC\-d\fR switch for only dependencies). +.PP +\fB\fCdevelop\fR [\fIpkgname\fP, \fI\&...\fP] + Clone a list of packages for development. Symlinks the cloned packages or any package in the current working directory. +.PP +\fB\fCcheck\fR + Verify the validity of a package in the current working directory. +.PP +\fB\fCinit\fR [\fIpkgname\fP] + Initialize a new Nimble project. +.PP +\fB\fCpublish\fR + Publish a package on nim\-lang/packages. The current working directory needs to be the toplevel directory of the Nimble package. +.PP +\fB\fCuninstall\fR [\fIpkgname\fP, \fI\&...\fP] + Uninstall a list of packages. +.PP +\fB\fCbuild\fR + Build a package. +.PP +\fB\fCc\fR [\fIoptions\fP, \fI\&...\fP] \fIfile.nim\fP + Build a file inside a package using \fB\fCC\fR backend. +.PP +\fB\fCcc\fR [\fIoptions\fP, \fI\&...\fP] \fIfile.nim\fP + Build a file inside a package using \fB\fCC++\fR backend. +.PP +\fB\fCjs\fR [\fIoptions\fP, \fI\&...\fP] \fIfile.nim\fP + Build a file inside a package using \fB\fCJavascript\fR backend. +.PP +\fB\fCtest\fR + Compile and execute tests +.PP +\fB\fCdoc\fR [\fIoptions\fP, \fI\&...\fP] \fIfile.nim\fP + Build documentation for a file inside a package. +.PP +\fB\fCdoc2\fR [\fIoptions\fP, \fI\&...\fP] \fIfile.nim\fP + Build documentation with semantic checking for a file inside a package. +.PP +\fB\fCrefresh\fR [\fIurl\fP] + Refresh the package list. A package list URL can be optionally specified. +.PP +\fB\fCsearch\fR [\fB\fC\-\-ver\fR] \fIpkg\fP/\fItag\fP + Search for a specified package by tag and by name. With \fB\fC\-\-ver\fR remote server will be asked for package versions. +.PP +\fB\fClist\fR [\fB\fC\-\-ver\fR] + List all packages. With \fB\fC\-\-ver\fR remote server will be asked for package versions. With \fB\fC\-i\fR results will be limited to locally installed packages. +.PP +\fB\fCtasks\fR + List the tasks specified in the Nimble package's Nimble file. +.PP +\fB\fCpath\fR \fIpkgname\fP \fI\&...\fP + Shows absolute path to the installed packages specified. +.PP +\fB\fCdump\fR [\fIpkgname\fP] + Outputs Nimble package information for external tools. The argument can be a .nimble file, a project directory or the name of an installed package. +.SH OPTIONS +.PP +\fB\fC\-h\fR, \fB\fC\-\-help\fR + Print this help message. +.PP +\fB\fC\-v\fR, \fB\fC\-\-version\fR + Print version information. +.PP +\fB\fC\-y\fR, \fB\fC\-\-accept\fR + Accept all interactive prompts. +.PP +\fB\fC\-n\fR, \fB\fC\-\-reject\fR + Reject all interactive prompts. +.PP +\fB\fC\-\-ver\fR + Query remote server for package version information when searching or listing packages +.PP +\fB\fC\-\-nimbleDir\fR:\fIdirname\fP + Set the Nimble directory. +.PP +\fB\fC\-\-verbose\fR + Show all non\-debug output. +.PP +\fB\fC\-\-debug\fR + Show all output including debug messages. +.PP +\fB\fC\-\-noColor\fR + Don't colorise output. +.SH SEE ALSO +.PP +.BR nim (1), +README \[la]https://github.com/nim-lang/nimble#readme\[ra] diff --git a/anda/nim/nim-nightly/nimgrep.1 b/anda/nim/nim-nightly/nimgrep.1 new file mode 100644 index 0000000000..4fcec43da2 --- /dev/null +++ b/anda/nim/nim-nightly/nimgrep.1 @@ -0,0 +1,60 @@ +.TH NIMGREP 1 "SEPTEMBER 2017" Linux "User Manuals" +.SH NAME +.PP +nimgrep \- search and replace strings matching pattern +.SH SYNOPSIS +.PP +\fB\fCnimgrep\fR [\fIoptions\fP] [\fIpattern\fP] [\fIreplacement\fP] [\fIFILE\fP/\fIDIRECTORY\fP\&...] +.SH DESCRIPTION +.PP +Nimgrep is a command line tool for search&replace tasks. It can search for regex or peg patterns and can search whole directories at once. User confirmation for every single replace operation can be requested. +.PP +Nimgrep has particularly good support for Nim's eccentric \fIstyle insensitivity\fP\&. Apart from that it is a generic text manipulation tool. +.SH OPTIONS +.PP +\fB\fC\-\-find\fR, \fB\fC\-f\fR + find the pattern (default) +.PP +\fB\fC\-\-replace\fR, \fB\fC\-r\fR + replace the pattern +.PP +\fB\fC\-\-peg\fR + pattern is a peg +.PP +\fB\fC\-\-re\fR + pattern is a regular expression (default); extended syntax for the regular expression is always turned on +.PP +\fB\fC\-\-recursive\fR + process directories recursively +.PP +\fB\fC\-\-confirm\fR + confirm each occurrence/replacement; there is a chance to abort any time without touching the file +.PP +\fB\fC\-\-stdin\fR + read pattern from stdin (to avoid the shell's confusing quoting rules) +.PP +\fB\fC\-\-word\fR, \fB\fC\-w\fR + the match should have word boundaries (buggy for pegs!) +.PP +\fB\fC\-\-ignoreCase\fR, \fB\fC\-i\fR + be case insensitive +.PP +\fB\fC\-\-ignoreStyle\fR, \fB\fC\-y\fR + be style insensitive +.PP +\fB\fC\-\-ext\fR:\fIEX1\fP|\fIEX2\fP|\fI\&...\fP + only search the files with the given +.BR extension (s) +.PP +\fB\fC\-\-verbose\fR + be verbose: list every processed file +.PP +\fB\fC\-\-help\fR, \fB\fC\-h\fR + shows this help +.PP +\fB\fC\-\-version\fR, \fB\fC\-v\fR + shows the version +.SH SEE ALSO +.PP +.BR nim (1), +Official documentation \[la]https://nim-lang.org/documentation.html\[ra] diff --git a/anda/nim/nim-nightly/nimsuggest.1 b/anda/nim/nim-nightly/nimsuggest.1 new file mode 100644 index 0000000000..16a0bedec2 --- /dev/null +++ b/anda/nim/nim-nightly/nimsuggest.1 @@ -0,0 +1,42 @@ +.TH NIMSUGGEST 1 "SEPTEMBER 2017" Linux "User Manuals" +.SH NAME +.PP +nimsuggest \- tool to give every editor IDE like capabilities for Nim +.SH SYNOPSIS +.PP +\fB\fCnimsuggest\fR [\fIoptions\fP] \fIprojectfile.nim\fP +.SH OPTIONS +.PP +\fB\fC\-\-port\fR:\fIPORT\fP + port, by default 6000 +.PP +\fB\fC\-\-address\fR:\fIHOST\fP + binds to that address, by default "" +.PP +\fB\fC\-\-stdin\fR + read commands from stdin and write results to stdout instead of using sockets +.PP +\fB\fC\-\-epc\fR + use emacs epc mode +.PP +\fB\fC\-\-debug\fR + enable debug output +.PP +\fB\fC\-\-log\fR + enable verbose logging to \fB\fCnimsuggest.log\fR file +.PP +\fB\fC\-\-v1\fR + use version 1 of the protocol; for backwards compatibility +.PP +\fB\fC\-\-refresh\fR + perform automatic refreshes to keep the analysis precise +.PP +\fB\fC\-\-maxresults\fR:\fIN\fP + limit the number of suggestions to N +.PP +\fB\fC\-\-tester\fR + implies \fB\fC\-\-stdin\fR and outputs a line \fB\fC\&'!EOF!'\fR for the tester +.SH SEE ALSO +.PP +.BR nim (1), +Official documentation \[la]https://nim-lang.org/docs/nimsuggest.html\[ra] diff --git a/anda/nim/nim-nightly/update.rhai b/anda/nim/nim-nightly/update.rhai new file mode 100644 index 0000000000..874d47a96c --- /dev/null +++ b/anda/nim/nim-nightly/update.rhai @@ -0,0 +1,12 @@ +if filters.contains("nightly") { + let comp = get("https://raw.githubusercontent.com/nim-lang/Nim/devel/lib/system/compilation.nim"); + let maj = find("\\n\\s*NimMajor.+=\\s*(\\d+)\\n", comp, 1); + let min = find("\\n\\s*NimMinor.+=\\s*(\\d+)\\n", comp, 1); + let pat = find("\\n\\s*NimPatch.+=\\s*(\\d+)\\n", comp, 1); + let v = `${maj}.${min}.${pat}`; + rpm.global("ver", v); + let req = new_req("https://api.github.com/repos/nim-lang/Nim/commits/HEAD"); + req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); + rpm.global("commit", req.get().json().sha); + rpm.release(); +} diff --git a/anda/others/click/click.spec b/anda/others/click/click.spec index 78f90b1132..f60c71de46 100644 --- a/anda/others/click/click.spec +++ b/anda/others/click/click.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/click -%global commit ff697fae4259e7b0f4bef27e3817f848bc06233a +%global commit 0de0e0748ecfdf29997e6167f71fca0e2b03151b %forgemeta Name: click diff --git a/anda/others/lomiri-session/lomiri-session.spec b/anda/others/lomiri-session/lomiri-session.spec index 7f1ce2fb0c..4d4ed95a4e 100644 --- a/anda/others/lomiri-session/lomiri-session.spec +++ b/anda/others/lomiri-session/lomiri-session.spec @@ -1,5 +1,5 @@ %global forgeurl https://gitlab.com/ubports/development/core/lomiri-session -%global commit 94a0d8d12e63fd4a298fb4cdce5f11e0a20bdb8c +%global commit d33d5b666d5c18150ce216cc838713f18d84385c %forgemeta Name: lomiri-session @@ -9,11 +9,6 @@ Summary: Configuration schemas for lomiri License: LGPLv3 URL: https://gitlab.com/ubports/development/core/lomiri-session Source0: %{url}/-/archive/%commit/lomiri-desktop-session-%commit.tar.gz -Patch0: https://sources.debian.org/data/main/l/lomiri-session/0.2-3/debian/patches/0001_desktop-dm-lomiri-session-Drop-old-wizard-has-run-ch.patch -Patch1: https://sources.debian.org/data/main/l/lomiri-session/0.2-3/debian/patches/0002_lomiri-session-Put-evaluation-of-ps-call-in-quotes.patch -Patch2: https://sources.debian.org/data/main/l/lomiri-session/0.2-3/debian/patches/0003_lomiri-session-Properly-differentiate-between-Ubuntu.patch -Patch3: https://sources.debian.org/data/main/l/lomiri-session/0.2-3/debian/patches/0004_lomiri-session-Check-for-presence-of-Xwayland-use-th.patch -Patch4: https://sources.debian.org/data/main/l/lomiri-session/0.2-3/debian/patches/0005_systemd-lomiri.service-Drop-Before-and-Wants-for-ind.patch BuildArch: noarch BuildRequires: cmake @@ -31,7 +26,7 @@ Requires: lomiri Configuration schemas for lomiri. %prep -%autosetup -n %{name}-%commit -p1 +%autosetup -n %{name}-%commit %build %cmake -DENABLE_TOUCH_SESSION=OFF diff --git a/anda/others/unity-greeter/update.rhai b/anda/others/unity-greeter/update.rhai index 094a83f713..a82d2c0faf 100644 --- a/anda/others/unity-greeter/update.rhai +++ b/anda/others/unity-greeter/update.rhai @@ -1,5 +1,5 @@ let html = get("http://archive.ubuntu.com/ubuntu/pool/universe/u/unity-greeter/?C=N;O=D"); -let v = find("unity-greeter_([\\d.+]+)-0ubuntu(\d\+)", html, 1); -let rn = find("unity-greeter_([\\d.+]+)-0ubuntu(\d\+)", html, 2); +let v = find("unity-greeter_([\\d.+]+)-0ubuntu(\\d+)", html, 1); +let rn = find("unity-greeter_([\\d.+]+)-0ubuntu(\\d+)", html, 2); rpm.version(v); rpm.global("rn", rn); diff --git a/anda/others/unity-session/unity-session.spec b/anda/others/unity-session/unity-session.spec index 15315efae4..f0a2e399f9 100644 --- a/anda/others/unity-session/unity-session.spec +++ b/anda/others/unity-session/unity-session.spec @@ -1,9 +1,9 @@ -%define _ubuntu_rel 1ubuntu2 +%define _ubuntu_rel 1ubuntu1 Name: unity-session Summary: Lightdm profile for Unity 7 -Version: 43.0 -Release: %autorelease +Version: 44.0 +Release: 1%{?dist} License: GPL-2.0 URL: https://packages.ubuntu.com/jammy/unity-session diff --git a/anda/others/unity-session/update.rhai b/anda/others/unity-session/update.rhai new file mode 100644 index 0000000000..c9b52665bd --- /dev/null +++ b/anda/others/unity-session/update.rhai @@ -0,0 +1,5 @@ +let html = get("http://archive.ubuntu.com/ubuntu/pool/universe/g/gnome-session/?C=N;O=D"); +let v = find("unity-session_([\\d.]+)-(.+?)_all.deb", html, 1); +let r = find("unity-session_([\\d.]+)-(.+?)_all.deb", html, 2); +rpm.version(v); +rpm.define("_ubuntu_rel", r); diff --git a/anda/rust/bandwhich/update.rhai b/anda/rust/bandwhich/update.rhai new file mode 100644 index 0000000000..5eed94f7c1 --- /dev/null +++ b/anda/rust/bandwhich/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("bandwhich")); diff --git a/anda/rust/rnote/rnote.spec b/anda/rust/rnote/rnote.spec index e322915d9a..511f3fd25d 100644 --- a/anda/rust/rnote/rnote.spec +++ b/anda/rust/rnote/rnote.spec @@ -4,7 +4,7 @@ Release: 1%{?dist} Summary: Sketch and take handwritten notes. License: GPL-3.0 URL: https://github.com/flxzt/rnote -Source0: %{url}/releases/download/v%{version}/rnote-%{version}.tar.xz +Source0: %{url}/archive/refs/tags/v%version.tar.gz Requires: libadwaita poppler-glib glib2 gtk4 BuildRequires: cargo meson cmake libappstream-glib gcc-c++ pkgconfig(alsa) alsa-lib clang-devel python BuildRequires: pkgconfig(glib-2.0) >= 2.66 @@ -32,16 +32,16 @@ Rnote is an open-source vector-based drawing app for sketching, handwritten note %doc README.md %license LICENSE -/usr/bin/rnote -/usr/lib/debug/usr/bin/rnote-*.debug -/usr/share/applications/com.github.flxzt.rnote.desktop -/usr/share/glib-2.0/schemas/com.github.flxzt.rnote.gschema.xml -/usr/share/icons/hicolor/scalable/apps/com.github.flxzt.rnote.svg -/usr/share/icons/hicolor/symbolic/apps/com.github.flxzt.rnote-symbolic.svg -/usr/share/locale/*/LC_MESSAGES/rnote.mo -/usr/share/metainfo/com.github.flxzt.rnote.metainfo.xml -/usr/share/mime/packages/com.github.flxzt.rnote.xml -/usr/share/rnote/* +%_bindir/rnote +%_datadir/applications/com.github.flxzt.rnote.desktop +%_datadir/glib-2.0/schemas/com.github.flxzt.rnote.gschema.xml +%_datadir/icons/hicolor/scalable/apps/com.github.flxzt.rnote.svg +%_datadir/icons/hicolor/scalable/mimetypes/application-rnote.svg +%_datadir/icons/hicolor/symbolic/apps/com.github.flxzt.rnote-symbolic.svg +%_datadir/locale/*/LC_MESSAGES/rnote.mo +%_datadir/metainfo/com.github.flxzt.rnote.metainfo.xml +%_datadir/mime/packages/com.github.flxzt.rnote.xml +%_datadir/rnote/ %changelog diff --git a/anda/themes/unity-asset-pool/unity-asset-pool.spec b/anda/themes/unity-asset-pool/unity-asset-pool.spec index 3465e5c267..068c52a4fc 100644 --- a/anda/themes/unity-asset-pool/unity-asset-pool.spec +++ b/anda/themes/unity-asset-pool/unity-asset-pool.spec @@ -1,3 +1,5 @@ +%define maj_min 0.8 + Name: unity-asset-pool Summary: Assets and icons for Unity Version: 0.8.24 @@ -5,7 +7,7 @@ Release: %autorelease License: CC-BY-SA URL: https://launchpad.net/unity-asset-pool -Source0: %{url}/0.8/%{version}/+download/unity-asset-pool-%{version}.tar.gz +Source0: %{url}/%maj_min/%{version}/+download/unity-asset-pool-%{version}.tar.gz BuildArch: noarch BuildRequires: binutils diff --git a/anda/themes/unity-asset-pool/update.rhai b/anda/themes/unity-asset-pool/update.rhai new file mode 100644 index 0000000000..4b9e29ebbb --- /dev/null +++ b/anda/themes/unity-asset-pool/update.rhai @@ -0,0 +1,5 @@ +let html = get("https://launchpad.net/unity-asset-pool"); +let v = find("Latest version is ([\\d.]+)", html, 1); +rpm.version(v); +let vs = v.split("."); +rpm.define("maj_min", `${vs[0]}.${vs[1]}`); diff --git a/anda/tools/codium/update.rhai b/anda/tools/codium/update.rhai index 3efb7278b6..f9c2f1c53c 100644 --- a/anda/tools/codium/update.rhai +++ b/anda/tools/codium/update.rhai @@ -1 +1,10 @@ -rpm.version(gh("VSCodium/vscodium")); +let release = get("https://api.github.com/repos/vscodium/vscodium/releases").json_arr()[0]; +let i = 0; +for asset in release.assets { + if asset.name == `VSCodium-linux-x64-${release.tag_name}.tar.gz` || asset.name == `VSCodium-linux-arm64-${release.tag_name}.tar.gz` { + i += 1; + } +} +if i == 2 { + rpm.version(release.tag_name); +} diff --git a/anda/tools/gcm-core/gcm-core.spec b/anda/tools/gcm-core/gcm-core.spec index 5dda4216de..e0b6897cdc 100644 --- a/anda/tools/gcm-core/gcm-core.spec +++ b/anda/tools/gcm-core/gcm-core.spec @@ -6,7 +6,7 @@ Name: gcm-core Version: 2.1.2 -%forgemeta -i +%forgemeta Release: 1%{?dist} Summary: Secure, cross-platform Git credential storage diff --git a/anda/tools/warpd/anda.hcl b/anda/tools/warpd/anda.hcl new file mode 100644 index 0000000000..91d2acab8c --- /dev/null +++ b/anda/tools/warpd/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "warpd.spec" + } +} diff --git a/anda/tools/warpd/update.rhai b/anda/tools/warpd/update.rhai new file mode 100644 index 0000000000..6638d6e46f --- /dev/null +++ b/anda/tools/warpd/update.rhai @@ -0,0 +1,4 @@ +let v = gh("rvaiya/warpd"); +if find("(?m)^v[\\d.]+$", v, 0) { + rpm.version(v); +} diff --git a/anda/tools/warpd/warpd.spec b/anda/tools/warpd/warpd.spec new file mode 100644 index 0000000000..44700eb3f4 --- /dev/null +++ b/anda/tools/warpd/warpd.spec @@ -0,0 +1,41 @@ +Name: warpd +Version: 1.3.5 + +%global forgeurl https://github.com/rvaiya/warpd + +%forgemeta + +Release: 1%?dist +Summary: Modal keyboard-driven virtual pointer +License: MIT +URL: %forgeurl +Source0: %forgesource + +BuildRequires: make gcc libXi-devel libXinerama-devel libXft-devel libXfixes-devel libXtst-devel libX11-devel cairo-devel libxkbcommon-devel wayland-devel +Requires: libXi libXinerama libXft libXfixes libXtst libX11 +Recommends: libwayland-client cairo libxkbcommon + +%description +warpd is a modal keyboard driven interface for mouse manipulation. + +%prep +%forgesetup + +%build +%make_build + +%install +mkdir -p %buildroot%_mandir/man1/ +%make_install +install -Dm755 %buildroot/usr/local/bin/warpd %buildroot%_bindir/warpd +install -Dm644 %buildroot/usr/local/share/man/man1/warpd* %buildroot%_mandir/man1/ +rm %buildroot/usr/local/bin/warpd %buildroot/usr/local/share/man/man1/warpd* + +%files +%_bindir/warpd +%_mandir/man1/warpd* + +%changelog +* Thu Jun 15 2023 windowsboy111 - 1.3.5-1 +- Initial package. +