mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
add: terra-appstream-helper (#7401)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "terra-appstream-helper.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
Name: terra-appstream-helper
|
||||
Version: 0.1.1
|
||||
Release: 1%?dist
|
||||
Summary: Scripts and RPM macros to help with AppStream metadata generation for Terra
|
||||
License: GPL-3.0-or-Later
|
||||
URL: https://github.com/terrapkg/appstream-helper
|
||||
Source: %{url}/archive/refs/tags/v%version.tar.gz
|
||||
BuildArch: noarch
|
||||
Requires: python3-%{name} = %{evr}
|
||||
BuildRequires: anda-srpm-macros python3-devel python3-installer pyproject-rpm-macros python3dist(pip) python3dist(setuptools) python3dist(wheel)
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package -n python3-%{name}
|
||||
Summary: Python files for %{name}
|
||||
Requires: %{name} = %{evr}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n python3-%{name}
|
||||
Python files needed for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -n appstream-helper-%{version}
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files -l terra_appstream_helper
|
||||
install -Dpm644 terra-appstream.macros %buildroot%_rpmmacrodir/macros.terra-appstream
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/terra-appstream-helper
|
||||
%{_rpmmacrodir}/macros.terra-appstream
|
||||
|
||||
|
||||
|
||||
%files -n python3-%{name} -f %{pyproject_files}
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("terrapkg/appstream-helper"));
|
||||
@@ -1,6 +1,6 @@
|
||||
Name: anda-srpm-macros
|
||||
Version: 0.2.21
|
||||
Release: 1%?dist
|
||||
Release: 2%?dist
|
||||
Summary: SRPM macros for extra Fedora packages
|
||||
|
||||
License: MIT
|
||||
@@ -9,6 +9,7 @@ Source0: %url/archive/refs/tags/v%{version}.tar.gz
|
||||
|
||||
Recommends: rust-packaging
|
||||
Requires: git-core
|
||||
Requires: terra-appstream-helper
|
||||
Obsoletes: fyra-srpm-macros < 0.1.1-1
|
||||
Provides: fyra-srpm-macros = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
Reference in New Issue
Block a user