Accepting request 20998 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/mpc based on submit request 20998 from user rguenther OBS-URL: https://build.opensuse.org/request/show/20998 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpc?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
019764360d
commit
bddff8b435
24
mpc.spec
24
mpc.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package mpc (Version 0.6)
|
||||
# spec file for package mpc (Version 0.7)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@@ -17,19 +17,18 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define debug_package_requires libmpc1 = %{version}-%{release}
|
||||
%define debug_package_requires libmpc2 = %{version}-%{release}
|
||||
|
||||
Name: mpc
|
||||
BuildRequires: gmp-devel mpfr-devel
|
||||
License: LGPL v2.1 or later
|
||||
Group: Development/Libraries/C and C++
|
||||
AutoReqProv: on
|
||||
Version: 0.6
|
||||
Release: 4
|
||||
Version: 0.7
|
||||
Release: 1
|
||||
Summary: MPC multiple-precision complex shared library
|
||||
Url: http://www.multiprecision.org/mpc/
|
||||
Source: mpc-%{version}.tar.bz2
|
||||
Patch: mpc-r530.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@@ -39,13 +38,13 @@ built upon and follows the same principles as MPFR.
|
||||
|
||||
|
||||
|
||||
%package -n libmpc1
|
||||
%package -n libmpc2
|
||||
License: LGPL v2.1 or later
|
||||
Summary: MPC multiple-precision complex shared library
|
||||
Group: Development/Libraries/C and C++
|
||||
AutoReqProv: on
|
||||
|
||||
%description -n libmpc1
|
||||
%description -n libmpc2
|
||||
MPC is a C library for the arithmetic of complex numbers with
|
||||
arbitrarily high precision and correct rounding of the result. It is
|
||||
built upon and follows the same principles as MPFR.
|
||||
@@ -56,7 +55,7 @@ built upon and follows the same principles as MPFR.
|
||||
License: LGPL v2.1 or later
|
||||
Summary: MPC multiple-precision complex library development files
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libmpc1 = %{version} mpfr-devel
|
||||
Requires: libmpc2 = %{version} mpfr-devel
|
||||
AutoReqProv: on
|
||||
PreReq: %install_info_prereq
|
||||
|
||||
@@ -67,7 +66,6 @@ MPC multiple-precision complex library development files.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
|
||||
%build
|
||||
%configure
|
||||
@@ -80,12 +78,12 @@ make check %{?jobs:-j%jobs}
|
||||
%makeinstall
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/libmpc.la
|
||||
|
||||
%post -n libmpc1 -p /sbin/ldconfig
|
||||
%post -n libmpc2 -p /sbin/ldconfig
|
||||
|
||||
%post devel
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%postun -n libmpc1 -p /sbin/ldconfig
|
||||
%postun -n libmpc2 -p /sbin/ldconfig
|
||||
|
||||
%postun devel
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
@@ -93,9 +91,9 @@ rm $RPM_BUILD_ROOT%{_libdir}/libmpc.la
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -n libmpc1
|
||||
%files -n libmpc2
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libmpc.so.1*
|
||||
%{_libdir}/libmpc.so.2*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
|
Reference in New Issue
Block a user