Skip to content

Commit

Permalink
feat(srpm-macros): move sources outside of this repo (#1905) (#1951)
Browse files Browse the repository at this point in the history
(cherry picked from commit f179d85)

Co-authored-by: madomado <[email protected]>
  • Loading branch information
raboneko and madonuko authored Aug 16, 2024
1 parent 9667ceb commit 03b3103
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 202 deletions.
26 changes: 12 additions & 14 deletions anda/terra/srpm-macros/anda-srpm-macros.spec
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
Name: anda-srpm-macros
Version: 0.1.7
Release: 1%{?dist}
Release: 2%{?dist}
Summary: SRPM macros for extra Fedora packages

License: MIT
# URL:
Source0: macros.cargo_extra
Source1: macros.caching
Source2: macros.anda
Source3: macros.go_extra
Source4: macros.nim_extra
URL: https://github.com/terrapkg/srpm-macros
Source0: %url/archive/refs/tags/v%{version}.tar.gz

Recommends: rust-packaging
Requires: git-core
Expand All @@ -21,25 +17,27 @@ BuildArch: noarch
%{summary}

%prep
%autosetup -n srpm-macros-%version

%build

%install
install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE0}
install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE1}
install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE2}
install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE3}
install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE4}
for file in ./macros.*; do
install -Dpm644 -t %buildroot%_rpmmacrodir $file
done

%files
%{_rpmmacrodir}/macros.cargo_extra
%{_rpmmacrodir}/macros.caching
%{_rpmmacrodir}/macros.anda
%{_rpmmacrodir}/macros.caching
%{_rpmmacrodir}/macros.cargo_extra
%{_rpmmacrodir}/macros.go_extra
%{_rpmmacrodir}/macros.nim_extra


%changelog
* Wed Aug 14 2024 madonuko <[email protected]> - 0.1.7-2
- Move sources outside of packages repo

* Wed Mar 13 2024 madonuko <[email protected]> - 0.1.6-1
- Add nim_c, nim_tflags and nim_lflags

Expand Down
17 changes: 0 additions & 17 deletions anda/terra/srpm-macros/macros.anda

This file was deleted.

45 changes: 0 additions & 45 deletions anda/terra/srpm-macros/macros.caching

This file was deleted.

115 changes: 0 additions & 115 deletions anda/terra/srpm-macros/macros.cargo_extra

This file was deleted.

6 changes: 0 additions & 6 deletions anda/terra/srpm-macros/macros.go_extra

This file was deleted.

5 changes: 0 additions & 5 deletions anda/terra/srpm-macros/macros.nim_extra

This file was deleted.

1 change: 1 addition & 0 deletions anda/terra/srpm-macros/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("terrapkg/srpm-macros"));

0 comments on commit 03b3103

Please sign in to comment.