fix: correct changelog date and add missing systemd-rpm-macros dependency

This commit is contained in:
2026-01-25 22:50:55 +08:00
parent 10d892f350
commit 6af2b3369a
2 changed files with 8 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ jobs:
uses: actions/checkout@v4
- name: Install dependencies
run: dnf install -y rpm-build wget
run: dnf install -y rpm-build wget systemd-rpm-macros
- name: Prepare Sources
run: |
@@ -90,6 +90,12 @@ jobs:
wget https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_linux_${GOARCH}.tar.gz -O ~/rpmbuild/SOURCES/frp_${VERSION}_linux_${GOARCH}.tar.gz
cp frp.spec ~/rpmbuild/SPECS/
# Automate Changelog Date using placeholder in frp.spec
# Format: * Day Mon DD YYYY Name <Email> - Version-Release
CURRENT_DATE=$(LC_TIME=en_US.UTF-8 date "+%a %b %d %Y")
sed -i "s/%{date}/$CURRENT_DATE/" ~/rpmbuild/SPECS/frp.spec
cp frpc@.service ~/rpmbuild/SOURCES/
cp frps@.service ~/rpmbuild/SOURCES/

View File

@@ -74,5 +74,5 @@ install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/frps@.service
%{_unitdir}/frps@.service
%changelog
* Fri Jan 25 2026 awfufu <me@awfufu.com> - %{version}-%{release}
* %{date} awfufu <me@awfufu.com> - %{version}-%{release}
- Automated build