3 %bcond_without tests # don't perform tests
5 Summary: GNU arbitrary precision library - BSD-compatible MP library
6 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - biblioteka MP kompatybilna z BSD
12 Source0: http://ftp.gnu.org/gnu/gmp/gmp-%{version}.tar.xz
13 # Source0-md5: 8aef50959acec2a1ad41d144ffe0f3b5
14 Patch0: gmp-info.patch
15 Patch1: gmp-multilib.patch
17 Patch3: gmp-tinfo.patch
19 URL: http://gmplib.org/
20 BuildRequires: autoconf >= 2.59
21 BuildRequires: automake >= 1:1.8
22 BuildRequires: libtool >= 2:1.4d-3
23 BuildRequires: tar >= 1:1.22
24 BuildRequires: texinfo
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This package contains BSD-compatible MP library based on GNU MP.
31 %description -l pl.UTF-8
32 Ten pakiet zawiera bibliotekę MP kompatybilną z BSD opartą na GNU MP.
35 Summary: GNU arbitrary precision library - BSD-compatible MP API
36 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - API MP kompatybilne z BSD
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 This package contains BSD-compatible MP library header file.
43 %description devel -l pl.UTF-8
44 Ten pakiet zawiera plik nagłówkowy biblioteki MP kompatybilnej z BSD.
47 Summary: GNU arbitrary precision library - BSD-compatible static MP library
48 Summary(pl.UTF-8): Biblioteka arytmetyczna GNU - biblioteka statyczna MP kompatybilna z BSD
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
53 This package contains BSD-compatible MP static library based on GNU
56 %description static -l pl.UTF-8
57 Ten pakiet zawiera bibliotekę statyczną MP kompatybilną z BSD opartą
61 %setup -q -n gmp-%{version}
63 %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
64 # ugly hack, don't apply on other archs (also recheck sizes on each upgrade)
77 --with-cpu=%{_target_cpu} \
82 %{?with_tests:%{__make} check}
85 rm -rf $RPM_BUILD_ROOT
88 DESTDIR=$RPM_BUILD_ROOT
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgmp.* \
91 $RPM_BUILD_ROOT%{_includedir}/gmp.h \
92 $RPM_BUILD_ROOT%{_infodir}/gmp.info*
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 %defattr(644,root,root,755)
102 %doc AUTHORS ChangeLog NEWS README
103 %attr(755,root,root) %{_libdir}/libmp.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libmp.so.3
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libmp.so
113 %defattr(644,root,root,755)