2 Komitmen 247a0d0f9a ... db5ed9b668

Pembuat SHA1 Pesan Tanggal
  Iru Cai db5ed9b668 add hosttools-make 2 tahun lalu
  Iru Cai 043d7dec90 llvm: put lib/llvm/clang into the main package 2 tahun lalu
2 mengubah file dengan 45 tambahan dan 3 penghapusan
  1. 5 3
      llvm/hosttools-llvm.spec
  2. 40 0
      make/hosttools-make.spec

+ 5 - 3
llvm/hosttools-llvm.spec

@@ -8,7 +8,7 @@ Summary: LLVM compiler infrastructure
 
 License: GPLv3+
 URL: https://llvm.org
-Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.1/llvm-project-14.0.1.src.tar.xz
+Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.1/llvm-project-%{version}.src.tar.xz
 Patch0: llvm-sanitizer-link-libgcc.patch
 Patch1: clang-link-libgcc.patch
 
@@ -52,6 +52,7 @@ DESTDIR=%{buildroot} ninja install/strip
 %files
 %{tool_prefix}/bin/*
 %exclude %{tool_prefix}/bin/llvm-config
+%{tool_prefix}/lib/llvm/clang/%{version}
 %{tool_prefix}/libexec/*
 %{tool_prefix}/share/clang
 %{tool_prefix}/share/opt-viewer
@@ -61,7 +62,7 @@ DESTDIR=%{buildroot} ninja install/strip
 # package libclang.so for c-index-test
 %{tool_prefix}/lib/llvm/libclang.so
 %{tool_prefix}/lib/llvm/libclang.so.13
-%{tool_prefix}/lib/llvm/libclang.so.14.0.1
+%{tool_prefix}/lib/llvm/libclang.so.%{version}
 
 %files devel
 %{tool_prefix}/bin/llvm-config
@@ -73,9 +74,10 @@ DESTDIR=%{buildroot} ninja install/strip
 %{tool_prefix}/lib/libear
 %{tool_prefix}/lib/libscanbuild
 %{tool_prefix}/lib/llvm
+%exclude %{tool_prefix}/lib/llvm/clang/%{version}
 %exclude %{tool_prefix}/lib/llvm/libclang.so
 %exclude %{tool_prefix}/lib/llvm/libclang.so.13
-%exclude %{tool_prefix}/lib/llvm/libclang.so.14.0.1
+%exclude %{tool_prefix}/lib/llvm/libclang.so.%{version}
 
 %changelog
 

+ 40 - 0
make/hosttools-make.spec

@@ -0,0 +1,40 @@
+%{?!tool_name: %global tool_name hosttools}
+%global tool_prefix /opt/%{tool_name}
+
+Name: %{tool_name}-make
+Version: 4.3
+Release: 1%{?dist}
+Summary: GNU make
+Provides: make
+
+License: GPLv3+
+URL: https://www.gnu.org/software/make
+Source0: https://ftp.gnu.org/gnu/make/make-4.3.tar.lz
+
+%description
+GNU make
+
+%prep
+%setup -q -n make-%{version}
+
+%build
+mkdir build-make
+cd build-make
+../configure --prefix=%{tool_prefix}
+make %{?_smp_mflags}
+
+
+%install
+cd build-make
+make DESTDIR=%{buildroot} install
+rm -f %{buildroot}%{tool_prefix}/share/info/dir
+
+%files
+%{tool_prefix}/bin/make
+%{tool_prefix}/share/locale/*/LC_MESSAGES/make.mo
+%{tool_prefix}/include/gnumake.h
+%{tool_prefix}/share/info/make.info*
+%{tool_prefix}/share/man/man1/make.1
+
+%changelog
+