diff --git a/.github/workflows/mg.sh b/.github/workflows/mg.sh index 6badda0db6..1d581aef14 100755 --- a/.github/workflows/mg.sh +++ b/.github/workflows/mg.sh @@ -7,7 +7,7 @@ export p="{\"id\":\"$5\",\"ver\":\"%v\",\"rel\":\"%r\",\"arch\":\"$4\",\"dirs\": if [[ $1 == false ]]; then d=${p/\%v/?} d=${d/\%r/?} - curl -H "Authorization: Bearer $6" https://madoguchi.fyralabs.com/ci/terra$3/builds/$n -X PUT -H "Content-Type: application/json" -d $d --fail-with-body + curl -H "Authorization: Bearer $6" https://madoguchi.fyralabs.com/ci/terra$3/builds/f -X PUT -H "Content-Type: application/json" -d $d --fail-with-body exit 0 fi diff --git a/anda/apps/anki-bin/anki-bin.spec b/anda/apps/anki-bin/anki-bin.spec index 1a57c14e16..9ecf087859 100644 --- a/anda/apps/anki-bin/anki-bin.spec +++ b/anda/apps/anki-bin/anki-bin.spec @@ -19,9 +19,9 @@ Source5: https://raw.githubusercontent.com/ankitects/anki/%{version}/LICENSE Source6: https://raw.githubusercontent.com/ankitects/anki/%{version}/README.md %description -Anki is a program designed to help you remember facts (such as words -and phrases in a foreign language) as easily, quickly and efficiently -as possible. Anki is based on a theory called spaced repetition. +Anki is a program designed to help you remember facts (such as words and +phrases in a foreign language) as easily, quickly and efficiently as possible. +Anki is based on a theory called spaced repetition. %prep diff --git a/anda/apps/anki-qt5/anki-qt5.spec b/anda/apps/anki-qt5/anki-qt5.spec index 59e84955bc..05d505e4e0 100644 --- a/anda/apps/anki-qt5/anki-qt5.spec +++ b/anda/apps/anki-qt5/anki-qt5.spec @@ -15,15 +15,15 @@ Patch0: 0001-No-update.patch Patch1: 0001-Force-qt5.patch %description -Anki is a program designed to help you remember facts (such as words -and phrases in a foreign language) as easily, quickly and efficiently -as possible. Anki is based on a theory called spaced repetition. +Anki is a program designed to help you remember facts (such as words and +phrases in a foreign language) as easily, quickly and efficiently as possible. +Anki is based on a theory called spaced repetition. %prep git clone https://github.com/ankitects/anki . git checkout %{version} -%patch0 -p1 -%patch1 -p1 +%patch 0 -p1 +%patch 1 -p1 # See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=anki-qt5 diff --git a/anda/apps/anki/anki.spec b/anda/apps/anki/anki.spec index 4d5a457576..3936dce9b4 100644 --- a/anda/apps/anki/anki.spec +++ b/anda/apps/anki/anki.spec @@ -15,14 +15,14 @@ Conflicts: anki-qt5 Patch0: 0001-No-update.patch %description -Anki is a program designed to help you remember facts (such as words -and phrases in a foreign language) as easily, quickly and efficiently -as possible. Anki is based on a theory called spaced repetition. +Anki is a program designed to help you remember facts (such as words and +phrases in a foreign language) as easily, quickly and efficiently as possible. +Anki is based on a theory called spaced repetition. %prep git clone https://github.com/ankitects/anki . git checkout %{version} -%patch0 -p1 +%patch 0 -p1 # See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=anki diff --git a/anda/apps/armcord-bin/anda.hcl b/anda/apps/armcord-bin/anda.hcl new file mode 100644 index 0000000000..49e068d947 --- /dev/null +++ b/anda/apps/armcord-bin/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "armcord-bin.spec" + } +} diff --git a/anda/apps/armcord-bin/armcord-bin.spec b/anda/apps/armcord-bin/armcord-bin.spec new file mode 100644 index 0000000000..693342388f --- /dev/null +++ b/anda/apps/armcord-bin/armcord-bin.spec @@ -0,0 +1,64 @@ +%define debug_package %nil + +%ifarch x86_64 +%global src ArmCord-%version +%elifarch aarch64 +%global src ArmCord-%version-arm64 +%elifarch armv7l +%global src ArmCord-%version-armv7l +%endif + +Name: armcord-bin +Version: 3.1.7 +Release: 1%?dist +License: OSL-3.0 +Summary: Custom lightweight Discord client designed to enhance your experience +URL: https://github.com/ArmCord/ArmCord +Group: Applications/Internet +Source0: %url/releases/download/v%version/%src.tar.gz +Source1: armcord.png +Requires: electron libnotify xdg-utils +ExclusiveArch: x86_64 aarch64 armv7l +Conflicts: armcord + +%description +ArmCord is a custom client designed to enhance your Discord experience +while keeping everything lightweight. + +%prep +%autosetup -n %src + +cat < .armcord.desktop +[Desktop Entry] +Name=ArmCord +Comment=%summary +GenericName=Internet Messenger +Type=Application +Exec=/usr/bin/armcord +Icon=armcord +Categories=Internet;Network;InstantMessaging; +StartupWMClass=armcord +Keywords=discord;armcord;vencord;shelter;electron; +EOF + +%build + +%install +mkdir -p %buildroot/usr/bin %buildroot/usr/share/applications %buildroot/usr/share/pixmaps %buildroot/opt/armcord +cp -a * %buildroot/opt/armcord +ln -s /opt/armcord/armcord %buildroot/usr/bin/armcord +chmod +x -R %buildroot/opt/armcord/* +chmod 755 %buildroot/opt/armcord/armcord +install -Dm644 .armcord.desktop %buildroot/usr/share/applications/ArmCord.desktop +install -Dm644 %SOURCE1 %buildroot/usr/share/pixmaps/armcord.png + +%files +/opt/armcord +/usr/bin/armcord +/usr/share/applications/ArmCord.desktop +/usr/share/pixmaps/armcord.png + +%changelog +* Sat May 6 2023 windowsboy111 +- Initial package + diff --git a/anda/apps/armcord-bin/armcord.png b/anda/apps/armcord-bin/armcord.png new file mode 100644 index 0000000000..bb87d3bafe Binary files /dev/null and b/anda/apps/armcord-bin/armcord.png differ diff --git a/anda/apps/armcord-bin/update.rhai b/anda/apps/armcord-bin/update.rhai new file mode 100644 index 0000000000..8c39d434da --- /dev/null +++ b/anda/apps/armcord-bin/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("ArmCord/ArmCord")); diff --git a/anda/apps/armcord/anda.hcl b/anda/apps/armcord/anda.hcl new file mode 100644 index 0000000000..236771976c --- /dev/null +++ b/anda/apps/armcord/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "armcord.spec" + } +} diff --git a/anda/apps/armcord/armcord.spec b/anda/apps/armcord/armcord.spec new file mode 100644 index 0000000000..184fc0f07e --- /dev/null +++ b/anda/apps/armcord/armcord.spec @@ -0,0 +1,60 @@ +%define debug_package %nil + +Name: armcord +Version: 3.1.7 +Release: 1%?dist +License: OSL-3.0 +Summary: Custom lightweight Discord client designed to enhance your experience +URL: https://github.com/ArmCord/ArmCord +Group: Applications/Internet +Source0: %url/archive/refs/tags/v%version.tar.gz +Source1: launch.sh +Requires: electron libnotify xdg-utils +BuildRequires: nodejs-npm +Conflicts: armcord-bin + +%description +ArmCord is a custom client designed to enhance your Discord experience +while keeping everything lightweight. + +%prep +%autosetup -n ArmCord-%version + +cat < armcord.desktop +[Desktop Entry] +Name=ArmCord +Comment=%summary +GenericName=Internet Messenger +Type=Application +Exec=/usr/bin/armcord +Icon=armcord +Categories=Internet;Network;InstantMessaging; +StartupWMClass=armcord +Keywords=discord;armcord;vencord;shelter;electron; +EOF + + +%build +npx pnpm@7 install --frozen-lockfile --ignore-scripts +npm run packageQuick + + +%install +install -Dm644 dist/*-unpacked/resources/app.asar %buildroot/usr/share/armcord/app.asar + +install -Dm755 %SOURCE1 %buildroot/usr/bin/armcord +install -Dm644 armcord.desktop %buildroot/usr/share/applications/ArmCord.desktop +install -Dm644 build/icon.png %buildroot/usr/share/pixmaps/armcord.png + +%files +%doc README.md +%license LICENSE +/usr/bin/armcord +/usr/share/applications/ArmCord.desktop +/usr/share/pixmaps/armcord.png +/usr/share/armcord/app.asar + +%changelog +* Sat May 6 2023 windowsboy111 +- Initial package + diff --git a/anda/apps/armcord/launch.sh b/anda/apps/armcord/launch.sh new file mode 100644 index 0000000000..3ce4e0c829 --- /dev/null +++ b/anda/apps/armcord/launch.sh @@ -0,0 +1,13 @@ +#!/bin/sh +electron=/usr/bin/electron + +CONFIG=${XDG_CONFIG_HOME:-~/.config} +FLAGS="$CONFIG/armcord-flags.conf" + +# Allow users to override command-line options +if [ -f "$FLAGS" ]; then + USER_FLAGS="$(cat "$FLAGS")" +fi + +# shellcheck disable=SC2086 # USER_FLAGS has to be unquoted +"$electron" /usr/share/armcord/app.asar $USER_FLAGS "$@" diff --git a/anda/apps/armcord/update.rhai b/anda/apps/armcord/update.rhai new file mode 100644 index 0000000000..8c39d434da --- /dev/null +++ b/anda/apps/armcord/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("ArmCord/ArmCord")); diff --git a/anda/desktops/unity-shell/unity-shell.spec b/anda/desktops/unity-shell/unity-shell.spec index c95da08caa..1710675a49 100644 --- a/anda/desktops/unity-shell/unity-shell.spec +++ b/anda/desktops/unity-shell/unity-shell.spec @@ -1,19 +1,14 @@ -%global forgeurl https://gitlab.com/ubuntu-unity/unity/unity -%global commit 0ba4fbaa112a37e7756c64f339f0569483d1e52f -%forgemeta +Name: unity-shell +Version: 7.7.0 +Release: %autorelease +Summary: Unity is a shell that sings -Name: unity-shell -Version: 1.7.7 -Release: %autorelease -Summary: Unity is a shell that sings - -License: GPL-3.0-or-later -# forgeurl doesn't really work with spectool, tries https://gitlab.com/ubuntu-unity/unity instead of https://gitlab.com/ubuntu-unity/unity/unity -URL: https://gitlab.com/ubuntu-unity/unity/unity -Source0: %{url}/-/archive/%commit/unity-%commit.tar.bz2 -Patch0: 0001-Remove-xpathselect-dependency.patch -Patch1: 0002-Remove-ido-dependency.patch -Patch2: 0003-Remove-social-scope.patch +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 +Patch0: 0001-Remove-xpathselect-dependency.patch +Patch1: 0002-Remove-ido-dependency.patch +Patch2: 0003-Remove-social-scope.patch BuildRequires: cmake BuildRequires: g++ @@ -41,18 +36,18 @@ BuildRequires: pkgconfig(unity-misc) BuildRequires: chrpath BuildRequires: systemd-rpm-macros BuildRequires: pkgconfig(libunity-settings-daemon) -Requires: python3-gobject -Requires: dconf -Requires: gsettings-ubuntu-touch-schemas -Requires: %{name}-data = %{version}-%{release} -Requires: %{name}-core%{?_isa} = %{version}-%{release} -Requires: pam -Requires: bamf-daemon -Requires: unity-gtk-module-common -Requires: compiz9 -Requires: libindicator-gtk3 -Recommends: unity-greeter -Recommends: unity-scope-home +Requires: python3-gobject +Requires: dconf +Requires: gsettings-ubuntu-touch-schemas +Requires: %{name}-data = %{version}-%{release} +Requires: %{name}-core%{?_isa} = %{version}-%{release} +Requires: pam +Requires: bamf-daemon +Requires: unity-gtk-module-common +Requires: compiz9 +Requires: libindicator-gtk3 +Recommends: unity-greeter +Recommends: unity-scope-home %description Unity is a desktop experience that sings. Designed by Canonical and the Ayatana @@ -106,7 +101,7 @@ Requires: %{name} = %{version}-%{release} This package contains support for widgets for Unity7, based on Blighty. %prep -%autosetup -n unity-%commit -p1 +%autosetup -n unity-%{version}+23.04.20230222.2 -p1 # Correct/not use ubuntu's API sed -i 's/ubuntu-lock-on-suspend/lock-enabled/' lockscreen/LockScreenSettings.cpp # Not actually needed for Unity itself @@ -199,6 +194,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : %{_datadir}/unity/icons/dash-widgets.json %{_datadir}/unity/icons/*.png %{_datadir}/unity/icons/*.svg +%{_datadir}/unity/icons/*.svg.save %{_datadir}/unity/icons/searchingthedashlegalnotice.html %dir %{_datadir}/unity/themes/ %{_datadir}/unity/themes/dash-widgets.json @@ -216,7 +212,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : %files -n python3-uwidgets %doc AUTHORS ChangeLog HACKING README -%license uwidgets/LICENSE.md +%license uwidgets/LICENCE %{_bindir}/uwidgets-runner %{python3_sitearch}/uwidgets-*.egg-info/ %{python3_sitearch}/uwidgets/ diff --git a/anda/go/curlie/golang-github-rs-curlie.spec b/anda/go/curlie/golang-github-rs-curlie.spec index 1dd01bd409..809ce9947d 100644 --- a/anda/go/curlie/golang-github-rs-curlie.spec +++ b/anda/go/curlie/golang-github-rs-curlie.spec @@ -3,7 +3,7 @@ # https://github.com/rs/curlie %global goipath github.com/rs/curlie -Version: 1.6.9 +Version: 1.7.1 %gometa -f @@ -14,7 +14,7 @@ The power of curl, the ease of use of httpie.} %global godocs README.md Name: %{goname} -Release: %autorelease +Release: 1%{?dist} Summary: The power of curl, the ease of use of httpie License: MIT diff --git a/anda/lib/gtk4-layer-shell/gtk4-layer-shell.spec b/anda/lib/gtk4-layer-shell/gtk4-layer-shell.spec index 38ddc0d231..e201c92478 100644 --- a/anda/lib/gtk4-layer-shell/gtk4-layer-shell.spec +++ b/anda/lib/gtk4-layer-shell/gtk4-layer-shell.spec @@ -1,7 +1,7 @@ Name: gtk4-layer-shell Version: 1.0.0 Release: 1%?dist -Summary: A library to create panels and other desktop components for Wayland using the Layer Shell protocol and GTK4 +Summary: Library to build desktop components using Layer Shell Wayland protocol and GTK4 License: MIT URL: https://github.com/wmww/gtk4-layer-shell Source0: %url/archive/refs/tags/v%version.tar.gz @@ -9,11 +9,12 @@ BuildRequires: meson ninja-build python3.11 vala BuildRequires: libwayland-client gtk4-devel gobject-introspection gtk-doc %description -A library for using the Layer Shell Wayland protocol with GTK4. With this library -you can build desktop shell components such as panels, notifications and wallpapers. -You can use it to anchor your windows to a corner or edge of the output, or stretch -them across the entire output. This Library is compatible with C, C++ and any -language that supports GObject introspection files (Python, Vala, etc). +A library for using the Layer Shell Wayland protocol with GTK4. With this +library you can build desktop shell components such as panels, notifications +and wallpapers. You can use it to anchor your windows to a corner or edge of +the output, or stretch them across the entire output. This Library is +compatible with C, C++ and any language that supports GObject introspection +files (Python, Vala, etc). %package doc diff --git a/anda/lib/libhelium/libhelium.spec b/anda/lib/libhelium/libhelium.spec index 42c5ae12b7..d51f9d4f9b 100644 --- a/anda/lib/libhelium/libhelium.spec +++ b/anda/lib/libhelium/libhelium.spec @@ -39,7 +39,7 @@ for writing applications with libhelium. %build %meson \ -Ddemo=false \ - -Ddocumentation=false \ + -Dvaladoc=false \ --wrap-mode=default %meson_build diff --git a/anda/lib/libindicator/libindicator.spec b/anda/lib/libindicator/libindicator.spec index f3f3d3a8d3..4ca5eb814b 100644 --- a/anda/lib/libindicator/libindicator.spec +++ b/anda/lib/libindicator/libindicator.spec @@ -57,7 +57,7 @@ developing applications that use %{name}-gtk3. %prep %setup -q -c -%patch1 -p1 -b .orig +%patch 1 -p1 -b .orig # Remove all IDO references # This is only needed for tools/indicator-loader.c sed -i '6d' ./Makefile.am diff --git a/anda/lib/nux/nux.spec b/anda/lib/nux/nux.spec index b39613d79a..64769ded05 100644 --- a/anda/lib/nux/nux.spec +++ b/anda/lib/nux/nux.spec @@ -1,21 +1,16 @@ -%global forgeurl https://gitlab.com/ubuntu-unity/unity-x/nux -%global commit a1cd0bd379000ab8aa159aec48dfae87edb6ad9f -%forgemeta - Name: nux Version: 4.0.8 Release: %autorelease Summary: An OpenGL toolkit License: GPL-3.0-or-later AND LGPL-3.0-or-later AND LGPL-2.0-or-later -URL: https://gitlab.com/ubuntu-unity/unity-x/nux -Source0: %{url}/-/archive/%commit/nux-%commit.tar.bz2 -Source1: https://gitlab.com/cat-master21/nux/-/commit/0e834a556818281b9e023b47f0667e8da0f5cebd.patch +URL: https://launchpad.net/nux +Source0: %{url}/4.0/%{version}/+download/nux-%{version}.tar.gz +Patch0: http://archive.ubuntu.com/ubuntu/pool/universe/n/nux/nux_%{version}+18.10.20180623-0ubuntu4.diff.gz BuildRequires: automake libtool gnome-common BuildRequires: intltool BuildRequires: make -BuildRequires: git BuildRequires: gcc BuildRequires: g++ BuildRequires: libX11-devel @@ -53,16 +48,13 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %{summary}. %prep -%autosetup -n nux-%commit -N -git apply %{SOURCE1} +%autosetup -n nux-%{version} -p1 +for i in debian/patches/*.patch; do patch -p1 < $i; done %build NOCONFIGURE=1 \ ./autogen.sh -PYTHON=%{__python3} -export PYTHON - %configure \ --enable-documentation=no \ --disable-silent-rules \ diff --git a/anda/mock-configs/anda-mock-configs.spec b/anda/mock-configs/anda-mock-configs.spec index db532d5ea9..d072d20c12 100644 --- a/anda/mock-configs/anda-mock-configs.spec +++ b/anda/mock-configs/anda-mock-configs.spec @@ -6,8 +6,8 @@ Summary: Mock configs for Terra repos License: MIT URL: http://fedoraproject.org/wiki/Extras Source0: anda.tpl -Source1: anda-37-x86_64.cfg -Source2: anda-37-aarch64.cfg +Source1: anda-38-x86_64.cfg +Source2: anda-38-aarch64.cfg BuildRequires: mock-core-configs Requires: mock-core-configs @@ -33,8 +33,8 @@ cp -v %{SOURCE2} %{buildroot}%{_sysconfdir}/mock/ %files %{_sysconfdir}/mock/templates/anda.tpl -%{_sysconfdir}/mock/anda-37-x86_64.cfg -%{_sysconfdir}/mock/anda-37-aarch64.cfg +%{_sysconfdir}/mock/anda-38-x86_64.cfg +%{_sysconfdir}/mock/anda-38-aarch64.cfg %changelog * Mon Oct 03 2022 Cappy Ishihara diff --git a/anda/python/orjson/python3-orjson.spec b/anda/python/orjson/python3-orjson.spec index e50ad51eac..94ab6215be 100644 --- a/anda/python/orjson/python3-orjson.spec +++ b/anda/python/orjson/python3-orjson.spec @@ -1,7 +1,7 @@ %global debug_package %{nil} Name: python3-orjson -Version: 3.8.11 +Version: 3.8.12 Release: 1%{?dist} Summary: Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy License: MIT OR Apache-2.0 diff --git a/anda/rust/maturin/rust-maturin.spec b/anda/rust/maturin/rust-maturin.spec index ebc581c8da..64bf74f0f1 100644 --- a/anda/rust/maturin/rust-maturin.spec +++ b/anda/rust/maturin/rust-maturin.spec @@ -1,20 +1,20 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 24 %global crate maturin Name: rust-maturin -Version: 0.15.0 -Release: 1%{?dist} +Version: 0.15.1 +Release: %autorelease Summary: Build and publish crates with pyo3, rust-cpython and cffi bindings as well as rust binaries as python packages License: MIT OR Apache-2.0 URL: https://crates.io/crates/maturin Source: %{crates_source} -BuildRequires: pkgconfig anda-srpm-macros rust-packaging >= 23 +BuildRequires: pkgconfig anda-srpm-macros cargo-rpm-macros >= 24 %global _description %{expand: -Build and publish crates with pyo3, rust-cpython and cffi bindings as well as -rust binaries as python packages.} +Build and publish crates with pyo3, rust-cpython and cffi bindings as +well as rust binaries as python packages.} %description %{_description} @@ -72,6 +72,42 @@ use the "bytesize" feature of the "%{crate}" crate. %files -n %{name}+bytesize-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+cargo-xwin-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cargo-xwin-devel %{_description} + +This package contains library source intended for building other packages which +use the "cargo-xwin" feature of the "%{crate}" crate. + +%files -n %{name}+cargo-xwin-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+cargo-zigbuild-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cargo-zigbuild-devel %{_description} + +This package contains library source intended for building other packages which +use the "cargo-zigbuild" feature of the "%{crate}" crate. + +%files -n %{name}+cargo-zigbuild-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+cli-completion-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cli-completion-devel %{_description} + +This package contains library source intended for building other packages which +use the "cli-completion" feature of the "%{crate}" crate. + +%files -n %{name}+cli-completion-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+configparser-devel Summary: %{summary} BuildArch: noarch @@ -84,6 +120,42 @@ use the "configparser" feature of the "%{crate}" crate. %files -n %{name}+configparser-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+console-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+console-devel %{_description} + +This package contains library source intended for building other packages which +use the "console" feature of the "%{crate}" crate. + +%files -n %{name}+console-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+cross-compile-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cross-compile-devel %{_description} + +This package contains library source intended for building other packages which +use the "cross-compile" feature of the "%{crate}" crate. + +%files -n %{name}+cross-compile-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+dialoguer-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+dialoguer-devel %{_description} + +This package contains library source intended for building other packages which +use the "dialoguer" feature of the "%{crate}" crate. + +%files -n %{name}+dialoguer-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+faster-tests-devel Summary: %{summary} BuildArch: noarch @@ -96,6 +168,18 @@ use the "faster-tests" feature of the "%{crate}" crate. %files -n %{name}+faster-tests-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+full-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+full-devel %{_description} + +This package contains library source intended for building other packages which +use the "full" feature of the "%{crate}" crate. + +%files -n %{name}+full-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+human-panic-devel Summary: %{summary} BuildArch: noarch @@ -132,6 +216,18 @@ use the "log" feature of the "%{crate}" crate. %files -n %{name}+log-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+minijinja-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+minijinja-devel %{_description} + +This package contains library source intended for building other packages which +use the "minijinja" feature of the "%{crate}" crate. + +%files -n %{name}+minijinja-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+multipart-devel Summary: %{summary} BuildArch: noarch @@ -156,18 +252,6 @@ use the "native-tls" feature of the "%{crate}" crate. %files -n %{name}+native-tls-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+native-tls-crate-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+native-tls-crate-devel %{_description} - -This package contains library source intended for building other packages which -use the "native-tls-crate" feature of the "%{crate}" crate. - -%files -n %{name}+native-tls-crate-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+password-storage-devel Summary: %{summary} BuildArch: noarch @@ -180,18 +264,6 @@ use the "password-storage" feature of the "%{crate}" crate. %files -n %{name}+password-storage-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+rpassword-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+rpassword-devel %{_description} - -This package contains library source intended for building other packages which -use the "rpassword" feature of the "%{crate}" crate. - -%files -n %{name}+rpassword-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+rustls-devel Summary: %{summary} BuildArch: noarch @@ -204,6 +276,18 @@ use the "rustls" feature of the "%{crate}" crate. %files -n %{name}+rustls-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+scaffolding-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+scaffolding-devel %{_description} + +This package contains library source intended for building other packages which +use the "scaffolding" feature of the "%{crate}" crate. + +%files -n %{name}+scaffolding-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+tracing-subscriber-devel Summary: %{summary} BuildArch: noarch @@ -240,6 +324,54 @@ use the "ureq" feature of the "%{crate}" crate. %files -n %{name}+ureq-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+url-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+url-devel %{_description} + +This package contains library source intended for building other packages which +use the "url" feature of the "%{crate}" crate. + +%files -n %{name}+url-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+wild-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+wild-devel %{_description} + +This package contains library source intended for building other packages which +use the "wild" feature of the "%{crate}" crate. + +%files -n %{name}+wild-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+xwin-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+xwin-devel %{_description} + +This package contains library source intended for building other packages which +use the "xwin" feature of the "%{crate}" crate. + +%files -n %{name}+xwin-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+zig-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zig-devel %{_description} + +This package contains library source intended for building other packages which +use the "zig" feature of the "%{crate}" crate. + +%files -n %{name}+zig-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep_online diff --git a/anda/rust/sccache/anda.hcl b/anda/rust/sccache/anda.hcl index 665fb9cf1a..a57944ad84 100644 --- a/anda/rust/sccache/anda.hcl +++ b/anda/rust/sccache/anda.hcl @@ -1,4 +1,5 @@ project pkg { + arches = ["x86_64"] rpm { spec = "rust-sccache.spec" } diff --git a/anda/rust/sccache/rust-sccache.spec b/anda/rust/sccache/rust-sccache.spec index 4114709822..59d335f34a 100644 --- a/anda/rust/sccache/rust-sccache.spec +++ b/anda/rust/sccache/rust-sccache.spec @@ -6,7 +6,7 @@ Name: rust-sccache Version: 0.4.2 -Release: 1%{?dist} +Release: %autorelease Summary: Ccache-like tool License: Apache-2.0 @@ -85,18 +85,6 @@ use the "azure" feature of the "%{crate}" crate. %files -n %{name}+azure-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+crossbeam-utils-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+crossbeam-utils-devel %{_description} - -This package contains library source intended for building other packages which -use the "crossbeam-utils" feature of the "%{crate}" crate. - -%files -n %{name}+crossbeam-utils-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+dist-client-devel Summary: %{summary} BuildArch: noarch @@ -181,16 +169,16 @@ use the "hyper" feature of the "%{crate}" crate. %files -n %{name}+hyper-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+jsonwebtoken-devel +%package -n %{name}+jwt-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+jsonwebtoken-devel %{_description} +%description -n %{name}+jwt-devel %{_description} This package contains library source intended for building other packages which -use the "jsonwebtoken" feature of the "%{crate}" crate. +use the "jwt" feature of the "%{crate}" crate. -%files -n %{name}+jsonwebtoken-devel +%files -n %{name}+jwt-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libmount-devel @@ -431,7 +419,6 @@ use the "webdav" feature of the "%{crate}" crate. %install %cargo_install -f dist-server - %if %{with check} %check %cargo_test -f dist-server diff --git a/anda/rust/sccache/sccache-fix-metadata-auto.diff b/anda/rust/sccache/sccache-fix-metadata-auto.diff index 25722f92b6..e31b18399e 100644 --- a/anda/rust/sccache/sccache-fix-metadata-auto.diff +++ b/anda/rust/sccache/sccache-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- sccache-0.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ sccache-0.4.1/Cargo.toml 2023-03-27T14:56:08.411559+00:00 -@@ -358,14 +358,3 @@ +--- sccache-0.4.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ sccache-0.4.2/Cargo.toml 2023-05-10T14:25:40.783197+00:00 +@@ -362,14 +362,3 @@ [target."cfg(unix)".dependencies.daemonize] version = "0.5" diff --git a/anda/rust/zoxide/rust-zoxide.spec b/anda/rust/zoxide/rust-zoxide.spec index b226f8e481..d3c35cbfb6 100644 --- a/anda/rust/zoxide/rust-zoxide.spec +++ b/anda/rust/zoxide/rust-zoxide.spec @@ -3,8 +3,8 @@ %global crate zoxide Name: rust-zoxide -Version: 0.9.0 -Release: %autorelease +Version: 0.9.1 +Release: 1%{?dist} Summary: Smarter cd command for your terminal License: MIT diff --git a/anda/terra-release/anda.hcl b/anda/terra-release/anda.hcl new file mode 100644 index 0000000000..5684685577 --- /dev/null +++ b/anda/terra-release/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "terra-release.spec" + } +} diff --git a/anda/terra-release/terra-release.spec b/anda/terra-release/terra-release.spec new file mode 100644 index 0000000000..880b742319 --- /dev/null +++ b/anda/terra-release/terra-release.spec @@ -0,0 +1,31 @@ +Name: terra-release +Version: 37 +Release: 1 +Summary: Release package for Terra + +License: MIT +URL: https://terra.fyralabs.com +Source0: terra.repo +BuildArch: noarch + +Requires: system-release(%{version}) + +%description +Release package for Terra, containing the Terra repository configuration. + +%prep + +%build + +%install +install -D -p -m 0644 -t %{buildroot}%{_sysconfdir}/yum.repos.d %{SOURCE0} + +%files +%config(noreplace) %{_sysconfdir}/yum.repos.d/terra.repo + +%changelog +* Sat May 13 2023 windowsboy111 - 37-1 +- Ported to Terra 37 + +* Sat May 6 2023 Lleyton Gray - 38-1 +- Initial package diff --git a/anda/terra-release/terra.repo b/anda/terra-release/terra.repo new file mode 100644 index 0000000000..f32b357424 --- /dev/null +++ b/anda/terra-release/terra.repo @@ -0,0 +1,11 @@ +[terra] +name=Terra $releasever +baseurl=https://repos.fyralabs.com/terra$releasever +metadata_expire=6h +type=rpm +skip_if_unavailable=True +gpgcheck=1 +gpgkey=https://repos.fyralabs.com/terra$releasever/key.asc +repo_gpgcheck=1 +enabled=1 +enabled_metadata=1 diff --git a/anda/tools/graalvm/graalvm.spec b/anda/tools/graalvm/graalvm.spec index 2ac34bc22a..ece1807b6d 100644 --- a/anda/tools/graalvm/graalvm.spec +++ b/anda/tools/graalvm/graalvm.spec @@ -27,15 +27,15 @@ JDK Version: %1 %_p 11 %_p 17 -%_p 19 +%dnl %_p 19 %prep tar -xzf %{SOURCE11} tar -xzf %{SOURCE17} -tar -xzf %{SOURCE19} +#tar -xzf %{SOURCE19} ls -mv graalvm-ce-java11-%{version}/GRAALVM-README.md . +mv graalvm-ce-java11-%version/GRAALVM-README.md . %build @@ -50,7 +50,7 @@ mv graalvm-ce-java11-%{version}/GRAALVM-README.md . } %_i 11 %_i 17 -%_i 19 +#%_i 19 %files jdk11 %doc GRAALVM-README.md @@ -62,11 +62,14 @@ mv graalvm-ce-java11-%{version}/GRAALVM-README.md . %license LICENSE /usr/lib/jvm/java-17-graalvm/ -%files jdk19 -%doc GRAALVM-README.md -%license LICENSE -/usr/lib/jvm/java-19-graalvm/ +#%files jdk19 +#%doc GRAALVM-README.md +#%license LICENSE +#/usr/lib/jvm/java-19-graalvm/ %changelog -* Thu Feb 9 2023 windowsboy111 +* Thu May 11 2023 windowsboy111 - 22.3.2-1 +- Remove jdk19 + +* Thu Feb 9 2023 windowsboy111 - 22.3.1-1 - Initial package diff --git a/anda/tools/ops2deb/anda.hcl b/anda/tools/ops2deb/anda.hcl index dfb28b862a..e905d2a0a3 100644 --- a/anda/tools/ops2deb/anda.hcl +++ b/anda/tools/ops2deb/anda.hcl @@ -1,4 +1,5 @@ project pkg { + arches = ["x86_64"] rpm { spec = "ops2deb.spec" } diff --git a/anda/tools/ops2deb/ops2deb.spec b/anda/tools/ops2deb/ops2deb.spec index e8e546a5c3..218399f7b0 100644 --- a/anda/tools/ops2deb/ops2deb.spec +++ b/anda/tools/ops2deb/ops2deb.spec @@ -10,11 +10,14 @@ URL: https://github.com/upciti/ops2deb Source0: %url/archive/refs/tags/%version.tar.gz BuildRequires: python3-devel poetry python3.10 BuildRequires: python3dist(setuptools) +BuildArch: noarch %description -ops2deb is designed to generate Debian packages for common devops tools, but can be used to package any portable application. -It consumes a configuration file and outputs .deb packages. ops2deb can also track new releases of upstream applications and -automatically bump application versions in its configuration file. +ops2deb is designed to generate Debian packages for common devops tools, but +can be used to package any portable application. It consumes a configuration +file and outputs .deb packages. ops2deb can also track new releases of upstream +applications and automatically bump application versions in its configuration +file. %prep diff --git a/anda/vala/vala-language-server-nightly/anda.hcl b/anda/vala/vala-language-server-nightly/anda.hcl new file mode 100644 index 0000000000..a9c5af00bf --- /dev/null +++ b/anda/vala/vala-language-server-nightly/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "vala-language-server-nightly.spec" + } +} diff --git a/anda/vala/vala-language-server-nightly/update.rhai b/anda/vala/vala-language-server-nightly/update.rhai new file mode 100644 index 0000000000..3f185f0a3b --- /dev/null +++ b/anda/vala/vala-language-server-nightly/update.rhai @@ -0,0 +1,7 @@ +if filters.contains("nightly") { + let req = new_req("https://api.github.com/repos/vala-lang/vala-language-server/commits/HEAD"); + req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); + rpm.global("commit", json(req.get()).sha); + rpm.global("verrel", gh("vala-lang/vala-language-server")); + rpm.release(); +} diff --git a/anda/vala/vala-language-server-nightly/vala-language-server-nightly.spec b/anda/vala/vala-language-server-nightly/vala-language-server-nightly.spec new file mode 100644 index 0000000000..8d354b9193 --- /dev/null +++ b/anda/vala/vala-language-server-nightly/vala-language-server-nightly.spec @@ -0,0 +1,72 @@ +%global real_name vala-language-server + +%global commit 7577ffb269cd31da8815b7eadd72867965a2c742 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +%global commit_date %(date '+%Y%m%d') +%global snapshot_info %{commit_date}.%{shortcommit} +%global verrel 0.48.7 + +Name: vala-language-server-nightly +Summary: Language server for the Vala programming language +Version: 0.48.7^%{snapshot_info} +Release: 1%{?dist} +# The entire source is LGPLv2+, except plugins/gnome-builder/vala_langserv.py, which is GPLv3+. +# It is not installed when the "plugins" meson option is set to false. +# Since GNOME Builder 41, the VLS the plugin has been included. +License: LGPL-2.0+ + +URL: https://github.com/vala-lang/vala-language-server +Source0: https://github.com/vala-lang/vala-language-server/archive/%{commit}/%{real_name}-%{shortcommit}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: meson +BuildRequires: ninja-build +BuildRequires: vala = 0.56.4 +BuildRequires: vala-devel = 0.56.4 + +BuildRequires: pkgconfig(gee-0.8) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gio-unix-2.0) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gobject-2.0) +BuildRequires: pkgconfig(json-glib-1.0) >= 1.4.4 +BuildRequires: pkgconfig(jsonrpc-glib-1.0) >= 3.28 +BuildRequires: pkgconfig(scdoc) + +Requires: glib2-static%{?_isa} +Requires: json-glib%{?_isa} +Requires: jsonrpc-glib%{?_isa} +Requires: libgee%{?_isa} +Requires: libvala%{?_isa} + +Recommends: gobject-introspection-devel + +Suggests: gnome-builder + +Conflicts: vala-language-server + +%description +Provides code intelligence for Vala (and also Genie). +Used with an editor and a plugin that supports the Language Server Protocol. + + +%prep +%autosetup -n %{real_name}-%{commit} + +%build +%meson -Dplugins=false +%meson_build +%install +%meson_install +%files +%license COPYING +%doc README.md + +%{_bindir}/%{real_name} +%{_mandir}/man1/%{real_name}.1* + +%changelog +* Sat Jan 14 2023 lleyton +- Initial package diff --git a/anda/vala/vala-lint-nightly/anda.hcl b/anda/vala/vala-lint-nightly/anda.hcl new file mode 100644 index 0000000000..ae861080eb --- /dev/null +++ b/anda/vala/vala-lint-nightly/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "vala-lint-nightly.spec" + } +} diff --git a/anda/vala/vala-lint-nightly/update.rhai b/anda/vala/vala-lint-nightly/update.rhai new file mode 100644 index 0000000000..b964fdd1e5 --- /dev/null +++ b/anda/vala/vala-lint-nightly/update.rhai @@ -0,0 +1,7 @@ +if filters.contains("nightly") { + let req = new_req("https://api.github.com/repos/vala-lang/vala-lint/commits/HEAD"); + req.head("Authorization", `Bearer ${env("GITHUB_TOKEN")}`); + let sha = json(req.get()).sha; + rpm.global("commit", sha); + rpm.release(); +} diff --git a/anda/vala/vala-lint-nightly/vala-lint-nightly.spec b/anda/vala/vala-lint-nightly/vala-lint-nightly.spec new file mode 100644 index 0000000000..b6a449f7aa --- /dev/null +++ b/anda/vala/vala-lint-nightly/vala-lint-nightly.spec @@ -0,0 +1,62 @@ +%global real_name vala-lint + +%global commit 923adb5d3983ed654566304284607e3367998e22 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +%global commit_date %(date '+%Y%m%d') +%global snapshot_info %{commit_date}.%{shortcommit} + +Name: vala-lint-nightly +Summary: Check Vala code files for code-style errors +Version: 0.1.0^%{snapshot_info} +Release: 1%{?dist} +License: GPL-2.0-or-later + +URL: https://github.com/vala-lang/vala-lint +Source0: https://github.com/vala-lang/vala-lint/archive/%{commit}/%{real_name}-%{shortcommit}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: meson +BuildRequires: ninja-build +BuildRequires: vala = 0.56.4 +BuildRequires: vala-devel = 0.56.4 + +%description +Small command line tool and library for checking Vala code files for code-style errors. +Based on the elementary Code-Style guidelines. + +%package devel +Summary: Development files for vala-lint +Requires: vala-lint-nightly = %{version}-%{release} + +%description devel +This package contains the libraries and header files that are needed +for using vala-lint as a library. + +%prep +%autosetup -n %{real_name}-%{commit} + +%build +%meson +%meson_build + +%install +%meson_install +ln -sf %{_bindir}/io.elementary.vala-lint %{buildroot}%{_bindir}/vala-lint + +%files +%license COPYING +%doc README.md +%{_bindir}/io.elementary.vala-lint +%{_bindir}/vala-lint +%{_libdir}/libvala-linter-1.0.so* + +%files devel +%{_includedir}/vala-linter-1.0/vala-linter.h +%{_libdir}/pkgconfig/vala-linter-1.pc +%{_datadir}/vala/vapi/vala-linter-1.vapi + +%changelog +* Tue Feb 7 2023 lleyton +- Initial package diff --git a/anda/vala/vala-nightly/anda.hcl b/anda/vala/vala-nightly/anda.hcl new file mode 100644 index 0000000000..1b706cd6a9 --- /dev/null +++ b/anda/vala/vala-nightly/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "vala-nightly.spec" + } +} diff --git a/anda/vala/vala-nightly/update.rhai b/anda/vala/vala-nightly/update.rhai new file mode 100644 index 0000000000..9476b1ef67 --- /dev/null +++ b/anda/vala/vala-nightly/update.rhai @@ -0,0 +1,6 @@ +if filters.contains("nightly") { + let req = new_req("https://gitlab.gnome.org/api/v4/projects/1551/repository/branches/main"); + let sha = json(req.get()).commit.id; + rpm.global("commit", sha); + rpm.release(); +} diff --git a/anda/vala/vala-nightly/vala-nightly.spec b/anda/vala/vala-nightly/vala-nightly.spec new file mode 100644 index 0000000000..373accfcb4 --- /dev/null +++ b/anda/vala/vala-nightly/vala-nightly.spec @@ -0,0 +1,223 @@ +# Based on https://src.fedoraproject.org/rpms/vala/blob/rawhide/f/vala.spec +%global api_ver 0.58 +%global priority 90 + +%global real_name vala +%global commit 94582de0320c39b58eb38c97dbffcf48d2a948b9 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global repo https://gitlab.gnome.org/GNOME/%{real_name}.git + +%global commit_date %(date '+%Y%m%d') +%global snapshot_info %{commit_date}.%{shortcommit} + +Name: vala-nightly +Version: 0.58.0^%{snapshot_info} +Release: 1%{?dist} +Summary: A modern programming language for GNOME + +# Most files are LGPLv2.1+, curses.vapi is 2-clause BSD +License: LGPL-2.1-or-later AND BSD-2-Clause +URL: https://wiki.gnome.org/Projects/Vala + +BuildRequires: git +BuildRequires: bison +BuildRequires: flex +BuildRequires: gobject-introspection-devel +BuildRequires: graphviz-devel +BuildRequires: libxslt +BuildRequires: autoconf-archive +BuildRequires: make +BuildRequires: pkgconfig(gobject-2.0) +# only if Vala source files are patched +BuildRequires: vala + +# for tests +BuildRequires: dbus-x11 + +Requires: libvala%{?_isa} = %{version}-%{release} + +# For GLib-2.0 and GObject-2.0 .gir files +Requires: gobject-introspection-devel + +Conflicts: vala + +%description +Vala is a new programming language that aims to bring modern programming +language features to GNOME developers without imposing any additional +runtime requirements and without using a different ABI compared to +applications and libraries written in C. + +valac, the Vala compiler, is a self-hosting compiler that translates +Vala source code into C source and header files. It uses the GObject +type system to create classes and interfaces declared in the Vala source +code. It's also planned to generate GIDL files when gobject- +introspection is ready. + +The syntax of Vala is similar to C#, modified to better fit the GObject +type system. + + +%package -n libvala-nightly +Summary: Vala compiler library + +Conflicts: libvala + +%description -n libvala-nightly +Vala is a new programming language that aims to bring modern programming +language features to GNOME developers without imposing any additional +runtime requirements and without using a different ABI compared to +applications and libraries written in C. + +This package contains the shared libvala library. + + +%package -n libvala-nightly-devel +Summary: Development files for libvala +Requires: libvala%{?_isa} = %{version}-%{release} + +Conflicts: libvala-devel + +%description -n libvala-nightly-devel +Vala is a new programming language that aims to bring modern programming +language features to GNOME developers without imposing any additional +runtime requirements and without using a different ABI compared to +applications and libraries written in C. + +This package contains development files for libvala. This is not +necessary for using the %{name} compiler. + + +%package doc +Summary: Documentation for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} +Requires: devhelp + +Conflicts: vala-doc + +%description doc +Vala is a new programming language that aims to bring modern programming +language features to GNOME developers without imposing any additional +runtime requirements and without using a different ABI compared to +applications and libraries written in C. + +This package contains documentation in a devhelp HTML book. + + +%package -n valadoc-nightly +Summary: Vala documentation generator +Requires: %{name}%{?_isa} = %{version}-%{release} + +Conflicts: valadoc + +%description -n valadoc-nightly +Valadoc is a documentation generator for generating API documentation from Vala +source code. + + +%package -n valadoc-nightly-devel +Summary: Development files for valadoc +Requires: valadoc%{?_isa} = %{version}-%{release} + +Conflicts: valadoc-devel + +%description -n valadoc-nightly-devel +Valadoc is a documentation generator for generating API documentation from Vala +source code. + +The valadoc-devel package contains libraries and header files for +developing applications that use valadoc. + + +%prep +rm -rf %{real_name}-%{commit} +git clone %{repo} %{real_name}-%{commit} +cd %{real_name}-%{commit} +git checkout %{commit} + + +%build +cd %{real_name}-%{commit} +./autogen.sh --help +%configure +# Don't use rpath! +sed -i 's|/lib /usr/lib|/lib /usr/lib /lib64 /usr/lib64|' libtool +%make_build + +%install +cd %{real_name}-%{commit} +%make_install +# Avoid multilib conflicts in vala-gen-introspect +mv %{buildroot}%{_bindir}/vala-gen-introspect-%{api_ver}{,-`uname -m`} +echo -e '#!/bin/sh\nexec %{_bindir}/vala-gen-introspect-%{api_ver}-`uname -m` "$@"' > \ + %{buildroot}%{_bindir}/vala-gen-introspect-%{api_ver} + chmod +x %{buildroot}%{_bindir}/vala-gen-introspect-%{api_ver} + +find %{buildroot} -name '*.la' -delete + +install -D -m 644 COPYING %{buildroot}%{_datadir}/licenses/%{real_name}/COPYING +install -D -m 644 NEWS %{buildroot}%{_docdir}/%{real_name}/NEWS +install -D -m 644 README.md %{buildroot}%{_docdir}/%{real_name}/README.md + +%check +cd %{real_name}-%{commit} +# https://gitlab.gnome.org/GNOME/vala/-/issues/1416 +export -n VALAFLAGS +%make_build check + + +%files +%license %{_datadir}/licenses/%{real_name}/COPYING +%doc %{_docdir}/%{real_name}/NEWS +%doc %{_docdir}/%{real_name}/README.md +%{_bindir}/vala +%{_bindir}/vala-%{api_ver} +%{_bindir}/valac +%{_bindir}/valac-%{api_ver} +%{_bindir}/vala-gen-introspect +%{_bindir}/vala-gen-introspect-%{api_ver}* +%{_bindir}/vapigen +%{_bindir}/vapigen-%{api_ver} +%{_libdir}/pkgconfig/vapigen*.pc +%{_libdir}/vala-%{api_ver}/ +%{_datadir}/aclocal/vala.m4 +%{_datadir}/aclocal/vapigen.m4 +%{_datadir}/vala/ +%{_datadir}/vala-%{api_ver}/ +%{_mandir}/man1/valac.1* +%{_mandir}/man1/valac-%{api_ver}.1* +%{_mandir}/man1/vala-gen-introspect.1* +%{_mandir}/man1/vala-gen-introspect-%{api_ver}.1* +%{_mandir}/man1/vapigen.1* +%{_mandir}/man1/vapigen-%{api_ver}.1* + +%files -n libvala-nightly +%license %{_datadir}/licenses/%{real_name}/COPYING +%{_libdir}/libvala-%{api_ver}.so.* + +%files -n libvala-nightly-devel +%{_includedir}/vala-%{api_ver} +%{_libdir}/libvala-%{api_ver}.so +%{_libdir}/pkgconfig/libvala-%{api_ver}.pc + +%files doc +%doc %{_datadir}/devhelp/books/vala-%{api_ver} + +%files -n valadoc-nightly +%{_bindir}/valadoc +%{_bindir}/valadoc-%{api_ver} +%{_libdir}/libvaladoc-%{api_ver}.so.0* +%{_libdir}/valadoc-%{api_ver}/ +%{_datadir}/valadoc-%{api_ver}/ +%{_mandir}/man1/valadoc-%{api_ver}.1* +%{_mandir}/man1/valadoc.1* + +%files -n valadoc-nightly-devel +%{_includedir}/valadoc-%{api_ver}/ +%{_libdir}/libvaladoc-%{api_ver}.so +%{_libdir}/pkgconfig/valadoc-%{api_ver}.pc + + +%changelog +* Wed May 10 2023 Lleyton Gray - 0.58.0 +- Initial Package