mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-07 12:22:19 +00:00
closes #2765
(cherry picked from commit 482456c58c)
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "topgrade.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
--- topgrade-16.0.2/Cargo.toml 1970-01-01T00:00:01+00:00
|
||||
+++ topgrade-16.0.2/Cargo.toml 2025-01-03T04:51:04.571554+00:00
|
||||
@@ -204,19 +204,3 @@
|
||||
default-features = false
|
||||
package = "self_update"
|
||||
|
||||
-[target."cfg(windows)".dependencies.parselnk]
|
||||
-version = "~0.1"
|
||||
-
|
||||
-[target."cfg(windows)".dependencies.self_update_crate]
|
||||
-version = "~0.40"
|
||||
-features = [
|
||||
- "archive-zip",
|
||||
- "compression-zip-deflate",
|
||||
- "rustls",
|
||||
-]
|
||||
-optional = true
|
||||
-default-features = false
|
||||
-package = "self_update"
|
||||
-
|
||||
-[target."cfg(windows)".dependencies.winapi]
|
||||
-version = "~0.3"
|
||||
@@ -0,0 +1,107 @@
|
||||
%global __brp_mangle_shebangs %{nil}
|
||||
%global crate topgrade
|
||||
|
||||
Name: topgrade
|
||||
# renovate: datasource=github-releases depName=topgrade-rs/topgrade
|
||||
Version: 16.0.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Upgrade all the things
|
||||
|
||||
SourceLicense: GPL-3.0-or-later
|
||||
License: ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND GPL-3.0 AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND (Unlicense OR MIT)
|
||||
URL: https://github.com/topgrade-rs/%{name}
|
||||
Source: %crates_source
|
||||
# Automatically generated patch to strip dependencies and normalize metadata
|
||||
Patch: topgrade-fix-metadata-auto.diff
|
||||
|
||||
BuildRequires: cargo
|
||||
BuildRequires: rust
|
||||
BuildRequires: rpm_macro(cargo_install)
|
||||
BuildRequires: anda-srpm-macros mold
|
||||
|
||||
%description
|
||||
Keeping your system up to date usually involves invoking multiple package managers.
|
||||
This results in big, non-portable shell one-liners saved in your shell.
|
||||
To remedy this, Topgrade detects which tools you use and
|
||||
runs the appropriate commands to update them.
|
||||
|
||||
%global _description %{expand:
|
||||
Upgrade all the things.}
|
||||
|
||||
%package -n rust-%name-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n rust-%name-devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages which
|
||||
use the "%{crate}" crate.
|
||||
|
||||
%files -n rust-%name-devel
|
||||
%dnl %license %{crate_instdir}/LICENSE
|
||||
%dnl %doc %{crate_instdir}/BREAKINGCHANGES.md
|
||||
%dnl %doc %{crate_instdir}/CODE_OF_CONDUCT.md
|
||||
%dnl %doc %{crate_instdir}/CONTRIBUTING.md
|
||||
%dnl %doc %{crate_instdir}/README.md
|
||||
%dnl %doc %{crate_instdir}/RELEASE_PROCEDURE.md
|
||||
%dnl %doc %{crate_instdir}/SECURITY.md
|
||||
%{crate_instdir}/
|
||||
|
||||
%package -n rust-%{name}+default-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n rust-%{name}+default-devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages which
|
||||
use the "default" feature of the "%{crate}" crate.
|
||||
|
||||
%files -n rust-%{name}+default-devel
|
||||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n rust-%{name}+self-update-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n rust-%{name}+self-update-devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages which
|
||||
use the "self-update" feature of the "%{crate}" crate.
|
||||
|
||||
%files -n rust-%{name}+self-update-devel
|
||||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n rust-%{name}+self_update_crate-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n rust-%{name}+self_update_crate-devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages which
|
||||
use the "self_update_crate" feature of the "%{crate}" crate.
|
||||
|
||||
%files -n rust-%{name}+self_update_crate-devel
|
||||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
%cargo_prep_online
|
||||
|
||||
%build
|
||||
%cargo_license_summary_online
|
||||
%{cargo_license_online} > LICENSE.dependencies
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%files
|
||||
%license LICENSE LICENSE.dependencies
|
||||
%doc BREAKINGCHANGES.md README.md
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Tue Jul 02 2024 Andrey Brusnik <dev@shdwchn.io> - 15.0.0-1
|
||||
- chore(topgrade): Bump to 15.0.0
|
||||
|
||||
* Tue Jun 18 2024 Andrey Brusnik <dev@shdwchn.io> - 14.0.1-1
|
||||
- feat: Added topgrade package
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(crates("topgrade"));
|
||||
Reference in New Issue
Block a user