mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
0268ffe63e
* chore(backport): Add explicit Git dep Signed-off-by: Gilver <roachy@fyralabs.com> * chore: Changelog Signed-off-by: Gilver <roachy@fyralabs.com> * chore: Only build once and remove unused script --------- Signed-off-by: Gilver <roachy@fyralabs.com>
62 lines
1.5 KiB
RPMSpec
62 lines
1.5 KiB
RPMSpec
%global npm_name backport
|
|
# Requires Jest so currently disabled
|
|
%bcond test 0
|
|
|
|
Name: nodejs-%{npm_name}
|
|
Version: 12.0.0
|
|
Release: 2%{?dist}
|
|
Summary: Backport GitHub commits
|
|
SourceLicense: Apache-2.0
|
|
License: MIT AND ISC AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause
|
|
URL: https://github.com/sorenlouv/%{npm_name}
|
|
Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
|
|
BuildRequires: anda-srpm-macros >= 0.3.0
|
|
BuildRequires: nodejs-packaging
|
|
BuildRequires: nodejs-npm
|
|
BuildRequires: nodejs-license-checker
|
|
%if %{with test}
|
|
BuildRequires: yarnpkg
|
|
%endif
|
|
Requires: git-core
|
|
Obsoletes: node-backport <= 10.2.0
|
|
BuildArch: noarch
|
|
Packager: Gilver E. <roachy@fyralabs.com>
|
|
|
|
%description
|
|
A simple CLI tool that automates the process of backporting commits on a GitHub repo.
|
|
|
|
%prep
|
|
%npm_prep
|
|
%if %{with test}
|
|
%fetch_node_tests /src/test/ /tests/
|
|
%endif
|
|
|
|
%build
|
|
# Empty build section, because RPM reasons
|
|
|
|
%install
|
|
%npm_install
|
|
|
|
%npm_license_summary
|
|
%npm_license -o LICENSE.modules
|
|
|
|
%if %{with test}
|
|
%check
|
|
%yarn_test
|
|
%endif
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE.txt
|
|
%license LICENSE.modules
|
|
%{nodejs_sitelib}/%{npm_name}/
|
|
%{_bindir}/%{npm_name}
|
|
|
|
%changelog
|
|
* Sun May 3 2026 Gilver E. <roachy@fyralabs.com> - 12.0.0-2
|
|
- Added explicit dependency on git-core
|
|
* Wed Jan 21 2026 Gilver E. <roachy@fyralabs.com> - 10.2.0-3
|
|
- Fixed package name and licenses
|
|
* Wed Jul 2 2025 Gilver E. <rockgrub@disroot.org> - 9.6.6-1
|
|
- Initial package
|