Skip to content

Commit

Permalink
fix: Reference sources using the SOURCE macro
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Jun 5, 2023
1 parent e8c86f5 commit 006954e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions t2linux-config/t2linux-config.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ echo -e 'add_drivers+=" apple_bce snd_seq "' > t2linux-modules-install.conf

%install

install -D -m 755 %{_sourcedir}/firmware.sh %{buildroot}/%{_bindir}/firmware.sh
install -Dm 755 %{_sourcedir}/touchbar.sh %{buildroot}/%{_bindir}/touchbar.sh
install -D -m 755 %{SOURCE0} %{buildroot}/%{_bindir}/touchbar.sh
install -D -m 755 %{SOURCE1} %{buildroot}/%{_bindir}/firmware.sh

install -D -m 644 t2linux-modules-install.conf %{buildroot}/etc/dracut.conf.d/t2linux-modules-install.conf

Expand Down
13 changes: 3 additions & 10 deletions t2linux-repo/t2linux-repo.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,12 @@ DNF repo files for linux on t2 macs.
%build

%install
install -d -m 755 %{_builddir}/etc/pki/rpm-gpg
install -m 644 t2linux-fedora.pub $RPM_BUILD_ROOT/etc/pki/rpm-gpg/
install -m 644 t2linux-fedora-new.pub $RPM_BUILD_ROOT/etc/pki/rpm-gpg/
install -D -m 644 %{SOURCE0} %{buildroot}/etc/pki/rpm-gpg/t2linux-fedora.pub
install -D -m 644 %{SOURCE1} %{buildroot}/etc/pki/rpm-gpg/t2linux-fedora-new.pub

install -d -m 755 %{_builddir}/etc/yum.repos.d
install -m 644 t2linux-fedora.repo $RPM_BUILD_ROOT/etc/yum.repos.d
install -D -m 644 %{SOURCE2} %{buildroot}/etc/yum.repos.d/t2linux-fedora.repo

%files
/etc/yum.repos.d/t2linux-fedora.repo
/etc/pki/rpm-gpg/t2linux-fedora.pub
/etc/pki/rpm-gpg/t2linux-fedora-new.pub

%changelog

* Mon Apr 24 2023 Sharpened Blade <[email protected]>
- Made public GPG key ascii-armored

0 comments on commit 006954e

Please sign in to comment.