summaryrefslogtreecommitdiff
path: root/scripts/rpmbuild
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-23 22:48:02 +0800
committerruki <[email protected]>2020-09-23 22:48:02 +0800
commit7bcb51f1e387d7a2b700be22e507b28e84d10b3e (patch)
tree017dcee4ea97f3598da7dc3268b7c9ac61e4bea9 /scripts/rpmbuild
parent9c80f8a0834c5f95890f2fee92f71d0053925364 (diff)
fix xmake.spec again
Diffstat (limited to 'scripts/rpmbuild')
-rw-r--r--scripts/rpmbuild/SPECS/xmake.spec7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/rpmbuild/SPECS/xmake.spec b/scripts/rpmbuild/SPECS/xmake.spec
index 29bab54e0..bd7bfcb15 100644
--- a/scripts/rpmbuild/SPECS/xmake.spec
+++ b/scripts/rpmbuild/SPECS/xmake.spec
@@ -41,6 +41,8 @@ mkdir -p %{buildroot}%{_datadir}
cp -r xmake %{buildroot}%{_datadir}/%{name}
cp core/src/demo/demo.b %{buildroot}%{_bindir}/%{name}
chmod 755 %{buildroot}%{_bindir}/%{name}
+cp README.md %{buildroot}%{_datadir}
+cp LICENSE.md %{buildroot}%{_datadir}
%check
%{buildroot}%{_bindir}/%{name} --version
@@ -49,11 +51,10 @@ chmod 755 %{buildroot}%{_bindir}/%{name}
rm -rf %{buildroot}
%files
-cd xmake-v%{version}
%{_bindir}/%{name}
%{_datadir}/%{name}
-%doc README.md
-%license LICENSE.md
+%doc %{_datadir}/README.md
+%license %{_datadir}/LICENSE.md
%changelog
* Mon Sep 14 2020 Ruki Wang <[email protected]> - 2.3.7-1