!41 [sync] PR-36: move pkgconfig files into devel pacakage
From: @openeuler-sync-bot Reviewed-by: @SuperSix173 Signed-off-by: @SuperSix173
This commit is contained in:
commit
73cd0f6eae
33
gmp.spec
33
gmp.spec
@ -1,10 +1,10 @@
|
|||||||
Name: gmp
|
Name: gmp
|
||||||
Version: 6.3.0
|
Version: 6.3.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
URL: https://gmplib.org
|
URL: https://gmplib.org
|
||||||
Source0: https://gmplib.org/download/gmp/gmp-%{version}.tar.xz
|
Source0: https://gmplib.org/download/gmp/gmp-%{version}.tar.xz
|
||||||
License: LGPLv3 and GPLv2
|
License: (LGPL-3.0-or-later OR GPL-2.0-or-later OR (LGPL-3.0-or-later AND GPL-2.0-or-later)) AND GFDL-1.3-invariants-or-later
|
||||||
BuildRequires: gcc gcc-c++ make m4
|
BuildRequires: gcc gcc-c++ make m4
|
||||||
Summary: A GNU multiple precision arithmetic library
|
Summary: A GNU multiple precision arithmetic library
|
||||||
|
|
||||||
@ -18,7 +18,8 @@ precision than is directly supported by the basic C types.
|
|||||||
Summary: Development library package for GMP.
|
Summary: Development library package for GMP.
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: %{name}-c++%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}-c++%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
|
Conflicts: %{name}%{?_isa} < 1:6.3.0-3
|
||||||
|
Conflicts: %{name}-c++%{?_isa} < 1:6.3.0-3
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Devel package include header files, documentation and libraries for GMP
|
Devel package include header files, documentation and libraries for GMP
|
||||||
@ -35,11 +36,7 @@ GMP dependent library for C++ applications.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
if as --help | grep -q execstack; then
|
if as --help | grep -q execstack; then
|
||||||
%if "%toolchain" == "clang"
|
export CCAS="%{__cc} -c -Wa,--noexecstack"
|
||||||
export CCAS="clang -c -Wa,--noexecstack"
|
|
||||||
%else
|
|
||||||
export CCAS="gcc -c -Wa,--noexecstack"
|
|
||||||
%endif
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
@ -57,29 +54,20 @@ export LD_LIBRARY_PATH=`pwd`/.libs
|
|||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export LD_LIBRARY_PATH=`pwd`/.libs
|
|
||||||
%make_install
|
%make_install
|
||||||
install -m 644 gmp-mparam.h ${RPM_BUILD_ROOT}%{_includedir}
|
install -m 644 gmp-mparam.h ${RPM_BUILD_ROOT}%{_includedir}
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/lib{gmp,mp,gmpxx}.la
|
|
||||||
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
|
|
||||||
ln -sf libgmpxx.so.4 $RPM_BUILD_ROOT%{_libdir}/libgmpxx.so
|
|
||||||
|
|
||||||
basearch=%{_arch}
|
%delete_la
|
||||||
%ifarch %{ix86}
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
basearch=i386
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LD_LIBRARY_PATH=`pwd`/.libs
|
export LD_LIBRARY_PATH=`pwd`/.libs
|
||||||
%make_build check
|
%make_build check
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
|
||||||
%license COPYING COPYING.LESSERv3 COPYINGv2 COPYINGv3
|
%license COPYING COPYING.LESSERv3 COPYINGv2 COPYINGv3
|
||||||
%doc NEWS README
|
%doc NEWS README
|
||||||
%{_libdir}/libgmp.so.*
|
%{_libdir}/libgmp.so.*
|
||||||
%{_libdir}/pkgconfig/gmp.pc
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/libgmpxx.so
|
%{_libdir}/libgmpxx.so
|
||||||
@ -88,12 +76,17 @@ export LD_LIBRARY_PATH=`pwd`/.libs
|
|||||||
%{_infodir}/gmp.info*
|
%{_infodir}/gmp.info*
|
||||||
%{_libdir}/libgmpxx.a
|
%{_libdir}/libgmpxx.a
|
||||||
%{_libdir}/libgmp.a
|
%{_libdir}/libgmp.a
|
||||||
|
%{_libdir}/pkgconfig/gmp.pc
|
||||||
|
%{_libdir}/pkgconfig/gmpxx.pc
|
||||||
|
|
||||||
%files c++
|
%files c++
|
||||||
%{_libdir}/libgmpxx.so.*
|
%{_libdir}/libgmpxx.so.*
|
||||||
%{_libdir}/pkgconfig/gmpxx.pc
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 30 2024 Funda Wang <fundawang@yeah.net> - 1:6.3.0-3
|
||||||
|
- move pkgconfig files into devel pacakage
|
||||||
|
- merge clang and gcc declaration
|
||||||
|
|
||||||
* Sat Aug 05 2023 cf-zhao <zhaochuanfeng@huawei.com> 1:6.3.0-2
|
* Sat Aug 05 2023 cf-zhao <zhaochuanfeng@huawei.com> 1:6.3.0-2
|
||||||
- Support build with clang
|
- Support build with clang
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user