diff --git a/pin-gcc-client.spec b/pin-gcc-client.spec index f181d512d15727fc0a21fbf59ba12653a7d4f340..56eb1576fb438e475d48f218df07e66d06693ad5 100644 --- a/pin-gcc-client.spec +++ b/pin-gcc-client.spec @@ -1,6 +1,6 @@ Name: pin-gcc-client Version: 0.4.1 -Release: 14 +Release: 15 Summary: A Pin (Plug-IN framework) client is implemented based on GCC plugin and can execute the compiler optimization pass in GCC. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD URL: https://gitee.com/src-openeuler/pin-gcc-client @@ -33,26 +33,15 @@ A Pin (Plug-IN framework) client is implemented based on GCC plugin and can exec %autosetup -p1 %build -mkdir -p _build -cd _build -%{cmake} .. -DCMAKE_INSTALL_PREFIX=%{_usr} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_SKIP_RPATH=ON -DMLIR_DIR=/usr/lib64/cmake/mlir -DLLVM_DIR=/usr/lib64/cmake/llvm -%make_build +DESTDIR="%{buildroot}" +%{cmake} -DCMAKE_SKIP_RPATH=ON -DMLIR_DIR=/usr/lib64/cmake/mlir -DLLVM_DIR=/usr/lib64/cmake/llvm +%cmake_build %install -cd _build -%make_install - -mkdir -p %{buildroot}/etc/ld.so.conf.d -echo "{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf +%cmake_install find %{buildroot} -type f -name "*.so" -exec strip "{}" ";" -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - %files %license LICENSE %attr(0755,root,root) %{_libdir}/libpin_gcc_client.so @@ -61,9 +50,12 @@ find %{buildroot} -type f -name "*.so" -exec strip "{}" ";" %attr(0755,root,root) %{_libdir}/libMLIRPlugin.so %attr(0755,root,root) %{_libdir}/libMLIRPlugin.so.17 %attr(0644,root,root) %{_bindir}/pin-gcc-client.json -%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf %changelog +* Wed Nov 13 2024 Funda Wang - 0.4.1-15 +- adopt to new cmake macro +- drop useless scriptlets + * Wed Apr 10 2024 wumingchuan - 0.4.1-14 - Type:Update - ID:NA