summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-22 21:02:11 +0800
committerruki <[email protected]>2020-09-22 21:02:11 +0800
commit44b132d8893e9521b9c8a5cf99b862b25285b3c2 (patch)
treeb887111c2f8721ad226b3e44cb7917fe276cffc3 /scripts
parentd4609ae08abe985b8f969fe544686205eb2837cb (diff)
add rpmbuild
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rpmbuild/SPECS/xmake.spec54
1 files changed, 54 insertions, 0 deletions
diff --git a/scripts/rpmbuild/SPECS/xmake.spec b/scripts/rpmbuild/SPECS/xmake.spec
new file mode 100644
index 000000000..5e4ce036f
--- /dev/null
+++ b/scripts/rpmbuild/SPECS/xmake.spec
@@ -0,0 +1,54 @@
+Name: xmake
+Version: 2.3.7
+Release: 1%{?dist}
+Summary: A cross-platform build utility based on Lua
+BuildArch: noarch
+License: Apache-2.0
+URL: https://xmake.io
+Source0: https://github.com/xmake-io/xmake/releases/download/v%{version}/xmake-v%{version}.tar.gz
+
+BuildRequires: gcc-c++
+BuildRequires: ncurses-devel
+BuildRequires: readline-devel
+
+%description
+It is a lightweight cross-platform build utility based on Lua.
+It uses xmake.lua to maintain project builds. Compared with makefile/CMakeLists.txt,
+the configuration syntax is more concise and intuitive.
+It is very friendly to novices and can quickly get started in a short time.
+Let users focus more on actual project development.
+
+It can compile the project directly like Make/Ninja, or
+generate project files like CMake/Meson, and it also has a built-in package management
+system to help users solve the integrated use of C/C++ dependent libraries.
+
+%define _binaries_in_noarch_packages_terminate_build 0
+
+%prep
+%autosetup -n xmake-v%{version} -c xmake-v%{version}
+
+%build
+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}
+chmod 755 %{buildroot}%{_bindir}/%{name}
+
+%check
+xmake --version
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%{_bindir}/%{name}
+%{_datadir}/%{name}
+%doc README.md
+%license LICENSE.md
+
+%changelog
+* Mon Sep 14 2020 Ruki Wang <[email protected]> - 2.3.7-1
+- Initial Commit