diff options
| author | ruki <[email protected]> | 2020-09-26 20:46:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-09-26 20:46:06 +0800 |
| commit | b1c358e57b442610f481cf8c834ae46c90b99645 (patch) | |
| tree | f4fe7118dcbc15361efad360fc65e05e9d93c2eb /scripts | |
| parent | 666cff34c4bda3b6896adfdcdc7df85ab0287d29 (diff) | |
improve xmake.spec
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/rpmbuild/SPECS/xmake.spec | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/scripts/rpmbuild/SPECS/xmake.spec b/scripts/rpmbuild/SPECS/xmake.spec index 6d9460f8c..62ac723f9 100644 --- a/scripts/rpmbuild/SPECS/xmake.spec +++ b/scripts/rpmbuild/SPECS/xmake.spec @@ -11,7 +11,7 @@ Version: 2.3.7 Release: 1%{?dist} Summary: A cross-platform build utility based on Lua BuildArch: noarch -License: Apache-2.0 +License: ASL 2.0 URL: https://xmake.io Source0: https://github.com/xmake-io/xmake/archive/%{xmake_branch}.tar.gz#/xmake-%{xmake_branch}.tar.gz Source1: https://github.com/tboox/tbox/archive/%{tbox_branch}.tar.gz#/tbox-%{tbox_branch}.tar.gz @@ -55,23 +55,21 @@ ln -s `pwd`/../xmake-core-luajit-%{luajit_branch} core/src/luajit/luajit ln -s `pwd`/../xmake-core-lua-cjson-%{lua_cjson_branch} core/src/lua-cjson/lua-cjson %build -make build +%set_build_flags +%make_build %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir} -cp -r xmake %{buildroot}%{_datadir}/%{name} -cp core/src/demo/demo.b %{buildroot}%{_bindir}/%{name} +cp -p -r xmake %{buildroot}%{_datadir}/%{name} +cp -p core/src/demo/demo.b %{buildroot}%{_bindir}/%{name} chmod 755 %{buildroot}%{_bindir}/%{name} -cp README.md %{buildroot}%{_datadir} -cp LICENSE.md %{buildroot}%{_datadir} +cp -p README.md %{buildroot}%{_datadir} +cp -p LICENSE.md %{buildroot}%{_datadir} %check XMAKE_ROOT=y %{buildroot}%{_bindir}/%{name} --version -%clean -rm -rf %{buildroot} - %files %{_bindir}/%{name} %{_datadir}/%{name} |
